Re: [PATCH 9/9] usb: cdns3: Impovement: simplify *switch_gadet and *switch_host

2020-07-06 Thread Peter Chen
On 20-07-01 08:20:04, Pawel Laszczak wrote: > Patch split function cdns3_drd_switch_gadget and > cdns3_drd_switch_host into: > - cdns3_drd_host_on > - cdns3_drd_host_off > - cdns3_drd_gadget_on > - cdns3_drd_gadgett_off > > These functions don't have any shared code so it's better to > have smalle

[PATCH 9/9] usb: cdns3: Impovement: simplify *switch_gadet and *switch_host

2020-06-30 Thread Pawel Laszczak
Patch split function cdns3_drd_switch_gadget and cdns3_drd_switch_host into: - cdns3_drd_host_on - cdns3_drd_host_off - cdns3_drd_gadget_on - cdns3_drd_gadgett_off These functions don't have any shared code so it's better to have smaller, faster and easier functions. Signed-off-by: Pawel Laszczak