* Re: [PATCH] Fix SDIO break control to now return success or an error
2008-07-10 11:28 [PATCH] Fix SDIO break control to now return success or an error David Howells
@ 2008-07-10 11:17 ` Alan Cox
2008-07-15 12:41 ` Pierre Ossman
2008-07-18 6:02 ` Geert Uytterhoeven
2 siblings, 0 replies; 5+ messages in thread
From: Alan Cox @ 2008-07-10 11:17 UTC (permalink / raw)
To: David Howells; +Cc: drzeus-mmc, akpm, dhowells, alan, linux-kernel
On Thu, 10 Jul 2008 12:28:48 +0100
David Howells <dhowells@redhat.com> wrote:
> Fix SDIO break control to now return success or an error.
>
> This is a consequence of patch 9ea761bfef52c116fed4715d4043392c2503fe6a.
Thanks. Thats what you get for hiding your tty drivers in weird places.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] Fix SDIO break control to now return success or an error
@ 2008-07-10 11:28 David Howells
2008-07-10 11:17 ` Alan Cox
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: David Howells @ 2008-07-10 11:28 UTC (permalink / raw)
To: drzeus-mmc, akpm; +Cc: dhowells, alan, linux-kernel
Fix SDIO break control to now return success or an error.
This is a consequence of patch 9ea761bfef52c116fed4715d4043392c2503fe6a.
Signed-off-by: David Howells <dhowells@redhat.com>
---
drivers/mmc/card/sdio_uart.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/mmc/card/sdio_uart.c b/drivers/mmc/card/sdio_uart.c
index eeea84c..78ad487 100644
--- a/drivers/mmc/card/sdio_uart.c
+++ b/drivers/mmc/card/sdio_uart.c
@@ -885,12 +885,14 @@ static void sdio_uart_set_termios(struct tty_struct *tty, struct ktermios *old_t
sdio_uart_release_func(port);
}
-static void sdio_uart_break_ctl(struct tty_struct *tty, int break_state)
+static int sdio_uart_break_ctl(struct tty_struct *tty, int break_state)
{
struct sdio_uart_port *port = tty->driver_data;
+ int result;
- if (sdio_uart_claim_func(port) != 0)
- return;
+ result = sdio_uart_claim_func(port);
+ if (result != 0)
+ return result;
if (break_state == -1)
port->lcr |= UART_LCR_SBC;
@@ -899,6 +901,7 @@ static void sdio_uart_break_ctl(struct tty_struct *tty, int break_state)
sdio_out(port, UART_LCR, port->lcr);
sdio_uart_release_func(port);
+ return 0;
}
static int sdio_uart_tiocmget(struct tty_struct *tty, struct file *file)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Fix SDIO break control to now return success or an error
2008-07-10 11:28 [PATCH] Fix SDIO break control to now return success or an error David Howells
2008-07-10 11:17 ` Alan Cox
@ 2008-07-15 12:41 ` Pierre Ossman
2008-07-18 6:02 ` Geert Uytterhoeven
2 siblings, 0 replies; 5+ messages in thread
From: Pierre Ossman @ 2008-07-15 12:41 UTC (permalink / raw)
To: David Howells; +Cc: akpm, dhowells, alan, linux-kernel
On Thu, 10 Jul 2008 12:28:48 +0100
David Howells <dhowells@redhat.com> wrote:
> Fix SDIO break control to now return success or an error.
>
> This is a consequence of patch 9ea761bfef52c116fed4715d4043392c2503fe6a.
>
> Signed-off-by: David Howells <dhowells@redhat.com>
> ---
Applied, thanks.
--
-- Pierre Ossman
Linux kernel, MMC maintainer http://www.kernel.org
rdesktop, core developer http://www.rdesktop.org
WARNING: This correspondence is being monitored by the
Swedish government. Make sure your server uses encryption
for SMTP traffic and consider using PGP for end-to-end
encryption.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Fix SDIO break control to now return success or an error
2008-07-10 11:28 [PATCH] Fix SDIO break control to now return success or an error David Howells
2008-07-10 11:17 ` Alan Cox
2008-07-15 12:41 ` Pierre Ossman
@ 2008-07-18 6:02 ` Geert Uytterhoeven
2008-07-18 23:52 ` Pierre Ossman
2 siblings, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2008-07-18 6:02 UTC (permalink / raw)
To: David Howells, Linus Torvalds
Cc: drzeus-mmc, Andrew Morton, alan, Linux Kernel Development
On Thu, 10 Jul 2008, David Howells wrote:
> Fix SDIO break control to now return success or an error.
This patch is now in mainline as commit
c43d8636971c39da993e94082fd65bfff421618e.
> This is a consequence of patch 9ea761bfef52c116fed4715d4043392c2503fe6a.
But this isn't, causing
| drivers/mmc/card/sdio_uart.c:1007: warning: initialization from incompatible pointer type
> Signed-off-by: David Howells <dhowells@redhat.com>
> ---
>
> drivers/mmc/card/sdio_uart.c | 9 ++++++---
> 1 files changed, 6 insertions(+), 3 deletions(-)
>
>
> diff --git a/drivers/mmc/card/sdio_uart.c b/drivers/mmc/card/sdio_uart.c
> index eeea84c..78ad487 100644
> --- a/drivers/mmc/card/sdio_uart.c
> +++ b/drivers/mmc/card/sdio_uart.c
> @@ -885,12 +885,14 @@ static void sdio_uart_set_termios(struct tty_struct *tty, struct ktermios *old_t
> sdio_uart_release_func(port);
> }
>
> -static void sdio_uart_break_ctl(struct tty_struct *tty, int break_state)
> +static int sdio_uart_break_ctl(struct tty_struct *tty, int break_state)
> {
> struct sdio_uart_port *port = tty->driver_data;
> + int result;
>
> - if (sdio_uart_claim_func(port) != 0)
> - return;
> + result = sdio_uart_claim_func(port);
> + if (result != 0)
> + return result;
>
> if (break_state == -1)
> port->lcr |= UART_LCR_SBC;
> @@ -899,6 +901,7 @@ static void sdio_uart_break_ctl(struct tty_struct *tty, int break_state)
> sdio_out(port, UART_LCR, port->lcr);
>
> sdio_uart_release_func(port);
> + return 0;
> }
>
> static int sdio_uart_tiocmget(struct tty_struct *tty, struct file *file)
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Fix SDIO break control to now return success or an error
2008-07-18 6:02 ` Geert Uytterhoeven
@ 2008-07-18 23:52 ` Pierre Ossman
0 siblings, 0 replies; 5+ messages in thread
From: Pierre Ossman @ 2008-07-18 23:52 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: David Howells, Linus Torvalds, Andrew Morton, alan,
Linux Kernel Development
On Fri, 18 Jul 2008 08:02:45 +0200 (CEST)
Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> On Thu, 10 Jul 2008, David Howells wrote:
> > Fix SDIO break control to now return success or an error.
>
> This patch is now in mainline as commit
> c43d8636971c39da993e94082fd65bfff421618e.
>
> > This is a consequence of patch 9ea761bfef52c116fed4715d4043392c2503fe6a.
>
> But this isn't, causing
>
> | drivers/mmc/card/sdio_uart.c:1007: warning: initialization from incompatible pointer type
>
That's annoying. I just assumed the problem was one in Linus' or my tree
(why are people sending patches to me otherwise?). Alan, is this
something that will be in 2.6.27 or should I queue up a revert?
Rgds
--
-- Pierre Ossman
Linux kernel, MMC maintainer http://www.kernel.org
rdesktop, core developer http://www.rdesktop.org
WARNING: This correspondence is being monitored by the
Swedish government. Make sure your server uses encryption
for SMTP traffic and consider using PGP for end-to-end
encryption.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-07-18 23:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-10 11:28 [PATCH] Fix SDIO break control to now return success or an error David Howells
2008-07-10 11:17 ` Alan Cox
2008-07-15 12:41 ` Pierre Ossman
2008-07-18 6:02 ` Geert Uytterhoeven
2008-07-18 23:52 ` Pierre Ossman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®