From: "Eric Bénard" <eric@eukrea.com>
To: barebox@lists.infradead.org
Subject: [PATCH] u_serial: add setbrg to be able to use loadb & co
Date: Wed, 4 Jan 2012 11:35:59 +0100 [thread overview]
Message-ID: <1325673359-8101-1-git-send-email-eric@eukrea.com> (raw)
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
next reply other threads:[~2012-01-04 10:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-04 10:35 Eric Bénard [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1325673359-8101-1-git-send-email-eric@eukrea.com \
--to=eric@eukrea.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox