mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] usb: dwc2: gadget: cleanup useless code
@ 2015-04-26  7:35 Yunzhi Li
  2015-04-28 22:50 ` John Youn
  0 siblings, 1 reply; 3+ messages in thread
From: Yunzhi Li @ 2015-04-26  7:35 UTC (permalink / raw)
  To: johnyoun, gregory.herrero, yousaf.kaukab, linux-usb, linux-kernel
  Cc: linux-rockchip, rockchip-discuss, Yunzhi Li

dwc2 gadget driver s3c_hsotg_of_probe() run twice in
dwc2_gadget_init() and the first one is useless, so remove it.

Signed-off-by: Yunzhi Li <lyz@rock-chips.com>
---
 drivers/usb/dwc2/gadget.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c
index 6a30887..2ae74f2 100644
--- a/drivers/usb/dwc2/gadget.c
+++ b/drivers/usb/dwc2/gadget.c
@@ -3851,8 +3851,6 @@ int dwc2_gadget_init(struct dwc2_hsotg *hsotg, int irq)
 	/* Set default UTMI width */
 	hsotg->phyif = GUSBCFG_PHYIF16;
 
-	s3c_hsotg_of_probe(hsotg);
-
 	/* Initialize to legacy fifo configuration values */
 	hsotg->g_rx_fifo_sz = 2048;
 	hsotg->g_np_g_tx_fifo_sz = 1024;
-- 
2.0.0



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] usb: dwc2: gadget: cleanup useless code
  2015-04-26  7:35 [PATCH] usb: dwc2: gadget: cleanup useless code Yunzhi Li
@ 2015-04-28 22:50 ` John Youn
  2015-04-28 22:58   ` John Youn
  0 siblings, 1 reply; 3+ messages in thread
From: John Youn @ 2015-04-28 22:50 UTC (permalink / raw)
  To: Yunzhi Li, John.Youn, gregory.herrero, yousaf.kaukab, linux-usb,
	linux-kernel
  Cc: linux-rockchip, rockchip-discuss

On 4/26/2015 12:36 AM, Yunzhi Li wrote:
> dwc2 gadget driver s3c_hsotg_of_probe() run twice in
> dwc2_gadget_init() and the first one is useless, so remove it.
> 
> Signed-off-by: Yunzhi Li <lyz@rock-chips.com>
> ---
>  drivers/usb/dwc2/gadget.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c
> index 6a30887..2ae74f2 100644
> --- a/drivers/usb/dwc2/gadget.c
> +++ b/drivers/usb/dwc2/gadget.c
> @@ -3851,8 +3851,6 @@ int dwc2_gadget_init(struct dwc2_hsotg *hsotg, int irq)
>  	/* Set default UTMI width */
>  	hsotg->phyif = GUSBCFG_PHYIF16;
>  
> -	s3c_hsotg_of_probe(hsotg);
> -
>  	/* Initialize to legacy fifo configuration values */
>  	hsotg->g_rx_fifo_sz = 2048;
>  	hsotg->g_np_g_tx_fifo_sz = 1024;
> 


Acked-by: John Youn <johnyoun@synopsys.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] usb: dwc2: gadget: cleanup useless code
  2015-04-28 22:50 ` John Youn
@ 2015-04-28 22:58   ` John Youn
  0 siblings, 0 replies; 3+ messages in thread
From: John Youn @ 2015-04-28 22:58 UTC (permalink / raw)
  To: Yunzhi Li, John.Youn, gregory.herrero, yousaf.kaukab, linux-usb,
	linux-kernel, balbi
  Cc: linux-rockchip, rockchip-discuss

On 4/28/2015 3:50 PM, John Youn wrote:
> On 4/26/2015 12:36 AM, Yunzhi Li wrote:
>> dwc2 gadget driver s3c_hsotg_of_probe() run twice in
>> dwc2_gadget_init() and the first one is useless, so remove it.
>>
>> Signed-off-by: Yunzhi Li <lyz@rock-chips.com>
>> ---
>>  drivers/usb/dwc2/gadget.c | 2 --
>>  1 file changed, 2 deletions(-)
>>
>> diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c
>> index 6a30887..2ae74f2 100644
>> --- a/drivers/usb/dwc2/gadget.c
>> +++ b/drivers/usb/dwc2/gadget.c
>> @@ -3851,8 +3851,6 @@ int dwc2_gadget_init(struct dwc2_hsotg *hsotg, int irq)
>>  	/* Set default UTMI width */
>>  	hsotg->phyif = GUSBCFG_PHYIF16;
>>  
>> -	s3c_hsotg_of_probe(hsotg);
>> -
>>  	/* Initialize to legacy fifo configuration values */
>>  	hsotg->g_rx_fifo_sz = 2048;
>>  	hsotg->g_np_g_tx_fifo_sz = 1024;
>>
> 
> 
> Acked-by: John Youn <johnyoun@synopsys.com>
> 

Added Felipe.

John


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-04-28 22:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-26  7:35 [PATCH] usb: dwc2: gadget: cleanup useless code Yunzhi Li
2015-04-28 22:50 ` John Youn
2015-04-28 22:58   ` John Youn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®