RE: [PATCH v3] phy: rcar-gen3-usb2: add sysfs for usb role swap

2016-11-08 Thread Yoshihiro Shimoda
Hi, > From: Peter Chen > Sent: Tuesday, November 08, 2016 6:25 PM > > On Wed, Nov 02, 2016 at 03:47:12PM +0900, Yoshihiro Shimoda wrote: < snip > > > + /* If current and new mode is the same, this returns the error */ > > + if (is_host == new_mode_is_host) > > + return -EINVAL; > >

RE: [PATCH v3] phy: rcar-gen3-usb2: add sysfs for usb role swap

2016-11-08 Thread Yoshihiro Shimoda
Hi, > From: Peter Chen > Sent: Tuesday, November 08, 2016 6:25 PM > > On Wed, Nov 02, 2016 at 03:47:12PM +0900, Yoshihiro Shimoda wrote: < snip > > > + /* If current and new mode is the same, this returns the error */ > > + if (is_host == new_mode_is_host) > > + return -EINVAL; > >

Re: [PATCH v3] phy: rcar-gen3-usb2: add sysfs for usb role swap

2016-11-08 Thread Peter Chen
On Wed, Nov 02, 2016 at 03:47:12PM +0900, Yoshihiro Shimoda wrote: > This patch adds sysfs "role" for usb role swap. This parameter can be > read and write. If you use this file as the following, you can swap > the usb role. > > For example: > 1) Connect a usb cable using 2 Salvator-x boards >

Re: [PATCH v3] phy: rcar-gen3-usb2: add sysfs for usb role swap

2016-11-08 Thread Peter Chen
On Wed, Nov 02, 2016 at 03:47:12PM +0900, Yoshihiro Shimoda wrote: > This patch adds sysfs "role" for usb role swap. This parameter can be > read and write. If you use this file as the following, you can swap > the usb role. > > For example: > 1) Connect a usb cable using 2 Salvator-x boards >