mbox series

[v3,0/2] media: rcar-vin: Mask access to VNCSI_IFMD register

Message ID 20201126074757.2768-1-jacopo+renesas@jmondi.org
Headers show
Series media: rcar-vin: Mask access to VNCSI_IFMD register | expand

Message

Jacopo Mondi Nov. 26, 2020, 7:47 a.m. UTC
As reported in patch 2/2 commit message the the VNCSI_IFMD register
has the following limitations according to chip manual revision 2.20

- V3M, V3H and E3 do not support the DES1 field has they do not feature
a CSI20 receiver.
- D3 only supports parallel input, and the whole register shall always
be written as 0.

This patch upports the BSP change commit f54697394457
("media: rcar-vin: Fix VnCSI_IFMD register access for r8a77990") from
Koji Matsuoka

Tested on r-car E3 Ebisu.

v2 -> v3:
- Remove a few comments and add Niklas' tag to [2/2]

v1 -> v2:
- Inspect the channel routing table to deduce the availability of DES1/DES0
  bits as suggested by Niklas.

Jacopo Mondi (2):
  media: rcar-vin: Remove unused macro
  media: rcar-vin: Mask VNCSI_IFMD register

 drivers/media/platform/rcar-vin/rcar-dma.c | 26 ++++++++++++++++++----
 1 file changed, 22 insertions(+), 4 deletions(-)

--
2.29.1

Comments

Mauro Carvalho Chehab Dec. 3, 2020, 6:58 a.m. UTC | #1
Em Thu, 26 Nov 2020 08:47:55 +0100
Jacopo Mondi <jacopo+renesas@jmondi.org> escreveu:

> As reported in patch 2/2 commit message the the VNCSI_IFMD register

> has the following limitations according to chip manual revision 2.20

> 

> - V3M, V3H and E3 do not support the DES1 field has they do not feature

> a CSI20 receiver.

> - D3 only supports parallel input, and the whole register shall always

> be written as 0.

> 

> This patch upports the BSP change commit f54697394457

> ("media: rcar-vin: Fix VnCSI_IFMD register access for r8a77990") from

> Koji Matsuoka


As checkpatch warned:

	-:22: WARNING: Unknown commit id 'f54697394457', maybe rebased or not pulled?
	
There's no such commit upstream. Are you referring to an OOT patch?

If so, you should provide an URL from where the patch is stored,
as otherwise this comment won't make any sense upstream.

If you can't provide such URL, please adjust the comment to provide
a description that won't be dependent of such OOT commit.

> 

> Tested on r-car E3 Ebisu.

> 

> v2 -> v3:

> - Remove a few comments and add Niklas' tag to [2/2]

> 

> v1 -> v2:

> - Inspect the channel routing table to deduce the availability of DES1/DES0

>   bits as suggested by Niklas.

> 

> Jacopo Mondi (2):

>   media: rcar-vin: Remove unused macro

>   media: rcar-vin: Mask VNCSI_IFMD register

> 

>  drivers/media/platform/rcar-vin/rcar-dma.c | 26 ++++++++++++++++++----

>  1 file changed, 22 insertions(+), 4 deletions(-)

> 

> --

> 2.29.1

> 




Thanks,
Mauro
Hans Verkuil Dec. 3, 2020, 7:06 a.m. UTC | #2
On 03/12/2020 07:58, Mauro Carvalho Chehab wrote:
> Em Thu, 26 Nov 2020 08:47:55 +0100

> Jacopo Mondi <jacopo+renesas@jmondi.org> escreveu:

> 

>> As reported in patch 2/2 commit message the the VNCSI_IFMD register

>> has the following limitations according to chip manual revision 2.20

>>

>> - V3M, V3H and E3 do not support the DES1 field has they do not feature

>> a CSI20 receiver.

>> - D3 only supports parallel input, and the whole register shall always

>> be written as 0.

>>

>> This patch upports the BSP change commit f54697394457

>> ("media: rcar-vin: Fix VnCSI_IFMD register access for r8a77990") from

>> Koji Matsuoka

> 

> As checkpatch warned:

> 

> 	-:22: WARNING: Unknown commit id 'f54697394457', maybe rebased or not pulled?

> 	

> There's no such commit upstream. Are you referring to an OOT patch?

> 

> If so, you should provide an URL from where the patch is stored,

> as otherwise this comment won't make any sense upstream.

> 

> If you can't provide such URL, please adjust the comment to provide

> a description that won't be dependent of such OOT commit.


Read the commit message:

>> This patch upports the BSP change commit f54697394457

>> ("media: rcar-vin: Fix VnCSI_IFMD register access for r8a77990") from

>> Koji Matsuoka


This commit is from the rcar BSP package, and does not refer to a kernel
commit. So it is correct that the commit ID is unknown.

Regards,

	Hans

> 

>>

>> Tested on r-car E3 Ebisu.

>>

>> v2 -> v3:

>> - Remove a few comments and add Niklas' tag to [2/2]

>>

>> v1 -> v2:

>> - Inspect the channel routing table to deduce the availability of DES1/DES0

>>   bits as suggested by Niklas.

>>

>> Jacopo Mondi (2):

>>   media: rcar-vin: Remove unused macro

>>   media: rcar-vin: Mask VNCSI_IFMD register

>>

>>  drivers/media/platform/rcar-vin/rcar-dma.c | 26 ++++++++++++++++++----

>>  1 file changed, 22 insertions(+), 4 deletions(-)

>>

>> --

>> 2.29.1

>>

> 

> 

> 

> Thanks,

> Mauro

>
Hans Verkuil Dec. 3, 2020, 7:08 a.m. UTC | #3
On 03/12/2020 08:06, Hans Verkuil wrote:
> On 03/12/2020 07:58, Mauro Carvalho Chehab wrote:

>> Em Thu, 26 Nov 2020 08:47:55 +0100

>> Jacopo Mondi <jacopo+renesas@jmondi.org> escreveu:

>>

>>> As reported in patch 2/2 commit message the the VNCSI_IFMD register

>>> has the following limitations according to chip manual revision 2.20

>>>

>>> - V3M, V3H and E3 do not support the DES1 field has they do not feature

>>> a CSI20 receiver.

>>> - D3 only supports parallel input, and the whole register shall always

>>> be written as 0.

>>>

>>> This patch upports the BSP change commit f54697394457

>>> ("media: rcar-vin: Fix VnCSI_IFMD register access for r8a77990") from

>>> Koji Matsuoka

>>

>> As checkpatch warned:

>>

>> 	-:22: WARNING: Unknown commit id 'f54697394457', maybe rebased or not pulled?

>> 	

>> There's no such commit upstream. Are you referring to an OOT patch?

>>

>> If so, you should provide an URL from where the patch is stored,

>> as otherwise this comment won't make any sense upstream.

>>

>> If you can't provide such URL, please adjust the comment to provide

>> a description that won't be dependent of such OOT commit.


Ah, it's too early in the morning for me. I didn't read your email carefully
enough.

Just ignore what I wrote.

Jacopo, can you repost with a URL? Or perhaps just drop this bit of text.

Regards,

	Hans

> 

> Read the commit message:

> 

>>> This patch upports the BSP change commit f54697394457

>>> ("media: rcar-vin: Fix VnCSI_IFMD register access for r8a77990") from

>>> Koji Matsuoka

> 

> This commit is from the rcar BSP package, and does not refer to a kernel

> commit. So it is correct that the commit ID is unknown.

> 

> Regards,

> 

> 	Hans

> 

>>

>>>

>>> Tested on r-car E3 Ebisu.

>>>

>>> v2 -> v3:

>>> - Remove a few comments and add Niklas' tag to [2/2]

>>>

>>> v1 -> v2:

>>> - Inspect the channel routing table to deduce the availability of DES1/DES0

>>>   bits as suggested by Niklas.

>>>

>>> Jacopo Mondi (2):

>>>   media: rcar-vin: Remove unused macro

>>>   media: rcar-vin: Mask VNCSI_IFMD register

>>>

>>>  drivers/media/platform/rcar-vin/rcar-dma.c | 26 ++++++++++++++++++----

>>>  1 file changed, 22 insertions(+), 4 deletions(-)

>>>

>>> --

>>> 2.29.1

>>>

>>

>>

>>

>> Thanks,

>> Mauro

>>

>
Mauro Carvalho Chehab Dec. 3, 2020, 7:52 a.m. UTC | #4
Em Thu, 3 Dec 2020 08:08:09 +0100
Hans Verkuil <hverkuil@xs4all.nl> escreveu:

> On 03/12/2020 08:06, Hans Verkuil wrote:

> > On 03/12/2020 07:58, Mauro Carvalho Chehab wrote:  

> >> Em Thu, 26 Nov 2020 08:47:55 +0100

> >> Jacopo Mondi <jacopo+renesas@jmondi.org> escreveu:

> >>  

> >>> As reported in patch 2/2 commit message the the VNCSI_IFMD register

> >>> has the following limitations according to chip manual revision 2.20

> >>>

> >>> - V3M, V3H and E3 do not support the DES1 field has they do not feature

> >>> a CSI20 receiver.

> >>> - D3 only supports parallel input, and the whole register shall always

> >>> be written as 0.

> >>>

> >>> This patch upports the BSP change commit f54697394457

> >>> ("media: rcar-vin: Fix VnCSI_IFMD register access for r8a77990") from

> >>> Koji Matsuoka  

> >>

> >> As checkpatch warned:

> >>

> >> 	-:22: WARNING: Unknown commit id 'f54697394457', maybe rebased or not pulled?

> >> 	

> >> There's no such commit upstream. Are you referring to an OOT patch?

> >>

> >> If so, you should provide an URL from where the patch is stored,

> >> as otherwise this comment won't make any sense upstream.

> >>

> >> If you can't provide such URL, please adjust the comment to provide

> >> a description that won't be dependent of such OOT commit.  

> 

> Ah, it's too early in the morning for me. I didn't read your email carefully

> enough.


Yeah, I realized that the commit is for an OOT patch ;-)

The main point is that Patch descriptions should be self-contained, bringing
everything that is needed to describe the patch on it. It is acceptable to have
URLs pointing to some external references that will be there as long as the
driver will remain at the Linux Kernel. The way the description currently is,
it doesn't fulfill such criteria.

-

Btw, I was unable to find such commit, even googling for it.

So, even now, people will find problems if they want to understand the
description. Things will become a lot worse after a couple of years.

So, such description has to be changed.

For now, I'm merging the other patches of the PR without this one.

> 

> Just ignore what I wrote.

> 

> Jacopo, can you repost with a URL? Or perhaps just drop this bit of text.

> 

> Regards,

> 

> 	Hans

> 

> > 

> > Read the commit message:

> >   

> >>> This patch upports the BSP change commit f54697394457

> >>> ("media: rcar-vin: Fix VnCSI_IFMD register access for r8a77990") from

> >>> Koji Matsuoka  

> > 

> > This commit is from the rcar BSP package, and does not refer to a kernel

> > commit. So it is correct that the commit ID is unknown.

> > 

> > Regards,

> > 

> > 	Hans

> >   

> >>  

> >>>

> >>> Tested on r-car E3 Ebisu.

> >>>

> >>> v2 -> v3:

> >>> - Remove a few comments and add Niklas' tag to [2/2]

> >>>

> >>> v1 -> v2:

> >>> - Inspect the channel routing table to deduce the availability of DES1/DES0

> >>>   bits as suggested by Niklas.

> >>>

> >>> Jacopo Mondi (2):

> >>>   media: rcar-vin: Remove unused macro

> >>>   media: rcar-vin: Mask VNCSI_IFMD register

> >>>

> >>>  drivers/media/platform/rcar-vin/rcar-dma.c | 26 ++++++++++++++++++----

> >>>  1 file changed, 22 insertions(+), 4 deletions(-)

> >>>

> >>> --

> >>> 2.29.1

> >>>  

> >>

> >>

> >>

> >> Thanks,

> >> Mauro

> >>  

> >   

> 




Thanks,
Mauro
Geert Uytterhoeven Dec. 3, 2020, 8:33 a.m. UTC | #5
Hi Mauro,

On Thu, Dec 3, 2020 at 8:53 AM Mauro Carvalho Chehab
<mchehab+huawei@kernel.org> wrote:
> Em Thu, 3 Dec 2020 08:08:09 +0100

> Hans Verkuil <hverkuil@xs4all.nl> escreveu:

> > On 03/12/2020 08:06, Hans Verkuil wrote:

> > > On 03/12/2020 07:58, Mauro Carvalho Chehab wrote:

> > >> Em Thu, 26 Nov 2020 08:47:55 +0100

> > >> Jacopo Mondi <jacopo+renesas@jmondi.org> escreveu:

> > >>

> > >>> As reported in patch 2/2 commit message the the VNCSI_IFMD register

> > >>> has the following limitations according to chip manual revision 2.20

> > >>>

> > >>> - V3M, V3H and E3 do not support the DES1 field has they do not feature

> > >>> a CSI20 receiver.

> > >>> - D3 only supports parallel input, and the whole register shall always

> > >>> be written as 0.

> > >>>

> > >>> This patch upports the BSP change commit f54697394457

> > >>> ("media: rcar-vin: Fix VnCSI_IFMD register access for r8a77990") from

> > >>> Koji Matsuoka

> > >>

> > >> As checkpatch warned:

> > >>

> > >>    -:22: WARNING: Unknown commit id 'f54697394457', maybe rebased or not pulled?

> > >>

> > >> There's no such commit upstream. Are you referring to an OOT patch?

> > >>

> > >> If so, you should provide an URL from where the patch is stored,

> > >> as otherwise this comment won't make any sense upstream.

> > >>

> > >> If you can't provide such URL, please adjust the comment to provide

> > >> a description that won't be dependent of such OOT commit.

> >

> > Ah, it's too early in the morning for me. I didn't read your email carefully

> > enough.

>

> Yeah, I realized that the commit is for an OOT patch ;-)

>

> The main point is that Patch descriptions should be self-contained, bringing

> everything that is needed to describe the patch on it. It is acceptable to have

> URLs pointing to some external references that will be there as long as the

> driver will remain at the Linux Kernel. The way the description currently is,

> it doesn't fulfill such criteria.

>

> -

>

> Btw, I was unable to find such commit, even googling for it.


https://github.com/renesas-rcar/linux-bsp/commit/f54697394457

It's indeed unfortunate that Google doesn't support searching by
git commit ID.

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
Jacopo Mondi Dec. 3, 2020, 9:20 a.m. UTC | #6
Hi,

On Thu, Dec 03, 2020 at 09:33:34AM +0100, Geert Uytterhoeven wrote:
> Hi Mauro,

>

> On Thu, Dec 3, 2020 at 8:53 AM Mauro Carvalho Chehab

> <mchehab+huawei@kernel.org> wrote:

> > Em Thu, 3 Dec 2020 08:08:09 +0100

> > Hans Verkuil <hverkuil@xs4all.nl> escreveu:

> > > On 03/12/2020 08:06, Hans Verkuil wrote:

> > > > On 03/12/2020 07:58, Mauro Carvalho Chehab wrote:

> > > >> Em Thu, 26 Nov 2020 08:47:55 +0100

> > > >> Jacopo Mondi <jacopo+renesas@jmondi.org> escreveu:

> > > >>

> > > >>> As reported in patch 2/2 commit message the the VNCSI_IFMD register

> > > >>> has the following limitations according to chip manual revision 2.20

> > > >>>

> > > >>> - V3M, V3H and E3 do not support the DES1 field has they do not feature

> > > >>> a CSI20 receiver.

> > > >>> - D3 only supports parallel input, and the whole register shall always

> > > >>> be written as 0.

> > > >>>

> > > >>> This patch upports the BSP change commit f54697394457

> > > >>> ("media: rcar-vin: Fix VnCSI_IFMD register access for r8a77990") from

> > > >>> Koji Matsuoka

> > > >>

> > > >> As checkpatch warned:

> > > >>

> > > >>    -:22: WARNING: Unknown commit id 'f54697394457', maybe rebased or not pulled?

> > > >>


Ups :/

> > > >> There's no such commit upstream. Are you referring to an OOT patch?

> > > >>

> > > >> If so, you should provide an URL from where the patch is stored,

> > > >> as otherwise this comment won't make any sense upstream.

> > > >>

> > > >> If you can't provide such URL, please adjust the comment to provide

> > > >> a description that won't be dependent of such OOT commit.

> > >

> > > Ah, it's too early in the morning for me. I didn't read your email carefully

> > > enough.

> >

> > Yeah, I realized that the commit is for an OOT patch ;-)

> >

> > The main point is that Patch descriptions should be self-contained, bringing

> > everything that is needed to describe the patch on it. It is acceptable to have

> > URLs pointing to some external references that will be there as long as the

> > driver will remain at the Linux Kernel. The way the description currently is,

> > it doesn't fulfill such criteria.

> >

> > -

> >

> > Btw, I was unable to find such commit, even googling for it.

>

> https://github.com/renesas-rcar/linux-bsp/commit/f54697394457

>

> It's indeed unfortunate that Google doesn't support searching by

> git commit ID.


Thanks Geert for the link and sorry Mauro and Hans.

Hans confirmed me he'll fix the commit message when making the PR,
thank you!

Cheers
   j

>

> 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