diff mbox series

media: platform: ti-vpe: Update the path to firmware

Message ID 20201012125200.11643-1-nikhil.nd@ti.com
State New
Headers show
Series media: platform: ti-vpe: Update the path to firmware | expand

Commit Message

Nikhil Devshatwar Oct. 12, 2020, 12:52 p.m. UTC
vpdma firmware is now available in the linux-firmware repo.

https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/ti-connectivity/vpdma-1b8.bin

Update the firmware path requested by the VPDMA driver so that
it gets looked up correctly in the filesystem.

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
---
 drivers/media/platform/ti-vpe/vpdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Laurent Pinchart Oct. 12, 2020, 12:53 p.m. UTC | #1
Hi Nikhil,

Thank you for the patch.

On Mon, Oct 12, 2020 at 06:22:00PM +0530, Nikhil Devshatwar wrote:
> vpdma firmware is now available in the linux-firmware repo.

> 

> https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/ti-connectivity/vpdma-1b8.bin

> 

> Update the firmware path requested by the VPDMA driver so that

> it gets looked up correctly in the filesystem.

> 

> Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>


Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>


> ---

>  drivers/media/platform/ti-vpe/vpdma.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/drivers/media/platform/ti-vpe/vpdma.c b/drivers/media/platform/ti-vpe/vpdma.c

> index 2e5148ae7a0f..5a378449a4ff 100644

> --- a/drivers/media/platform/ti-vpe/vpdma.c

> +++ b/drivers/media/platform/ti-vpe/vpdma.c

> @@ -23,7 +23,7 @@

>  #include "vpdma.h"

>  #include "vpdma_priv.h"

>  

> -#define VPDMA_FIRMWARE	"vpdma-1b8.bin"

> +#define VPDMA_FIRMWARE	"ti-connectivity/vpdma-1b8.bin"

>  

>  const struct vpdma_data_format vpdma_yuv_fmts[] = {

>  	[VPDMA_DATA_FMT_Y444] = {


-- 
Regards,

Laurent Pinchart
Tomi Valkeinen Oct. 19, 2020, 11:38 a.m. UTC | #2
On 12/10/2020 15:52, Nikhil Devshatwar wrote:
> vpdma firmware is now available in the linux-firmware repo.
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/ti-connectivity/vpdma-1b8.bin
> 
> Update the firmware path requested by the VPDMA driver so that
> it gets looked up correctly in the filesystem.
> 
> Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
> ---
>  drivers/media/platform/ti-vpe/vpdma.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/platform/ti-vpe/vpdma.c b/drivers/media/platform/ti-vpe/vpdma.c
> index 2e5148ae7a0f..5a378449a4ff 100644
> --- a/drivers/media/platform/ti-vpe/vpdma.c
> +++ b/drivers/media/platform/ti-vpe/vpdma.c
> @@ -23,7 +23,7 @@
>  #include "vpdma.h"
>  #include "vpdma_priv.h"
>  
> -#define VPDMA_FIRMWARE	"vpdma-1b8.bin"
> +#define VPDMA_FIRMWARE	"ti-connectivity/vpdma-1b8.bin"

I don't think "ti-connectivity/" makes sense for vpdma fw. I don't know if there are guidelines for
directories in linux-firmware, but "ti/vpdma-1b8.bin" would be better in my opinion.

 Tomi
Nikhil Devshatwar Oct. 20, 2020, 7:38 a.m. UTC | #3
On 14:38-20201019, Tomi Valkeinen wrote:
> On 12/10/2020 15:52, Nikhil Devshatwar wrote:
> > vpdma firmware is now available in the linux-firmware repo.
> > 
> > https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/ti-connectivity/vpdma-1b8.bin
> > 
> > Update the firmware path requested by the VPDMA driver so that
> > it gets looked up correctly in the filesystem.
> > 
> > Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
> > ---
> >  drivers/media/platform/ti-vpe/vpdma.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/media/platform/ti-vpe/vpdma.c b/drivers/media/platform/ti-vpe/vpdma.c
> > index 2e5148ae7a0f..5a378449a4ff 100644
> > --- a/drivers/media/platform/ti-vpe/vpdma.c
> > +++ b/drivers/media/platform/ti-vpe/vpdma.c
> > @@ -23,7 +23,7 @@
> >  #include "vpdma.h"
> >  #include "vpdma_priv.h"
> >  
> > -#define VPDMA_FIRMWARE	"vpdma-1b8.bin"
> > +#define VPDMA_FIRMWARE	"ti-connectivity/vpdma-1b8.bin"
> 
> I don't think "ti-connectivity/" makes sense for vpdma fw. I don't know if there are guidelines for
> directories in linux-firmware, but "ti/vpdma-1b8.bin" would be better in my opinion.

The firmware is already merged at ti-connectivity/
I didn't create a new folder because I felt the exising ti-connectivity
is good enough.

> 
>  Tomi
> 
> -- 
> Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
> Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Tomi Valkeinen Oct. 20, 2020, 7:52 a.m. UTC | #4
On 20/10/2020 10:38, Nikhil Devshatwar wrote:
> On 14:38-20201019, Tomi Valkeinen wrote:

>> On 12/10/2020 15:52, Nikhil Devshatwar wrote:

>>> vpdma firmware is now available in the linux-firmware repo.

>>>

>>> https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/ti-connectivity/vpdma-1b8.bin

>>>

>>> Update the firmware path requested by the VPDMA driver so that

>>> it gets looked up correctly in the filesystem.

>>>

>>> Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>

>>> ---

>>>  drivers/media/platform/ti-vpe/vpdma.c | 2 +-

>>>  1 file changed, 1 insertion(+), 1 deletion(-)

>>>

>>> diff --git a/drivers/media/platform/ti-vpe/vpdma.c b/drivers/media/platform/ti-vpe/vpdma.c

>>> index 2e5148ae7a0f..5a378449a4ff 100644

>>> --- a/drivers/media/platform/ti-vpe/vpdma.c

>>> +++ b/drivers/media/platform/ti-vpe/vpdma.c

>>> @@ -23,7 +23,7 @@

>>>  #include "vpdma.h"

>>>  #include "vpdma_priv.h"

>>>  

>>> -#define VPDMA_FIRMWARE	"vpdma-1b8.bin"

>>> +#define VPDMA_FIRMWARE	"ti-connectivity/vpdma-1b8.bin"

>>

>> I don't think "ti-connectivity/" makes sense for vpdma fw. I don't know if there are guidelines for

>> directories in linux-firmware, but "ti/vpdma-1b8.bin" would be better in my opinion.

> 

> The firmware is already merged at ti-connectivity/

> I didn't create a new folder because I felt the exising ti-connectivity

> is good enough.


ti-connectivity is for TI wlan, no? I think the fw should either be in the root dir, as that's where
the driver has been loading it from for a long time, or if we're going to change the path in the
driver, put it into a proper directory.

 Tomi

-- 
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Nikhil Devshatwar Oct. 22, 2020, 11:45 a.m. UTC | #5
On 10:52-20201020, Tomi Valkeinen wrote:
> On 20/10/2020 10:38, Nikhil Devshatwar wrote:

> > On 14:38-20201019, Tomi Valkeinen wrote:

> >> On 12/10/2020 15:52, Nikhil Devshatwar wrote:

> >>> vpdma firmware is now available in the linux-firmware repo.

> >>>

> >>> https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/ti-connectivity/vpdma-1b8.bin

> >>>

> >>> Update the firmware path requested by the VPDMA driver so that

> >>> it gets looked up correctly in the filesystem.

> >>>

> >>> Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>

> >>> ---

> >>>  drivers/media/platform/ti-vpe/vpdma.c | 2 +-

> >>>  1 file changed, 1 insertion(+), 1 deletion(-)

> >>>

> >>> diff --git a/drivers/media/platform/ti-vpe/vpdma.c b/drivers/media/platform/ti-vpe/vpdma.c

> >>> index 2e5148ae7a0f..5a378449a4ff 100644

> >>> --- a/drivers/media/platform/ti-vpe/vpdma.c

> >>> +++ b/drivers/media/platform/ti-vpe/vpdma.c

> >>> @@ -23,7 +23,7 @@

> >>>  #include "vpdma.h"

> >>>  #include "vpdma_priv.h"

> >>>  

> >>> -#define VPDMA_FIRMWARE	"vpdma-1b8.bin"

> >>> +#define VPDMA_FIRMWARE	"ti-connectivity/vpdma-1b8.bin"

> >>

> >> I don't think "ti-connectivity/" makes sense for vpdma fw. I don't know if there are guidelines for

> >> directories in linux-firmware, but "ti/vpdma-1b8.bin" would be better in my opinion.

> > 

> > The firmware is already merged at ti-connectivity/

> > I didn't create a new folder because I felt the exising ti-connectivity

> > is good enough.

> 

> ti-connectivity is for TI wlan, no?

I didn't know that. I assumed all ti firmwares regarding connectivity go
here :)
I am not sure if the linux-firmware accept moving firmware path.
I can try posting the patch and see what's the feedback.

> I think the fw should either be in the root dir, as that's where

> the driver has been loading it from for a long time, or if we're going to change the path in the

> driver, put it into a proper directory.

> 

>  Tomi

> 

> -- 

> Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.

> Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Hans Verkuil Oct. 30, 2020, 9:57 a.m. UTC | #6
Hi Nikhil,

On 12/10/2020 14:52, Nikhil Devshatwar wrote:
> vpdma firmware is now available in the linux-firmware repo.

> 

> https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/ti-connectivity/vpdma-1b8.bin

> 

> Update the firmware path requested by the VPDMA driver so that

> it gets looked up correctly in the filesystem.

> 

> Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>

> ---

>  drivers/media/platform/ti-vpe/vpdma.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/drivers/media/platform/ti-vpe/vpdma.c b/drivers/media/platform/ti-vpe/vpdma.c

> index 2e5148ae7a0f..5a378449a4ff 100644

> --- a/drivers/media/platform/ti-vpe/vpdma.c

> +++ b/drivers/media/platform/ti-vpe/vpdma.c

> @@ -23,7 +23,7 @@

>  #include "vpdma.h"

>  #include "vpdma_priv.h"

>  

> -#define VPDMA_FIRMWARE	"vpdma-1b8.bin"

> +#define VPDMA_FIRMWARE	"ti-connectivity/vpdma-1b8.bin"


Based on the discussion, this will change to ti/vpdma-1b8.bin, right?
At least once linux-firmware has been updated.

I'll wait for a v2.

Regards,

	Hans

>  

>  const struct vpdma_data_format vpdma_yuv_fmts[] = {

>  	[VPDMA_DATA_FMT_Y444] = {

>
Tomi Valkeinen Oct. 30, 2020, 2:03 p.m. UTC | #7
On 30/10/2020 11:57, Hans Verkuil wrote:
> Hi Nikhil,

> 

> On 12/10/2020 14:52, Nikhil Devshatwar wrote:

>> vpdma firmware is now available in the linux-firmware repo.

>>

>> https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/ti-connectivity/vpdma-1b8.bin

>>

>> Update the firmware path requested by the VPDMA driver so that

>> it gets looked up correctly in the filesystem.

>>

>> Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>

>> ---

>>  drivers/media/platform/ti-vpe/vpdma.c | 2 +-

>>  1 file changed, 1 insertion(+), 1 deletion(-)

>>

>> diff --git a/drivers/media/platform/ti-vpe/vpdma.c b/drivers/media/platform/ti-vpe/vpdma.c

>> index 2e5148ae7a0f..5a378449a4ff 100644

>> --- a/drivers/media/platform/ti-vpe/vpdma.c

>> +++ b/drivers/media/platform/ti-vpe/vpdma.c

>> @@ -23,7 +23,7 @@

>>  #include "vpdma.h"

>>  #include "vpdma_priv.h"

>>  

>> -#define VPDMA_FIRMWARE	"vpdma-1b8.bin"

>> +#define VPDMA_FIRMWARE	"ti-connectivity/vpdma-1b8.bin"

> 

> Based on the discussion, this will change to ti/vpdma-1b8.bin, right?

> At least once linux-firmware has been updated.

> 

> I'll wait for a v2.


Yes, please wait for v2. I think it'll be ti/vpdma-1b8.bin, or alternatively keep it as it is now
(in the root).

 Tomi

-- 
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
diff mbox series

Patch

diff --git a/drivers/media/platform/ti-vpe/vpdma.c b/drivers/media/platform/ti-vpe/vpdma.c
index 2e5148ae7a0f..5a378449a4ff 100644
--- a/drivers/media/platform/ti-vpe/vpdma.c
+++ b/drivers/media/platform/ti-vpe/vpdma.c
@@ -23,7 +23,7 @@ 
 #include "vpdma.h"
 #include "vpdma_priv.h"
 
-#define VPDMA_FIRMWARE	"vpdma-1b8.bin"
+#define VPDMA_FIRMWARE	"ti-connectivity/vpdma-1b8.bin"
 
 const struct vpdma_data_format vpdma_yuv_fmts[] = {
 	[VPDMA_DATA_FMT_Y444] = {