* [PATCH] [media] tc358743: fix register i2c_rd/wr function fix
@ 2017-05-04 15:20 Philipp Zabel
2017-05-04 15:24 ` Arnd Bergmann
0 siblings, 1 reply; 4+ messages in thread
From: Philipp Zabel @ 2017-05-04 15:20 UTC (permalink / raw)
To: linux-media
Cc: kernel, Philipp Zabel, Arnd Bergmann, Hans Verkuil,
Mauro Carvalho Chehab
The below mentioned fix contains a small but severe bug,
fix it to make the driver work again.
Fixes: 3538aa6ecfb2 ("[media] tc358743: fix register i2c_rd/wr functions")
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
drivers/media/i2c/tc358743.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/i2c/tc358743.c b/drivers/media/i2c/tc358743.c
index acef4eca269f1..3251cba89e8f6 100644
--- a/drivers/media/i2c/tc358743.c
+++ b/drivers/media/i2c/tc358743.c
@@ -223,7 +223,7 @@ static void i2c_wr8(struct v4l2_subdev *sd, u16 reg, u8 val)
static void i2c_wr8_and_or(struct v4l2_subdev *sd, u16 reg,
u8 mask, u8 val)
{
- i2c_wrreg(sd, reg, (i2c_rdreg(sd, reg, 2) & mask) | val, 2);
+ i2c_wrreg(sd, reg, (i2c_rdreg(sd, reg, 1) & mask) | val, 1);
}
static u16 i2c_rd16(struct v4l2_subdev *sd, u16 reg)
--
2.11.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] [media] tc358743: fix register i2c_rd/wr function fix
2017-05-04 15:20 [PATCH] [media] tc358743: fix register i2c_rd/wr function fix Philipp Zabel
@ 2017-05-04 15:24 ` Arnd Bergmann
2017-05-04 15:36 ` Philipp Zabel
0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2017-05-04 15:24 UTC (permalink / raw)
To: Philipp Zabel
Cc: linux-media, Sascha Hauer, Hans Verkuil, Mauro Carvalho Chehab
On Thu, May 4, 2017 at 5:20 PM, Philipp Zabel <p.zabel@pengutronix.de> wrote:
> The below mentioned fix contains a small but severe bug,
> fix it to make the driver work again.
>
> Fixes: 3538aa6ecfb2 ("[media] tc358743: fix register i2c_rd/wr functions")
> Cc: Arnd Bergmann <arnd@arndb.de>
> Cc: Hans Verkuil <hans.verkuil@cisco.com>
> Cc: Mauro Carvalho Chehab <mchehab@s-opensource.com>
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> ---
Cc: stable@vger.kernel.org # v4.11
Acked-by: Arnd Bergmann <arnd@arndb.de>
Sorry about the typo
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] [media] tc358743: fix register i2c_rd/wr function fix
2017-05-04 15:24 ` Arnd Bergmann
@ 2017-05-04 15:36 ` Philipp Zabel
2017-05-04 15:58 ` Arnd Bergmann
0 siblings, 1 reply; 4+ messages in thread
From: Philipp Zabel @ 2017-05-04 15:36 UTC (permalink / raw)
To: Arnd Bergmann
Cc: linux-media, Sascha Hauer, Hans Verkuil, Mauro Carvalho Chehab
Hi Arnd,
On Thu, 2017-05-04 at 17:24 +0200, Arnd Bergmann wrote:
> On Thu, May 4, 2017 at 5:20 PM, Philipp Zabel <p.zabel@pengutronix.de> wrote:
> > The below mentioned fix contains a small but severe bug,
> > fix it to make the driver work again.
> >
> > Fixes: 3538aa6ecfb2 ("[media] tc358743: fix register i2c_rd/wr functions")
> > Cc: Arnd Bergmann <arnd@arndb.de>
> > Cc: Hans Verkuil <hans.verkuil@cisco.com>
> > Cc: Mauro Carvalho Chehab <mchehab@s-opensource.com>
> > Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> > ---
>
> Cc: stable@vger.kernel.org # v4.11
>
> Acked-by: Arnd Bergmann <arnd@arndb.de>
>
> Sorry about the typo
Thanks, the original fix currently is only in the media-tree master
branch. I don't see any indication that it is queued for
stable/linux-4.11.y though. Should it be?
regards
Philipp
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] [media] tc358743: fix register i2c_rd/wr function fix
2017-05-04 15:36 ` Philipp Zabel
@ 2017-05-04 15:58 ` Arnd Bergmann
0 siblings, 0 replies; 4+ messages in thread
From: Arnd Bergmann @ 2017-05-04 15:58 UTC (permalink / raw)
To: Philipp Zabel
Cc: linux-media, Sascha Hauer, Hans Verkuil, Mauro Carvalho Chehab
On Thu, May 4, 2017 at 5:36 PM, Philipp Zabel <p.zabel@pengutronix.de> wrote:
> Hi Arnd,
>
> On Thu, 2017-05-04 at 17:24 +0200, Arnd Bergmann wrote:
>> On Thu, May 4, 2017 at 5:20 PM, Philipp Zabel <p.zabel@pengutronix.de> wrote:
>> > The below mentioned fix contains a small but severe bug,
>> > fix it to make the driver work again.
>> >
>> > Fixes: 3538aa6ecfb2 ("[media] tc358743: fix register i2c_rd/wr functions")
>> > Cc: Arnd Bergmann <arnd@arndb.de>
>> > Cc: Hans Verkuil <hans.verkuil@cisco.com>
>> > Cc: Mauro Carvalho Chehab <mchehab@s-opensource.com>
>> > Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
>> > ---
>>
>> Cc: stable@vger.kernel.org # v4.11
>>
>> Acked-by: Arnd Bergmann <arnd@arndb.de>
>>
>> Sorry about the typo
>
> Thanks, the original fix currently is only in the media-tree master
> branch. I don't see any indication that it is queued for
> stable/linux-4.11.y though. Should it be?
Sorry, my mistake (again). I looked it up wrong.
Arnd
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-05-04 15:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-04 15:20 [PATCH] [media] tc358743: fix register i2c_rd/wr function fix Philipp Zabel
2017-05-04 15:24 ` Arnd Bergmann
2017-05-04 15:36 ` Philipp Zabel
2017-05-04 15:58 ` Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox