Hi,
On 09/22/2015 04:18 PM, Felipe Balbi wrote:
On Tue, Sep 22, 2015 at 02:31:18PM -0500, Bin Liu wrote:
Hi,
On 09/22/2015 09:40 AM, Felipe Balbi wrote:
On Mon, Sep 21, 2015 at 10:50:56AM -0500, Bin Liu wrote:
Some USB phy drivers have different handling for the controller in each
dr_mode. But the phy driver does not have visibility to the dr_mode of
the controller.
This adds an api to return the dr_mode of the controller which
associates the given phy node.
Signed-off-by: Bin Liu <b-liu@xxxxxx>
doesn't apply anymore. Probably because of Heikki's series which I just
added to testing/next.
Please rebase there.
I have to rewrite my patch. Before Heikki's patch of_usb_get_dr_mode() takes
parameter 'struct *device_node', but now usb_get_dr_mode() takes parameter
'struct *device'. The logic in my patch iterates over of nodes, I am not
sure how to get the 'struct *device' from a of node yet...
okay.
There is no way to get the 'struct *device' to the controller in the phy
driver, because the controller device might not be registered yet by the
time the phy probe is called.
So I have to put back the implementation of the removed
of_usb_get_dr_mode() into this new of_usb_get_dr_mode_by_phy() function.
Please let me know if this is acceptable then I will send the v5.
Thanks,
-Bin.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html