Re: [PATCH v6] usb: common: add API to set usb otg capabilities by device tree

2015-07-08 Thread Stephen Warren
On 06/23/2015 05:56 AM, Roger Quadros wrote: + Kukjin, Stephen, for board specific USB question. On Tue, 23 Jun 2015 16:35:49 +0800 Li Jun wrote: On Tue, Jun 23, 2015 at 10:43:28AM +0300, Roger Quadros wrote: If the dr_mode was "otg" for such case and we want OTG disabled then it is reall

Re: [PATCH v6] usb: common: add API to set usb otg capabilities by device tree

2015-06-23 Thread Li Jun
On Tue, Jun 23, 2015 at 02:56:06PM +0300, Roger Quadros wrote: > + Kukjin, Stephen, > > for board specific USB question. > > On Tue, 23 Jun 2015 16:35:49 +0800 > Li Jun wrote: > > > On Tue, Jun 23, 2015 at 10:43:28AM +0300, Roger Quadros wrote: > > > > > > > > > > If the dr_mode was "otg" for

Re: [PATCH v6] usb: common: add API to set usb otg capabilities by device tree

2015-06-23 Thread Roger Quadros
+ Kukjin, Stephen, for board specific USB question. On Tue, 23 Jun 2015 16:35:49 +0800 Li Jun wrote: > On Tue, Jun 23, 2015 at 10:43:28AM +0300, Roger Quadros wrote: > > > > > > > > If the dr_mode was "otg" for such case and we want OTG disabled then it > > > > is really the DT fault. > > >

Re: [PATCH v6] usb: common: add API to set usb otg capabilities by device tree

2015-06-23 Thread Li Jun
On Tue, Jun 23, 2015 at 10:43:28AM +0300, Roger Quadros wrote: > > > > > > If the dr_mode was "otg" for such case and we want OTG disabled then it > > > is really the DT fault. > > > > It's ID pin detect for dual role switch as many current OTG controllers > > have. > > not DT fault, its dt onl

Re: [PATCH v6] usb: common: add API to set usb otg capabilities by device tree

2015-06-23 Thread Roger Quadros
On Mon, 22 Jun 2015 22:36:40 +0800 Li Jun wrote: > On Mon, Jun 22, 2015 at 04:32:56PM +0300, Roger Quadros wrote: > > On Mon, 22 Jun 2015 18:45:37 +0800 > > Li Jun wrote: > > > > > On Mon, Jun 22, 2015 at 12:41:22PM +0300, Roger Quadros wrote: > > > > On Thu, 18 Jun 2015 21:37:04 +0800 > > > >

Re: [PATCH v6] usb: common: add API to set usb otg capabilities by device tree

2015-06-22 Thread Li Jun
On Mon, Jun 22, 2015 at 04:32:56PM +0300, Roger Quadros wrote: > On Mon, 22 Jun 2015 18:45:37 +0800 > Li Jun wrote: > > > On Mon, Jun 22, 2015 at 12:41:22PM +0300, Roger Quadros wrote: > > > On Thu, 18 Jun 2015 21:37:04 +0800 > > > Li Jun wrote: > > > > > > > On Thu, Jun 18, 2015 at 03:07:48PM

Re: [PATCH v6] usb: common: add API to set usb otg capabilities by device tree

2015-06-22 Thread Roger Quadros
On Mon, 22 Jun 2015 18:56:18 +0800 Li Jun wrote: > On Mon, Jun 22, 2015 at 12:43:37PM +0300, Roger Quadros wrote: > > On Thu, 18 Jun 2015 16:47:48 +0800 > > Li Jun wrote: > > > > > On Thu, Jun 18, 2015 at 10:36:50AM +0300, Roger Quadros wrote: > > > > Lin, > > > > > > > > You can use --in-repl

Re: [PATCH v6] usb: common: add API to set usb otg capabilities by device tree

2015-06-22 Thread Roger Quadros
On Mon, 22 Jun 2015 18:45:37 +0800 Li Jun wrote: > On Mon, Jun 22, 2015 at 12:41:22PM +0300, Roger Quadros wrote: > > On Thu, 18 Jun 2015 21:37:04 +0800 > > Li Jun wrote: > > > > > On Thu, Jun 18, 2015 at 03:07:48PM +0300, Roger Quadros wrote: > > > > On Thu, 18 Jun 2015 16:47:48 +0800 > > > >

Re: [PATCH v6] usb: common: add API to set usb otg capabilities by device tree

2015-06-22 Thread Li Jun
On Mon, Jun 22, 2015 at 12:43:37PM +0300, Roger Quadros wrote: > On Thu, 18 Jun 2015 16:47:48 +0800 > Li Jun wrote: > > > On Thu, Jun 18, 2015 at 10:36:50AM +0300, Roger Quadros wrote: > > > Lin, > > > > > > You can use --in-reply-to "message id of v5 of this path" so that it > > > appears toge

Re: [PATCH v6] usb: common: add API to set usb otg capabilities by device tree

2015-06-22 Thread Li Jun
On Mon, Jun 22, 2015 at 12:41:22PM +0300, Roger Quadros wrote: > On Thu, 18 Jun 2015 21:37:04 +0800 > Li Jun wrote: > > > On Thu, Jun 18, 2015 at 03:07:48PM +0300, Roger Quadros wrote: > > > On Thu, 18 Jun 2015 16:47:48 +0800 > > > Li Jun wrote: > > > > > > > On Thu, Jun 18, 2015 at 10:36:50AM

Re: [PATCH v6] usb: common: add API to set usb otg capabilities by device tree

2015-06-22 Thread Roger Quadros
On Thu, 18 Jun 2015 16:47:48 +0800 Li Jun wrote: > On Thu, Jun 18, 2015 at 10:36:50AM +0300, Roger Quadros wrote: > > Lin, > > > > You can use --in-reply-to "message id of v5 of this path" so that it > > appears together > > with the other patches in peoples mailboxes. > > > > > + * the passed

Re: [PATCH v6] usb: common: add API to set usb otg capabilities by device tree

2015-06-22 Thread Roger Quadros
On Thu, 18 Jun 2015 21:37:04 +0800 Li Jun wrote: > On Thu, Jun 18, 2015 at 03:07:48PM +0300, Roger Quadros wrote: > > On Thu, 18 Jun 2015 16:47:48 +0800 > > Li Jun wrote: > > > > > On Thu, Jun 18, 2015 at 10:36:50AM +0300, Roger Quadros wrote: > > > > Lin, > > > > > > > > You can use --in-repl

Re: [PATCH v6] usb: common: add API to set usb otg capabilities by device tree

2015-06-18 Thread Li Jun
On Thu, Jun 18, 2015 at 03:18:24PM +0300, Roger Quadros wrote: > On Thu, 18 Jun 2015 15:55:28 +0800 > Li Jun wrote: > > > On Thu, Jun 18, 2015 at 10:36:50AM +0300, Roger Quadros wrote: > > > Lin, > > > > > > You can use --in-reply-to "message id of v5 of this path" so that it > > > appears toge

Re: [PATCH v6] usb: common: add API to set usb otg capabilities by device tree

2015-06-18 Thread Li Jun
On Thu, Jun 18, 2015 at 03:07:48PM +0300, Roger Quadros wrote: > On Thu, 18 Jun 2015 16:47:48 +0800 > Li Jun wrote: > > > On Thu, Jun 18, 2015 at 10:36:50AM +0300, Roger Quadros wrote: > > > Lin, > > > > > > You can use --in-reply-to "message id of v5 of this path" so that it > > > appears toge

Re: [PATCH v6] usb: common: add API to set usb otg capabilities by device tree

2015-06-18 Thread Roger Quadros
On Thu, 18 Jun 2015 15:55:28 +0800 Li Jun wrote: > On Thu, Jun 18, 2015 at 10:36:50AM +0300, Roger Quadros wrote: > > Lin, > > > > You can use --in-reply-to "message id of v5 of this path" so that it > > appears together > > with the other patches in peoples mailboxes. > > > okay, I will try t

Re: [PATCH v6] usb: common: add API to set usb otg capabilities by device tree

2015-06-18 Thread Roger Quadros
On Thu, 18 Jun 2015 16:47:48 +0800 Li Jun wrote: > On Thu, Jun 18, 2015 at 10:36:50AM +0300, Roger Quadros wrote: > > Lin, > > > > You can use --in-reply-to "message id of v5 of this path" so that it > > appears together > > with the other patches in peoples mailboxes. > > > > > + * the passed

Re: [PATCH v6] usb: common: add API to set usb otg capabilities by device tree

2015-06-18 Thread Li Jun
On Thu, Jun 18, 2015 at 10:36:50AM +0300, Roger Quadros wrote: > Lin, > > You can use --in-reply-to "message id of v5 of this path" so that it appears > together > with the other patches in peoples mailboxes. > > > + * the passed properties in DT. > > + * @np: Pointer to the given device_node >

Re: [PATCH v6] usb: common: add API to set usb otg capabilities by device tree

2015-06-18 Thread Li Jun
On Thu, Jun 18, 2015 at 10:36:50AM +0300, Roger Quadros wrote: > Lin, > > You can use --in-reply-to "message id of v5 of this path" so that it appears > together > with the other patches in peoples mailboxes. > okay, I will try that next time, thanks. Li Jun > On Thu, 18 Jun 2015 09:18:22 +0800

Re: [PATCH v6] usb: common: add API to set usb otg capabilities by device tree

2015-06-18 Thread Roger Quadros
Lin, You can use --in-reply-to "message id of v5 of this path" so that it appears together with the other patches in peoples mailboxes. On Thu, 18 Jun 2015 09:18:22 +0800 Li Jun wrote: > Change for v6: > UPdate otg caps by disable flags even if otg_rev is not passed, this is > needed in case u

[PATCH v6] usb: common: add API to set usb otg capabilities by device tree

2015-06-17 Thread Li Jun
Change for v6: UPdate otg caps by disable flags even if otg_rev is not passed, this is needed in case user wants to disable whole OTG(or just want to ID pin detect). Check property of usb hardware to get otg version and if SRP, HNP and ADP are disabled. Signed-off-by: Li Jun --- drivers/usb/com