diff mbox

[U-Boot] fastboot: Dynamic controller index for usb_gadget_handle_interrupts

Message ID 1432460464-4915-1-git-send-email-contact@paulk.fr
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Paul Kocialkowski May 24, 2015, 9:41 a.m. UTC
Since we're now using a dynamic controller index for fastboot too,
usb_gadget_handle_interrupts should be using it instead of 0 (despite the fact
that it's currently not being used at all in the musb-new implementation).

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
 common/cmd_fastboot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Łukasz Majewski May 25, 2015, 2:50 p.m. UTC | #1
Hi Paul,

> Since we're now using a dynamic controller index for fastboot too,
> usb_gadget_handle_interrupts should be using it instead of 0 (despite
> the fact that it's currently not being used at all in the musb-new
> implementation).
> 
> Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
> ---
>  common/cmd_fastboot.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c
> index 86fbddf..b9d1c8c 100644
> --- a/common/cmd_fastboot.c
> +++ b/common/cmd_fastboot.c
> @@ -47,7 +47,7 @@ static int do_fastboot(cmd_tbl_t *cmdtp, int flag,
> int argc, char *const argv[]) break;
>  		if (ctrlc())
>  			break;
> -		usb_gadget_handle_interrupts(0);
> +		usb_gadget_handle_interrupts(controller_index);
>  	}
>  
>  	ret = CMD_RET_SUCCESS;

Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
Simon Glass June 7, 2015, 2:48 p.m. UTC | #2
On 25 May 2015 at 08:50, Lukasz Majewski <l.majewski@samsung.com> wrote:
> Hi Paul,
>
>> Since we're now using a dynamic controller index for fastboot too,
>> usb_gadget_handle_interrupts should be using it instead of 0 (despite
>> the fact that it's currently not being used at all in the musb-new
>> implementation).
>>
>> Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
>> ---
>>  common/cmd_fastboot.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c
>> index 86fbddf..b9d1c8c 100644
>> --- a/common/cmd_fastboot.c
>> +++ b/common/cmd_fastboot.c
>> @@ -47,7 +47,7 @@ static int do_fastboot(cmd_tbl_t *cmdtp, int flag,
>> int argc, char *const argv[]) break;
>>               if (ctrlc())
>>                       break;
>> -             usb_gadget_handle_interrupts(0);
>> +             usb_gadget_handle_interrupts(controller_index);
>>       }
>>
>>       ret = CMD_RET_SUCCESS;
>
> Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>

This is in my queue and looks like a fix, so I'm picking it up.

Applied to u-boot-x86, thanks!
Lukasz Majewski June 7, 2015, 8:48 p.m. UTC | #3
On Sun, 7 Jun 2015 08:48:31 -0600
Simon Glass <sjg@chromium.org> wrote:

> On 25 May 2015 at 08:50, Lukasz Majewski <l.majewski@samsung.com>
> wrote:
> > Hi Paul,
> >
> >> Since we're now using a dynamic controller index for fastboot too,
> >> usb_gadget_handle_interrupts should be using it instead of 0
> >> (despite the fact that it's currently not being used at all in the
> >> musb-new implementation).
> >>
> >> Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
> >> ---
> >>  common/cmd_fastboot.c | 2 +-
> >>  1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c
> >> index 86fbddf..b9d1c8c 100644
> >> --- a/common/cmd_fastboot.c
> >> +++ b/common/cmd_fastboot.c
> >> @@ -47,7 +47,7 @@ static int do_fastboot(cmd_tbl_t *cmdtp, int
> >> flag, int argc, char *const argv[]) break;
> >>               if (ctrlc())
> >>                       break;
> >> -             usb_gadget_handle_interrupts(0);
> >> +             usb_gadget_handle_interrupts(controller_index);
> >>       }
> >>
> >>       ret = CMD_RET_SUCCESS;
> >
> > Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
> 
> This is in my queue and looks like a fix, so I'm picking it up.
> 
> Applied to u-boot-x86, thanks!

One less to go ;-).

Thanks Simon.

> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
Simon Glass June 12, 2015, 9:23 p.m. UTC | #4
Hi Paul,

On 7 June 2015 at 08:48, Simon Glass <sjg@chromium.org> wrote:
> On 25 May 2015 at 08:50, Lukasz Majewski <l.majewski@samsung.com> wrote:
>> Hi Paul,
>>
>>> Since we're now using a dynamic controller index for fastboot too,
>>> usb_gadget_handle_interrupts should be using it instead of 0 (despite
>>> the fact that it's currently not being used at all in the musb-new
>>> implementation).
>>>
>>> Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
>>> ---
>>>  common/cmd_fastboot.c | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c
>>> index 86fbddf..b9d1c8c 100644
>>> --- a/common/cmd_fastboot.c
>>> +++ b/common/cmd_fastboot.c
>>> @@ -47,7 +47,7 @@ static int do_fastboot(cmd_tbl_t *cmdtp, int flag,
>>> int argc, char *const argv[]) break;
>>>               if (ctrlc())
>>>                       break;
>>> -             usb_gadget_handle_interrupts(0);
>>> +             usb_gadget_handle_interrupts(controller_index);
>>>       }
>>>
>>>       ret = CMD_RET_SUCCESS;
>>
>> Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
>
> This is in my queue and looks like a fix, so I'm picking it up.
>
> Applied to u-boot-x86, thanks!

Unfortunately in my final build test this breaks a number of boards, including:

am335x_boneblack_vboot

common/cmd_fastboot.c:36:32: error: ‘controller_index’ undeclared
(first use in this function)
   usb_gadget_handle_interrupts(controller_index);

Can you please take a look and respin it?

For now I've dropped it from u-boot-x86.

Regards,
Simon
Paul Kocialkowski June 13, 2015, 7:27 a.m. UTC | #5
[snip]

> >> Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
> >
> > This is in my queue and looks like a fix, so I'm picking it up.
> >
> > Applied to u-boot-x86, thanks!
> 
> Unfortunately in my final build test this breaks a number of boards, including:
> 
> am335x_boneblack_vboot
> 
> common/cmd_fastboot.c:36:32: error: ‘controller_index’ undeclared
> (first use in this function)
>    usb_gadget_handle_interrupts(controller_index);
> 
> Can you please take a look and respin it?

Of course, this makes perfect sense. I didn't think about it until now,
but this patch goes on top of the four fastboot-related dfu patches that
I sent out (again) yesterday.

I think this should be picked up along with those patches.
Lukasz, could you do that?

Thanks

> For now I've dropped it from u-boot-x86.

Makes sense.
Paul Kocialkowski July 7, 2015, 12:29 p.m. UTC | #6
Le lundi 25 mai 2015 à 16:50 +0200, Lukasz Majewski a écrit :
> Hi Paul,
> 
> > Since we're now using a dynamic controller index for fastboot too,
> > usb_gadget_handle_interrupts should be using it instead of 0 (despite
> > the fact that it's currently not being used at all in the musb-new
> > implementation).
> > 
> > Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
> > ---
> >  common/cmd_fastboot.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c
> > index 86fbddf..b9d1c8c 100644
> > --- a/common/cmd_fastboot.c
> > +++ b/common/cmd_fastboot.c
> > @@ -47,7 +47,7 @@ static int do_fastboot(cmd_tbl_t *cmdtp, int flag,
> > int argc, char *const argv[]) break;
> >  		if (ctrlc())
> >  			break;
> > -		usb_gadget_handle_interrupts(0);
> > +		usb_gadget_handle_interrupts(controller_index);
> >  	}
> >  
> >  	ret = CMD_RET_SUCCESS;
> 
> Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>

Now that the other patches have been merged, this one could be as well.

Lukasz, is there anything else holding it back?
Paul Kocialkowski July 14, 2015, 12:38 p.m. UTC | #7
Le mardi 07 juillet 2015 à 14:29 +0200, Paul Kocialkowski a écrit :
> Le lundi 25 mai 2015 à 16:50 +0200, Lukasz Majewski a écrit :
> > Hi Paul,
> > 
> > > Since we're now using a dynamic controller index for fastboot too,
> > > usb_gadget_handle_interrupts should be using it instead of 0 (despite
> > > the fact that it's currently not being used at all in the musb-new
> > > implementation).
> > > 
> > > Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
> > > ---
> > >  common/cmd_fastboot.c | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > 
> > > diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c
> > > index 86fbddf..b9d1c8c 100644
> > > --- a/common/cmd_fastboot.c
> > > +++ b/common/cmd_fastboot.c
> > > @@ -47,7 +47,7 @@ static int do_fastboot(cmd_tbl_t *cmdtp, int flag,
> > > int argc, char *const argv[]) break;
> > >  		if (ctrlc())
> > >  			break;
> > > -		usb_gadget_handle_interrupts(0);
> > > +		usb_gadget_handle_interrupts(controller_index);
> > >  	}
> > >  
> > >  	ret = CMD_RET_SUCCESS;
> > 
> > Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
> 
> Now that the other patches have been merged, this one could be as well.
> 
> Lukasz, is there anything else holding it back?

It's been a week since I asked this. Any news?

Thanks!
Łukasz Majewski July 14, 2015, 3:22 p.m. UTC | #8
Hi Paul,

> Le mardi 07 juillet 2015 à 14:29 +0200, Paul Kocialkowski a écrit :
> > Le lundi 25 mai 2015 à 16:50 +0200, Lukasz Majewski a écrit :
> > > Hi Paul,
> > > 
> > > > Since we're now using a dynamic controller index for fastboot
> > > > too, usb_gadget_handle_interrupts should be using it instead of
> > > > 0 (despite the fact that it's currently not being used at all
> > > > in the musb-new implementation).
> > > > 
> > > > Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
> > > > ---
> > > >  common/cmd_fastboot.c | 2 +-
> > > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > > 
> > > > diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c
> > > > index 86fbddf..b9d1c8c 100644
> > > > --- a/common/cmd_fastboot.c
> > > > +++ b/common/cmd_fastboot.c
> > > > @@ -47,7 +47,7 @@ static int do_fastboot(cmd_tbl_t *cmdtp, int
> > > > flag, int argc, char *const argv[]) break;
> > > >  		if (ctrlc())
> > > >  			break;
> > > > -		usb_gadget_handle_interrupts(0);
> > > > +		usb_gadget_handle_interrupts(controller_index);
> > > >  	}
> > > >  
> > > >  	ret = CMD_RET_SUCCESS;
> > > 
> > > Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
> > 
> > Now that the other patches have been merged, this one could be as
> > well.
> > 
> > Lukasz, is there anything else holding it back?
> 
> It's been a week since I asked this. Any news?

Applied to u-boot-dfu tree.

Thanks for the patch!

> 
> Thanks!
diff mbox

Patch

diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c
index 86fbddf..b9d1c8c 100644
--- a/common/cmd_fastboot.c
+++ b/common/cmd_fastboot.c
@@ -47,7 +47,7 @@  static int do_fastboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
 			break;
 		if (ctrlc())
 			break;
-		usb_gadget_handle_interrupts(0);
+		usb_gadget_handle_interrupts(controller_index);
 	}
 
 	ret = CMD_RET_SUCCESS;