* [PATCH] mos7840: test and propagate set_uart_reg return value
@ 2008-04-17 4:16 Roel Kluin
2008-04-17 6:58 ` SL Baur
2008-04-28 23:53 ` patch usb-mos7840-test-and-propagate-set_uart_reg-return-value.patch added to gregkh-2.6 tree gregkh
0 siblings, 2 replies; 8+ messages in thread
From: Roel Kluin @ 2008-04-17 4:16 UTC (permalink / raw)
To: Greg KH, linux-usb, lkml
The test for an mos7840_set_uart_reg() error return value only works when
status is signed. propagate its error value.
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
---
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c
index aeeb9cb..ef1ede2 100644
--- a/drivers/usb/serial/mos7840.c
+++ b/drivers/usb/serial/mos7840.c
@@ -1713,7 +1713,7 @@ static int mos7840_tiocmset(struct usb_serial_port *port, struct file *file,
{
struct moschip_port *mos7840_port;
unsigned int mcr;
- unsigned int status;
+ int status;
dbg("%s - port %d", __FUNCTION__, port->number);
@@ -1739,11 +1739,10 @@ static int mos7840_tiocmset(struct usb_serial_port *port, struct file *file,
mos7840_port->shadowMCR = mcr;
- status = 0;
status = mos7840_set_uart_reg(port, MODEM_CONTROL_REGISTER, mcr);
if (status < 0) {
dbg("setting MODEM_CONTROL_REGISTER Failed\n");
- return -1;
+ return status;
}
return 0;
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] mos7840: test and propagate set_uart_reg return value
2008-04-17 4:16 [PATCH] mos7840: test and propagate set_uart_reg return value Roel Kluin
@ 2008-04-17 6:58 ` SL Baur
2008-04-28 23:53 ` patch usb-mos7840-test-and-propagate-set_uart_reg-return-value.patch added to gregkh-2.6 tree gregkh
1 sibling, 0 replies; 8+ messages in thread
From: SL Baur @ 2008-04-17 6:58 UTC (permalink / raw)
To: Roel Kluin; +Cc: Greg KH, linux-usb, lkml
On 4/16/08, Roel Kluin <12o3l@tiscali.nl> wrote:
> The test for an mos7840_set_uart_reg() error return value only works when
> status is signed. propagate its error value.
>
> Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
> ---
>
> diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c
> index aeeb9cb..ef1ede2 100644
> --- a/drivers/usb/serial/mos7840.c
> +++ b/drivers/usb/serial/mos7840.c
> @@ -1713,7 +1713,7 @@ static int mos7840_tiocmset(struct usb_serial_port *port, struct file *file,
> {
> struct moschip_port *mos7840_port;
> unsigned int mcr;
> - unsigned int status;
> + int status;
>
> dbg("%s - port %d", __FUNCTION__, port->number);
>
> @@ -1739,11 +1739,10 @@ static int mos7840_tiocmset(struct usb_serial_port *port, struct file *file,
>
> mos7840_port->shadowMCR = mcr;
>
> - status = 0;
> status = mos7840_set_uart_reg(port, MODEM_CONTROL_REGISTER, mcr);
> if (status < 0) {
> dbg("setting MODEM_CONTROL_REGISTER Failed\n");
> - return -1;
> + return status;
> }
>
> return 0;
O.K. I can see you're changing types to properly match the function return
values. May I ask why you didn't change mos7840_tiocmget the same way?
-sb
^ permalink raw reply [flat|nested] 8+ messages in thread
* patch usb-mos7840-test-and-propagate-set_uart_reg-return-value.patch added to gregkh-2.6 tree
2008-04-17 4:16 [PATCH] mos7840: test and propagate set_uart_reg return value Roel Kluin
2008-04-17 6:58 ` SL Baur
@ 2008-04-28 23:53 ` gregkh
2008-04-29 6:31 ` SL Baur
1 sibling, 1 reply; 8+ messages in thread
From: gregkh @ 2008-04-28 23:53 UTC (permalink / raw)
To: 12o3l, gregkh, greg, linux-kernel, steve
This is a note to let you know that I've just added the patch titled
Subject: USB: mos7840: test and propagate set_uart_reg return value
to my gregkh-2.6 tree. Its filename is
usb-mos7840-test-and-propagate-set_uart_reg-return-value.patch
This tree can be found at
http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/
>From 12o3l@tiscali.nl Wed Apr 16 21:16:30 2008
From: Roel Kluin <12o3l@tiscali.nl>
Date: Thu, 17 Apr 2008 06:16:24 +0200
Subject: USB: mos7840: test and propagate set_uart_reg return value
To: Greg KH <greg@kroah.com>, linux-usb@vger.kernel.org, lkml <linux-kernel@vger.kernel.org>
Message-ID: <4806CF18.2050403@tiscali.nl>
The test for an mos7840_set_uart_reg() error return value only works when
status is signed. propagate its error value.
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Cc: SL Baur <steve@xemacs.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
drivers/usb/serial/mos7840.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
--- a/drivers/usb/serial/mos7840.c
+++ b/drivers/usb/serial/mos7840.c
@@ -1713,7 +1713,7 @@ static int mos7840_tiocmset(struct usb_s
{
struct moschip_port *mos7840_port;
unsigned int mcr;
- unsigned int status;
+ int status;
dbg("%s - port %d", __func__, port->number);
@@ -1740,11 +1740,10 @@ static int mos7840_tiocmset(struct usb_s
mos7840_port->shadowMCR = mcr;
- status = 0;
status = mos7840_set_uart_reg(port, MODEM_CONTROL_REGISTER, mcr);
if (status < 0) {
dbg("setting MODEM_CONTROL_REGISTER Failed\n");
- return -1;
+ return status;
}
return 0;
Patches currently in gregkh-2.6 which might be from 12o3l@tiscali.nl are
usb/usb-mos7840-test-and-propagate-set_uart_reg-return-value.patch
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: patch usb-mos7840-test-and-propagate-set_uart_reg-return-value.patch added to gregkh-2.6 tree
2008-04-28 23:53 ` patch usb-mos7840-test-and-propagate-set_uart_reg-return-value.patch added to gregkh-2.6 tree gregkh
@ 2008-04-29 6:31 ` SL Baur
2008-04-29 6:51 ` Greg KH
0 siblings, 1 reply; 8+ messages in thread
From: SL Baur @ 2008-04-29 6:31 UTC (permalink / raw)
To: gregkh@suse.de; +Cc: 12o3l, greg, linux-kernel
On 4/28/08, gregkh@suse.de <gregkh@suse.de> wrote:
>
> This is a note to let you know that I've just added the patch titled
>
> Subject: USB: mos7840: test and propagate set_uart_reg return value
>
> to my gregkh-2.6 tree. Its filename is
>
> usb-mos7840-test-and-propagate-set_uart_reg-return-value.patch
NAK. Reviewer's question was never answered.
-sb
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: patch usb-mos7840-test-and-propagate-set_uart_reg-return-value.patch added to gregkh-2.6 tree
2008-04-29 6:31 ` SL Baur
@ 2008-04-29 6:51 ` Greg KH
2008-04-29 7:33 ` SL Baur
0 siblings, 1 reply; 8+ messages in thread
From: Greg KH @ 2008-04-29 6:51 UTC (permalink / raw)
To: SL Baur; +Cc: 12o3l, greg, linux-kernel
On Mon, Apr 28, 2008 at 11:31:07PM -0700, SL Baur wrote:
> On 4/28/08, gregkh@suse.de <gregkh@suse.de> wrote:
> >
> > This is a note to let you know that I've just added the patch titled
> >
> > Subject: USB: mos7840: test and propagate set_uart_reg return value
> >
> > to my gregkh-2.6 tree. Its filename is
> >
> > usb-mos7840-test-and-propagate-set_uart_reg-return-value.patch
>
> NAK. Reviewer's question was never answered.
Does that mean that the original patch is invalid? Or just that your
question was never answered?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: patch usb-mos7840-test-and-propagate-set_uart_reg-return-value.patch added to gregkh-2.6 tree
2008-04-29 6:51 ` Greg KH
@ 2008-04-29 7:33 ` SL Baur
2008-04-30 6:03 ` Greg KH
0 siblings, 1 reply; 8+ messages in thread
From: SL Baur @ 2008-04-29 7:33 UTC (permalink / raw)
To: Greg KH; +Cc: 12o3l, greg, linux-kernel
On 4/28/08, Greg KH <gregkh@suse.de> wrote:
> On Mon, Apr 28, 2008 at 11:31:07PM -0700, SL Baur wrote:
> Does that mean that the original patch is invalid? Or just that your
> question was never answered?
I think there are more of the same issues that the patch
addressed in the same file and the patcher never responded
back about that.
-sb
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: patch usb-mos7840-test-and-propagate-set_uart_reg-return-value.patch added to gregkh-2.6 tree
2008-04-29 7:33 ` SL Baur
@ 2008-04-30 6:03 ` Greg KH
2008-05-01 1:56 ` SL Baur
0 siblings, 1 reply; 8+ messages in thread
From: Greg KH @ 2008-04-30 6:03 UTC (permalink / raw)
To: SL Baur; +Cc: 12o3l, greg, linux-kernel
On Tue, Apr 29, 2008 at 12:33:39AM -0700, SL Baur wrote:
> On 4/28/08, Greg KH <gregkh@suse.de> wrote:
> > On Mon, Apr 28, 2008 at 11:31:07PM -0700, SL Baur wrote:
>
> > Does that mean that the original patch is invalid? Or just that your
> > question was never answered?
>
> I think there are more of the same issues that the patch
> addressed in the same file and the patcher never responded
> back about that.
But again, is the current patch somehow not valid?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: patch usb-mos7840-test-and-propagate-set_uart_reg-return-value.patch added to gregkh-2.6 tree
2008-04-30 6:03 ` Greg KH
@ 2008-05-01 1:56 ` SL Baur
0 siblings, 0 replies; 8+ messages in thread
From: SL Baur @ 2008-05-01 1:56 UTC (permalink / raw)
To: Greg KH; +Cc: 12o3l, greg, linux-kernel
On 4/29/08, Greg KH <gregkh@suse.de> wrote:
> On Tue, Apr 29, 2008 at 12:33:39AM -0700, SL Baur wrote:
> > On 4/28/08, Greg KH <gregkh@suse.de> wrote:
> > > On Mon, Apr 28, 2008 at 11:31:07PM -0700, SL Baur wrote:
> >
> > > Does that mean that the original patch is invalid? Or just that your
> > > question was never answered?
> >
> > I think there are more of the same issues that the patch
> > addressed in the same file and the patcher never responded
> > back about that.
>
>
> But again, is the current patch somehow not valid?
No, it's fine.
-sb
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-05-01 1:56 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-17 4:16 [PATCH] mos7840: test and propagate set_uart_reg return value Roel Kluin
2008-04-17 6:58 ` SL Baur
2008-04-28 23:53 ` patch usb-mos7840-test-and-propagate-set_uart_reg-return-value.patch added to gregkh-2.6 tree gregkh
2008-04-29 6:31 ` SL Baur
2008-04-29 6:51 ` Greg KH
2008-04-29 7:33 ` SL Baur
2008-04-30 6:03 ` Greg KH
2008-05-01 1:56 ` SL Baur
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox