mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] u_serial: add setbrg to be able to use loadb & co
@ 2012-01-04 10:35 Eric Bénard
  2012-01-04 11:45 ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Bénard @ 2012-01-04 10:35 UTC (permalink / raw)
  To: barebox

Signed-off-by: Eric Bénard <eric@eukrea.com>
---
 drivers/usb/gadget/u_serial.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/gadget/u_serial.c b/drivers/usb/gadget/u_serial.c
index e310c3a..980b527 100644
--- a/drivers/usb/gadget/u_serial.c
+++ b/drivers/usb/gadget/u_serial.c
@@ -420,6 +420,10 @@ static int serial_getc(struct console_device *cdev)
 static void serial_flush(struct console_device *cdev)
 {
 }
+static int serial_setbaudrate(struct console_device *cdev, int baudrate)
+{
+	return 0;
+}
 
 static struct console_device *mycdev;
 
@@ -469,6 +473,7 @@ int gserial_connect(struct gserial *gser, u8 port_num)
 	cdev->putc = serial_putc;
 	cdev->getc = serial_getc;
 	cdev->flush = serial_flush;
+	cdev->setbrg = serial_setbaudrate;
 	console_register(cdev);
 	mycdev = cdev;
 
-- 
1.7.7.5


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-01-05  8:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-04 10:35 [PATCH] u_serial: add setbrg to be able to use loadb & co Eric Bénard
2012-01-04 11:45 ` Jean-Christophe PLAGNIOL-VILLARD
2012-01-04 15:01   ` [PATCH] loadb: only try to change the baudrate if the driver has this feature Eric Bénard
2012-01-04 16:37     ` Sascha Hauer
2012-01-04 17:04       ` Eric Bénard
2012-01-05  8:28         ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox