Re: [PATCH v5] usb: of: add an api to get dr_mode by the phy node

2015-11-20 Thread Felipe Balbi
Hi, John Youn writes: > On 11/20/2015 1:38 PM, Bin Liu wrote: >> hi, >> >> On 11/20/2015 03:35 PM, Felipe Balbi wrote: >>> >>> Hi, >>> >>> Bin Liu writes: >>> +enum usb_dr_mode of_usb_get_dr_mode_by_phy(struct device_node *phy_np); >>>bool of_usb_host_tpl_support(struct device_node

Re: [PATCH v5] usb: of: add an api to get dr_mode by the phy node

2015-11-20 Thread John Youn
On 11/20/2015 1:38 PM, Bin Liu wrote: > hi, > > On 11/20/2015 03:35 PM, Felipe Balbi wrote: >> >> Hi, >> >> Bin Liu writes: >> +enum usb_dr_mode of_usb_get_dr_mode_by_phy(struct device_node *phy_np); >>bool of_usb_host_tpl_support(struct device_node *np); >>int of_usb_update_o

Re: [PATCH v5] usb: of: add an api to get dr_mode by the phy node

2015-11-20 Thread Bin Liu
hi, On 11/20/2015 03:35 PM, Felipe Balbi wrote: Hi, Bin Liu writes: +enum usb_dr_mode of_usb_get_dr_mode_by_phy(struct device_node *phy_np); bool of_usb_host_tpl_support(struct device_node *np); int of_usb_update_otg_caps(struct device_node *np, struct usb_otg_c

Re: [PATCH v5] usb: of: add an api to get dr_mode by the phy node

2015-11-20 Thread Felipe Balbi
Hi, Bin Liu writes: +enum usb_dr_mode of_usb_get_dr_mode_by_phy(struct device_node *phy_np); bool of_usb_host_tpl_support(struct device_node *np); int of_usb_update_otg_caps(struct device_node *np, struct usb_otg_caps *otg_caps); #else +enum

Re: [PATCH v5] usb: of: add an api to get dr_mode by the phy node

2015-11-20 Thread Bin Liu
Hi, On 11/20/2015 03:24 PM, John Youn wrote: On 11/20/2015 1:19 PM, John Youn wrote: On 11/3/2015 9:49 AM, 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

Re: [PATCH v5] usb: of: add an api to get dr_mode by the phy node

2015-11-20 Thread Felipe Balbi
Hi, John Youn writes: >> +enum usb_dr_mode of_usb_get_dr_mode_by_phy(struct device_node *phy_np) >> +{ >> +return USB_DR_MODE_UNKNOWN; >> +} >> static inline bool of_usb_host_tpl_support(struct device_node *np) >> { >> return false; >> > > > Hi Felipe, > > This commit in your testing

Re: [PATCH v5] usb: of: add an api to get dr_mode by the phy node

2015-11-20 Thread John Youn
On 11/20/2015 1:19 PM, John Youn wrote: > On 11/3/2015 9:49 AM, 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

Re: [PATCH v5] usb: of: add an api to get dr_mode by the phy node

2015-11-20 Thread John Youn
On 11/3/2015 9:49 AM, 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 no

[PATCH v5] usb: of: add an api to get dr_mode by the phy node

2015-11-03 Thread Bin Liu
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 --- v5: - to simplif