* [PATCH] AF9005: fix typo in the bitmask size
@ 2025-01-22 9:27 Alexey V. Vissarionov
2025-01-22 9:49 ` Fedor Pchelkin
0 siblings, 1 reply; 3+ messages in thread
From: Alexey V. Vissarionov @ 2025-01-22 9:27 UTC (permalink / raw)
To: Mauro Carvalho Chehab
Cc: Alexey V. Vissarionov, Manu Abraham, Luca Olivetti, linux-media,
lvc-project
Found by ALT Linux Team (altlinux.org) and Linux Verification Center
(linuxtesting.org)
Fixes: af4e067e1dcf ("V4L/DVB (5625): Add support for the AF9005 demodulator from Afatech")
Signed-off-by: Alexey V. Vissarionov <gremlin@altlinux.org>
diff --git a/drivers/media/usb/dvb-usb/af9005-fe.c b/drivers/media/usb/dvb-usb/af9005-fe.c
index 404e56b32145f1e6..4621c1d24d578ede 100644
--- a/drivers/media/usb/dvb-usb/af9005-fe.c
+++ b/drivers/media/usb/dvb-usb/af9005-fe.c
@@ -453,7 +453,7 @@ static int af9005_fe_read_status(struct dvb_frontend *fe,
ret = af9005_read_register_bits(state->d,
xd_r_mp2if_sync_byte_locked,
mp2if_sync_byte_locked_pos,
- mp2if_sync_byte_locked_pos, &temp);
+ mp2if_sync_byte_locked_len, &temp);
if (ret)
return ret;
if (temp)
--
Alexey V. Vissarionov
gremlin ПРИ altlinux ТЧК org; +vii-cmiii-ccxxix-lxxix-xlii
GPG: 0D92F19E1C0DC36E27F61A29CD17E2B43D879005 @ hkp://keys.gnupg.net
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] AF9005: fix typo in the bitmask size
2025-01-22 9:27 [PATCH] AF9005: fix typo in the bitmask size Alexey V. Vissarionov
@ 2025-01-22 9:49 ` Fedor Pchelkin
0 siblings, 0 replies; 3+ messages in thread
From: Fedor Pchelkin @ 2025-01-22 9:49 UTC (permalink / raw)
To: Alexey V. Vissarionov
Cc: Mauro Carvalho Chehab, lvc-project, linux-media, Manu Abraham,
Luca Olivetti
Hi,
The same patch was sent twice [1,2]. Why? If something has changed, it's
good to denote the next version as v2 and briefly explain the v1->v2
changes in the zone after `---`.
[1]: https://lore.kernel.org/linux-media/20250122092733.GD12162@altlinux.org/
[2]: https://lore.kernel.org/linux-media/20250122000103.GB12162@altlinux.org/
On Wed, 22. Jan 12:27, Alexey V. Vissarionov wrote:
> Found by ALT Linux Team (altlinux.org) and Linux Verification Center
> (linuxtesting.org)
Even for the one-line fixes there should be some brief explanation on
*why* there is a problem and why it should be fixed, i.e. why there is
a typo in the code.
I guess the problem looks obvious here but still there may be some
useful information (if any) provided to the changelog.
>
> Fixes: af4e067e1dcf ("V4L/DVB (5625): Add support for the AF9005 demodulator from Afatech")
>
The blank line between Fixes and Signed-off-by is unwanted.
> Signed-off-by: Alexey V. Vissarionov <gremlin@altlinux.org>
git format-patch usually generates a `---` line here after the end of
the commit message.
Please take a look at [3].
[3]: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#the-canonical-patch-format
>
> diff --git a/drivers/media/usb/dvb-usb/af9005-fe.c b/drivers/media/usb/dvb-usb/af9005-fe.c
> index 404e56b32145f1e6..4621c1d24d578ede 100644
> --- a/drivers/media/usb/dvb-usb/af9005-fe.c
> +++ b/drivers/media/usb/dvb-usb/af9005-fe.c
> @@ -453,7 +453,7 @@ static int af9005_fe_read_status(struct dvb_frontend *fe,
> ret = af9005_read_register_bits(state->d,
> xd_r_mp2if_sync_byte_locked,
> mp2if_sync_byte_locked_pos,
> - mp2if_sync_byte_locked_pos, &temp);
> + mp2if_sync_byte_locked_len, &temp);
> if (ret)
> return ret;
> if (temp)
>
> --
> Alexey V. Vissarionov
> gremlin ПРИ altlinux ТЧК org; +vii-cmiii-ccxxix-lxxix-xlii
> GPG: 0D92F19E1C0DC36E27F61A29CD17E2B43D879005 @ hkp://keys.gnupg.net
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] AF9005: fix typo in the bitmask size
@ 2025-01-22 0:01 Alexey V. Vissarionov
0 siblings, 0 replies; 3+ messages in thread
From: Alexey V. Vissarionov @ 2025-01-22 0:01 UTC (permalink / raw)
To: Mauro Carvalho Chehab
Cc: Alexey V. Vissarionov, Manu Abraham, Luca Olivetti, linux-media,
lvc-project
Found by ALT Linux Team (altlinux.org) and Linux Verification Center (linuxtesting.org)
Fixes: af4e067e1dcf ("V4L/DVB (5625): Add support for the AF9005 demodulator from Afatech")
Signed-off-by: Alexey V. Vissarionov <gremlin@altlinux.org>
diff --git a/drivers/media/usb/dvb-usb/af9005-fe.c b/drivers/media/usb/dvb-usb/af9005-fe.c
index 404e56b32145f1e6..4621c1d24d578ede 100644
--- a/drivers/media/usb/dvb-usb/af9005-fe.c
+++ b/drivers/media/usb/dvb-usb/af9005-fe.c
@@ -453,7 +453,7 @@ static int af9005_fe_read_status(struct dvb_frontend *fe,
ret = af9005_read_register_bits(state->d,
xd_r_mp2if_sync_byte_locked,
mp2if_sync_byte_locked_pos,
- mp2if_sync_byte_locked_pos, &temp);
+ mp2if_sync_byte_locked_len, &temp);
if (ret)
return ret;
if (temp)
--
Alexey V. Vissarionov
gremlin ПРИ altlinux ТЧК org; +vii-cmiii-ccxxix-lxxix-xlii
GPG: 0D92F19E1C0DC36E27F61A29CD17E2B43D879005 @ hkp://keys.gnupg.net
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-01-22 9:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-22 9:27 [PATCH] AF9005: fix typo in the bitmask size Alexey V. Vissarionov
2025-01-22 9:49 ` Fedor Pchelkin
-- strict thread matches above, loose matches on Subject: below --
2025-01-22 0:01 Alexey V. Vissarionov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.