mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
usb: allow to supply the PHY in the drivers when using HCD
This patch modify the generic code handling PHYs to allow them to be supplied from the drivers. This adds checks to ensure no PHY was already there when looking for one in the generic code. This also makes sure we do not modify its state in the generic HCD functions, it was provided by the driver. Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
48bcc18076
commit
ef44cb4226
10 changed files with 33 additions and 40 deletions
|
@ -220,7 +220,7 @@ static int ci_otg_show(struct seq_file *s, void *unused)
|
|||
|
||||
/* ------ State ----- */
|
||||
seq_printf(s, "OTG state: %s\n\n",
|
||||
usb_otg_state_string(ci->transceiver->otg->state));
|
||||
usb_otg_state_string(ci->otg.state));
|
||||
|
||||
/* ------ State Machine Variables ----- */
|
||||
seq_printf(s, "a_bus_drop: %d\n", fsm->a_bus_drop);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue