[U-Boot] [PATCH 1/1] usb: musb-new: sunxi: Fix null pointer access

Marek Vasut marex at denx.de
Thu Dec 13 15:49:16 UTC 2018


On 12/13/2018 04:40 PM, Jean-Jacques Hiblot wrote:
> 
> On 13/12/2018 15:05, Marek Vasut wrote:
>> On 12/13/2018 03:03 PM, Jean-Jacques Hiblot wrote:
>>> On 05/12/2018 13:57, Marek Vasut wrote:
>>>> On 12/05/2018 01:49 PM, Stefan Mavrodiev wrote:
>>>>> When the device is in peripheral mode
>>>> Can you have two devices, one in peripheral mode and one in host mode,
>>>> on the same system ?
>>> It is possible with the musb-new. Using DM_USB and DM_USB_GADGET, I did
>>> it with on a beaglebone black.
>> Does this patch break it ? And if so, can you send a proper fix ?
> 
> This file is not compiled when building for beaglebone, so it won't
> break anything.

Ah, sunxi, right.

> BTW this driver could be adapted, with little work, to support a dynamic
> selection of the role based on "dr-mode" in the DT.
> 
> Not knowing the boards, I don't know if this work has any added value
> though.

It would, as it would remove ifdeffery.

-- 
Best regards,
Marek Vasut


More information about the U-Boot mailing list