* [PATCH] i2c: i2c-mxs: Fix type of error code
@ 2013-01-08 0:32 Fabio Estevam
[not found] ` <1357605126-26537-1-git-send-email-festevam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Fabio Estevam @ 2013-01-08 0:32 UTC (permalink / raw)
To: w.sang-bIcnvbaLZ9MEGnE8C9+IrQ
Cc: marex-ynQEQJNshbs, linux-i2c-u79uwXL29TY76Z2rM5mHXA,
Fabio Estevam
From: Fabio Estevam <fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
cmd_err is used to handle error code, so it should not be unsigned.
This fixes the following warning when building with W=1 option:
drivers/i2c/busses/i2c-mxs.c: In function 'mxs_i2c_xfer_msg':
drivers/i2c/busses/i2c-mxs.c:331:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Signed-off-by: Fabio Estevam <fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
---
drivers/i2c/busses/i2c-mxs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-mxs.c b/drivers/i2c/busses/i2c-mxs.c
index 1b1a936..621153a 100644
--- a/drivers/i2c/busses/i2c-mxs.c
+++ b/drivers/i2c/busses/i2c-mxs.c
@@ -127,7 +127,7 @@ struct mxs_i2c_dev {
struct device *dev;
void __iomem *regs;
struct completion cmd_complete;
- u32 cmd_err;
+ int cmd_err;
struct i2c_adapter adapter;
const struct mxs_i2c_speed_config *speed;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] i2c: i2c-mxs: Fix type of error code
[not found] ` <1357605126-26537-1-git-send-email-festevam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2013-01-08 6:57 ` Marek Vasut
2013-01-23 9:53 ` Wolfram Sang
1 sibling, 0 replies; 6+ messages in thread
From: Marek Vasut @ 2013-01-08 6:57 UTC (permalink / raw)
To: Fabio Estevam
Cc: w.sang-bIcnvbaLZ9MEGnE8C9+IrQ, linux-i2c-u79uwXL29TY76Z2rM5mHXA,
Fabio Estevam
Dear Fabio Estevam,
> From: Fabio Estevam <fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
>
> cmd_err is used to handle error code, so it should not be unsigned.
>
> This fixes the following warning when building with W=1 option:
>
> drivers/i2c/busses/i2c-mxs.c: In function 'mxs_i2c_xfer_msg':
> drivers/i2c/busses/i2c-mxs.c:331:19: warning: comparison between signed and
> unsigned integer expressions [-Wsign-compare]
>
> Signed-off-by: Fabio Estevam <fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
Amazing catch
Acked-by: Marek Vasut <marex-ynQEQJNshbs@public.gmane.org>
Can this also go to -stable 3.7 ?
> ---
> drivers/i2c/busses/i2c-mxs.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/i2c/busses/i2c-mxs.c b/drivers/i2c/busses/i2c-mxs.c
> index 1b1a936..621153a 100644
> --- a/drivers/i2c/busses/i2c-mxs.c
> +++ b/drivers/i2c/busses/i2c-mxs.c
> @@ -127,7 +127,7 @@ struct mxs_i2c_dev {
> struct device *dev;
> void __iomem *regs;
> struct completion cmd_complete;
> - u32 cmd_err;
> + int cmd_err;
> struct i2c_adapter adapter;
> const struct mxs_i2c_speed_config *speed;
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] i2c: i2c-mxs: Fix type of error code
[not found] ` <1357605126-26537-1-git-send-email-festevam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-01-08 6:57 ` Marek Vasut
@ 2013-01-23 9:53 ` Wolfram Sang
[not found] ` <20130123095314.GA3767-8EAEigeeuNG034pCzgS/Qg7AFbiQbgqx@public.gmane.org>
1 sibling, 1 reply; 6+ messages in thread
From: Wolfram Sang @ 2013-01-23 9:53 UTC (permalink / raw)
To: Fabio Estevam
Cc: marex-ynQEQJNshbs, linux-i2c-u79uwXL29TY76Z2rM5mHXA,
Fabio Estevam
On Mon, Jan 07, 2013 at 10:32:06PM -0200, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
>
> cmd_err is used to handle error code, so it should not be unsigned.
>
> This fixes the following warning when building with W=1 option:
>
> drivers/i2c/busses/i2c-mxs.c: In function 'mxs_i2c_xfer_msg':
> drivers/i2c/busses/i2c-mxs.c:331:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>
> Signed-off-by: Fabio Estevam <fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
Thanks! Applied to current and added stable.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] i2c: i2c-mxs: Fix type of error code
[not found] ` <20130123095314.GA3767-8EAEigeeuNG034pCzgS/Qg7AFbiQbgqx@public.gmane.org>
@ 2013-01-23 11:01 ` Marek Vasut
[not found] ` <201301231201.51675.marex-ynQEQJNshbs@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Marek Vasut @ 2013-01-23 11:01 UTC (permalink / raw)
To: Wolfram Sang
Cc: Fabio Estevam, linux-i2c-u79uwXL29TY76Z2rM5mHXA, Fabio Estevam
Dear Wolfram Sang,
> On Mon, Jan 07, 2013 at 10:32:06PM -0200, Fabio Estevam wrote:
> > From: Fabio Estevam <fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
> >
> > cmd_err is used to handle error code, so it should not be unsigned.
> >
> > This fixes the following warning when building with W=1 option:
> >
> > drivers/i2c/busses/i2c-mxs.c: In function 'mxs_i2c_xfer_msg':
> > drivers/i2c/busses/i2c-mxs.c:331:19: warning: comparison between signed
> > and unsigned integer expressions [-Wsign-compare]
> >
> > Signed-off-by: Fabio Estevam <fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
>
> Thanks! Applied to current and added stable.
I dont wanna be nagging, but you polling the linux-i2c stuff every 3 months or
so doesn't make the development all that smooth. Btw. there are other patches
(like the speed patch, like the pio/dma patch) which still keep hanging. I'd
like to see them in 3.8, since they were submitted nearly three months ago.
I even bumped you about them every so often. Can you go through your mailbox
please?
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] i2c: i2c-mxs: Fix type of error code
[not found] ` <201301231201.51675.marex-ynQEQJNshbs@public.gmane.org>
@ 2013-01-23 11:10 ` Wolfram Sang
[not found] ` <20130123111039.GD16264-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Wolfram Sang @ 2013-01-23 11:10 UTC (permalink / raw)
To: Marek Vasut
Cc: Fabio Estevam, linux-i2c-u79uwXL29TY76Z2rM5mHXA, Fabio Estevam
[-- Attachment #1: Type: text/plain, Size: 956 bytes --]
> I dont wanna be nagging, but you polling the linux-i2c stuff every 3 months or
> so doesn't make the development all that smooth.
I surely know that, but I can't help it at the moment. I have reasonable
hopes that things will improve in a few weeks.
> (like the speed patch, like the pio/dma patch) which still keep hanging. I'd
> like to see them in 3.8, since they were submitted nearly three months ago.
As I said, -next branch probably this weekend. I am already at it.
> I even bumped you about them every so often. Can you go through your mailbox
> please?
I get all the mails, I don't necessarily answer them (costs time) if I
only can say "no time currently". If you want to help improving the
situation, feel free to review patches.
Regards,
Wolfram
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] i2c: i2c-mxs: Fix type of error code
[not found] ` <20130123111039.GD16264-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
@ 2013-01-23 11:26 ` Marek Vasut
0 siblings, 0 replies; 6+ messages in thread
From: Marek Vasut @ 2013-01-23 11:26 UTC (permalink / raw)
To: Wolfram Sang
Cc: Fabio Estevam, linux-i2c-u79uwXL29TY76Z2rM5mHXA, Fabio Estevam
Dear Wolfram Sang,
> > I dont wanna be nagging, but you polling the linux-i2c stuff every 3
> > months or so doesn't make the development all that smooth.
>
> I surely know that, but I can't help it at the moment. I have reasonable
> hopes that things will improve in a few weeks.
Good.
> > (like the speed patch, like the pio/dma patch) which still keep hanging.
> > I'd like to see them in 3.8, since they were submitted nearly three
> > months ago.
>
> As I said, -next branch probably this weekend. I am already at it.
Thanks
> > I even bumped you about them every so often. Can you go through your
> > mailbox please?
>
> I get all the mails, I don't necessarily answer them (costs time) if I
> only can say "no time currently". If you want to help improving the
> situation, feel free to review patches.
Certainly, give me two weeks (until 6th), I'll be out of the gutter by then.
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-01-23 11:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-08 0:32 [PATCH] i2c: i2c-mxs: Fix type of error code Fabio Estevam
[not found] ` <1357605126-26537-1-git-send-email-festevam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-01-08 6:57 ` Marek Vasut
2013-01-23 9:53 ` Wolfram Sang
[not found] ` <20130123095314.GA3767-8EAEigeeuNG034pCzgS/Qg7AFbiQbgqx@public.gmane.org>
2013-01-23 11:01 ` Marek Vasut
[not found] ` <201301231201.51675.marex-ynQEQJNshbs@public.gmane.org>
2013-01-23 11:10 ` Wolfram Sang
[not found] ` <20130123111039.GD16264-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-01-23 11:26 ` Marek Vasut
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).