Hackberry has OTG port wired as host-only port. It seems that wiring is done so that USB0-IDDET is not pulled down. This is wrong and leaves port without power. Commit sets power on if port is defined as host-only in fex file or compile time.
Commit affects also auxtek-t003, mini-x_a10s, megafeis_a08 and mk802_a10s. Signed-off-by: Jari Helaakoski <[email protected]> --- drivers/usb/sunxi_usb/hcd/hcd0/sw_hcd0.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/sunxi_usb/hcd/hcd0/sw_hcd0.c b/drivers/usb/sunxi_usb/hcd/hcd0/sw_hcd0.c index 846a01f..2399ec6 100644 --- a/drivers/usb/sunxi_usb/hcd/hcd0/sw_hcd0.c +++ b/drivers/usb/sunxi_usb/hcd/hcd0/sw_hcd0.c @@ -1864,6 +1864,8 @@ static int sw_hcd_probe_host_only(struct platform_device *pdev) } usbc_no = 0; + hcd0_set_vbus_cnt--; + hcd0_enable--; memset(&g_sw_hcd_io, 0, sizeof(sw_hcd_io_t)); ret = sw_hcd_io_init(usbc_no, pdev, &g_sw_hcd_io); -- 1.8.1.2 -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
