On Fri, Jun 12, 2015 at 11:31:02AM +0300, Roger Quadros wrote:
>
>
>
> Agreed. We still need to determine legacy platform if
> none of the features are set.
>
> How about defining the followong enum for gadget->xyz_support
>
> enum otg_feature {
> OTG_FEATURE_UNDEFINED = 0,
> OTG_F
On Mon, 15 Jun 2015 14:32:46 +0800
Li Jun wrote:
> On Fri, Jun 12, 2015 at 11:31:02AM +0300, Roger Quadros wrote:
> >
> >
> > On Fri, 12 Jun 2015 11:09:17 +0800
> > Li Jun wrote:
> >
> [...]
>
> > > Other than those new flags, I have not found other good way to judge
> > > whether some platf
On Mon, 15 Jun 2015 15:41:02 +0800
Li Jun wrote:
> On Fri, Jun 12, 2015 at 11:31:02AM +0300, Roger Quadros wrote:
> >
> >
> >
> > Agreed. We still need to determine legacy platform if
> > none of the features are set.
> >
> > How about defining the followong enum for gadget->xyz_support
> >
On Sat, Jun 13, 2015 at 8:27 PM, Alexander Holler wrote:
> And because you've said that "problem space is a bit convoluted" and I
> disagree, here's a summary from my point of view:
>
> 1. All the necessary information (dependencies between drivers) already
> exists at compile time. The set of de
Linus Torvalds writes:
> Hmm. Oliver is marked as the maintainer of the USB CDC code, but
> others have touched it more recently. So I'm just wildly adding people
> to the cc to comment on this patch and maybe apply it.
> Oliver/David/Ben/Bjørn?
Adding Aleksander and Dan, too. The 'wwanX' vs 'u
On Sun, 2015-06-14 at 13:51 -1000, Linus Torvalds wrote:
> Hmm. Oliver is marked as the maintainer of the USB CDC code, but
I do CDC ACM, CDC WDM and CDC Ether, but not CDC NCM (it is a
very different beast)
> others have touched it more recently. So I'm just wildly adding people
> to the cc to c
Am 15.06.2015 um 10:58 schrieb Linus Walleij:
On Sat, Jun 13, 2015 at 8:27 PM, Alexander Holler wrote:
And because you've said that "problem space is a bit convoluted" and I
disagree, here's a summary from my point of view:
1. All the necessary information (dependencies between drivers) alrea
Replace macros with enumerated type to represent usb ip
controller version
Signed-off-by: Nikhil Badola
---
Changes for v2 :
- Assigned value to each enumerator
- Changed return type of function that returns
controller version
- Introduced FSL_USB_VER_NONE for in
USB controller version-2.5 requires to enable internal UTMI
phy and program PTS field in PORTSC register before asserting
controller reset. This is must for successful resetting of the
controller and subsequent enumeration of usb devices
Signed-off-by: Nikhil Badola
Signed-off-by: Suresh Gupta
-
Introduce FSL_USB2_PHY_UTMI_DUAL macro for setting phy mode
in SOCs such has T4240, T1040, T2080 which have utmi dual-phy
Signed-off-by: Ramneek Mehresh
Signed-off-by: Nikhil Badola
---
Changes for v2 : None
drivers/usb/host/ehci-fsl.c | 1 +
drivers/usb/host/fsl-mph-dr-of.c | 2 ++
inclu
Hi Bjorn,
>> Hmm. Oliver is marked as the maintainer of the USB CDC code, but
>> others have touched it more recently. So I'm just wildly adding people
>> to the cc to comment on this patch and maybe apply it.
>> Oliver/David/Ben/Bjørn?
>
> Adding Aleksander and Dan, too. The 'wwanX' vs 'usbX' d
Marcel Holtmann writes:
> we introduced DEVTYPE in uevent a long time ago. That is what
> userspace should be using and not second guessing on interface names.
Yes, sorry for confusing this by mentioning the device name. This is
really about DEVTYPE.
usbnet minidrivers use FLAG_WWAN to set bot
Hi Bjorn,
>> we introduced DEVTYPE in uevent a long time ago. That is what
>> userspace should be using and not second guessing on interface names.
>
> Yes, sorry for confusing this by mentioning the device name. This is
> really about DEVTYPE.
>
> usbnet minidrivers use FLAG_WWAN to set both t
Hello.
On 6/15/2015 10:41 AM, Li Jun wrote:
[...]
Regarding use of "xyz-disable" flags:
After more thinking this, I just realize that we can use "otg-rev" property
to handle the case of none of xyz-disable properties passed, for legacy
platforms, the new "otg-rev" not passed either, so it's a
On Mon, Jun 15, 2015 at 03:25:48PM +0300, Sergei Shtylyov wrote:
> Hello.
>
> On 6/15/2015 10:41 AM, Li Jun wrote:
>
> [...]
>
> >Regarding use of "xyz-disable" flags:
> >After more thinking this, I just realize that we can use "otg-rev" property
> >to handle the case of none of xyz-disable prop
On Mon, 15 Jun 2015, Lu Baolu wrote:
> Commit 25cd2882e2fc ("usb/xhci: Change how we indicate a host supports
> Link PM.") removed the code to set lpm_capable for USB 3.0 super-speed
> root hub. The intention of that change was to avoid touching usb core
> internal field, a.k.a. lpm_capable, and l
On Mon, 15 Jun 2015, Tom Yan wrote:
> So I did some further investigation on the weird optimal i/o size I
> got from my usb3/sata adapter/ssd, started by grep'ing the size in the
> /sys/block/sdx/queue:
>
> [tom@localhost ~]$ grep 33553920 /sys/block/sdb/queue/*
> grep: /sys/block/sdb/queue/iosch
On Mon, 15 Jun 2015, Tom Yan wrote:
> I have a SanDisk Extreme USB Flash Drive
> (http://www.sandisk.com/products/usb/drives/extreme/), which does NOT
> support UASP so is running under "usb-storage".
>
> According to `hdparm`, it seems to supports TRIM; and according to
> `sg3_opcodes`, it seems
From: philip.jos...@microchip.com
> Knowing that you have experts in USB 3.0 support for Linux, I am writing to
> your organization hoping
> that you may be able to offer some direction on a problem I have encountered.
>
> I am trying to track down a problem I am having with a USB 3.0 PCIe-x1 car
On Thu, 2015-06-11 at 11:10 +0200, Johan Hovold wrote:
> On Mon, Jun 08, 2015 at 02:36:36PM -0500, Peter Berger wrote:
> > On Fri, 2015-05-22 at 18:22 +0200, Johan Hovold wrote:
> > > On Fri, May 15, 2015 at 12:09:54AM -0500, Peter E. Berger wrote:
> > > > From: "Peter E. Berger"
> > > >
> > > >
Hi Johan:
I think my v5 patchset to address your review comments (here and in the
other messages) is just about ready to submit. I'll include some
point-by-point description details below:
On Thu, 2015-06-11 at 12:03 +0200, Johan Hovold wrote:
> On Mon, Jun 08, 2015 at 02:51:36PM -0500, Peter E.
Hi Johan:
Again, I think I'm about ready to post a v5 patchset that addresses your
comments here and elsewhere. I'll include point-by-point response notes
to your comments below.
Thanks!
--Peter
On Thu, 2015-06-11 at 12:26 +0200, Johan Hovold wrote:
> On Mon, Jun 08, 2015 at 02:51:37PM -0
From: "Peter E. Berger"
Call cancel_delayed_work_sync() unconditionally in edge_release()
and edge_suspend().
Signed-off-by: Peter E. Berger
---
drivers/usb/serial/io_ti.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/
From: "Peter E. Berger"
The io_ti driver fails to download firmware to Edgeport devices such as
the EP/416. One of the problems is that the default 1 second timeout
in ti_vsend_sync() is insufficient for download operations. This patch
increases the download timeout to 10 seconds.
Signed-off-b
From: "Peter E. Berger"
Move INIT_DELAY_WORK out of the if block.
Signed-off-by: Peter E. Berger
---
drivers/usb/serial/io_ti.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c
index 124c14c..0ef51ee 100644
--- a/driv
From: "Peter E. Berger"
Add edge_heartbeat_reschedule() helper function and call it
from edge_startup() and edge_resume().
Signed-off-by: Peter E. Berger
---
drivers/usb/serial/io_ti.c | 19 +++
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/drivers/usb/serial/i
From: "Peter E. Berger"
The io_ti driver fails to download firmware to Edgeport
devices such as the EP/416, even when the on-disk firmware image
(/lib/firmware/edgeport/down3.bin) is more current than the version
on the EP/416. The current download code is broken in a few ways.
Notably it mis-us
From: "Peter E. Berger"
I found that when using newer Edgeport devices such as the EP/416,
idle ports are regularly bounced (disconnected and then reconnected).
I discussed this with the manufacturer (Digi International) and learned
that some newer Edgeport devices now ship from the factory runni
From: "Peter E. Berger"
Instead of having ti_vsend_sync() decide when to use non-default timeouts,
make "timeout" a parameter and leave the decision to the caller.
Signed-off-by: Peter E. Berger
---
drivers/usb/serial/io_ti.c | 28 +---
1 file changed, 17 insertions(+),
From: "Peter E. Berger"
When using newer Edgeport devices such as the EP/416, idle ports are
automatically bounced (disconnected and then reconnected) approximately
every 60 seconds. This breaks programs (e.g: minicom) where idle periods
are common, normal and expected.
I confirmed with the man
From: "Peter E. Berger"
- Replace a dev_dbg() with dev_err().
- Drop unneeded dev_dbg().
Signed-off-by: Peter E. Berger
---
drivers/usb/serial/io_ti.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c
index 0eb4e81.
From: "Peter E. Berger"
The io_ti driver fails to download firmware to Edgeport
devices such as the EP/416, even when the on-disk firmware image
(/lib/firmware/edgeport/down3.bin) is more current than the version on
the EP/416. This patch adds a "fw_version" field to edgeport_serial,
which allow
From: "Peter E. Berger"
The firmware has a "build_number" field, though it is apparently unused
(according to observations of the three firmware images I have seen and
confirmed by Digi Tech Support). This comment describes its structure,
in case it is populated in a future release.
Signed-off-
Hello,
On Fri, Mar 27, 2015 at 08:30:42PM +0100, Uwe Kleine-König wrote:
> Since 39b2bbe3d715 (gpio: add flags argument to gpiod_get*() functions)
> which appeared in v3.17-rc1, the gpiod_get* functions take an additional
> parameter that allows to specify direction and initial value for output.
>
Andy Furniss wrote:
Hi I recently set up a Asrock Q1900DC-itx Intel baytrail board as a
router/nas/pvr. It has 2 usb dvb T/T2 tuners attached - pctv 290e and
292e.
When running them I am getting lost dvb packets which are detected
as lost via dvbs continuity counters.
Have tried 3.18.14, and to
Hello, guys!
I got a modem (SIM5320), which works via UART port.
I connect it to PC with USB-UART (pl2303 сonverter) cable and see, that Wvdial
is not able to send AT-commands to the modem in a proper way (the output looks
like the messages are corrupted), so I got no PPP-connection. At the same
Commit 25cd2882e2fc ("usb/xhci: Change how we indicate a host supports
Link PM.") removed the code to set lpm_capable for USB 3.0 super-speed
root hub. The intention of that change was to avoid touching usb core
internal field, a.k.a. lpm_capable, and let usb core to set it by
checking U1 and U2 ex
To my great surprise, Linux does not support NKRO (N-key roll-over)
keyboards connected by USB, and evidently some USB-PS2 adapters (which
are no use to us laptop people anyway).
Definitely one for the Linux device driver bucket list.
Regards
Zenaan
---
Firstly, we in the "Linux" community can
On Tue, Jun 16, 2015 at 03:32:48PM +1000, Zenaan Harkness wrote:
> To my great surprise, Linux does not support NKRO (N-key roll-over)
> keyboards connected by USB, and evidently some USB-PS2 adapters (which
> are no use to us laptop people anyway).
>
> Definitely one for the Linux device driver b
From: Macpaul Lin
OTG 2.0 introduces bcdOTG in otg descriptor to identify the OTG and EH
supplement release number with which the OTG device is compliant, this
patch adds structure usb_otg20_descriptor for OTG 2.0 and above.
Signed-off-by: Macpaul Lin
Signed-off-by: Li Jun
---
include/uapi/li
From: Macpaul Lin
Add USB_OTG_ADP definition for usb_otg_descriptor.bmAttributes.
Signed-off-by: Macpaul Lin
Signed-off-by: Li Jun
Acked-by: Peter Chen
---
include/uapi/linux/usb/ch9.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/uapi/linux/usb/ch9.h b/include/uapi/linux/usb/c
Check property of usb hardware to get otg version and if SRP, HNP and ADP
are supported.
Signed-off-by: Li Jun
---
drivers/usb/common/common.c | 64 +
include/linux/usb/of.h | 20 ++
2 files changed, 84 insertions(+)
diff --git a/driv
Set gadget's otg features according to controller's capability and usb
property in device tree.
Signed-off-by: Li Jun
---
drivers/usb/chipidea/core.c | 18 ++
drivers/usb/chipidea/udc.c | 20 +++-
include/linux/usb/chipidea.h | 4
3 files changed, 41 inse
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor,
add it for each usb configurations, free it while composite unbind.
Signed-off-by: Li Jun
---
drivers/usb/gadget/configfs.c | 34 +-
1 file changed, 25 insertions(+), 9 deletions(-)
diff --
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor,
free it while composite unbind.
Signed-off-by: Li Jun
---
drivers/usb/gadget/legacy/acm_ms.c | 34 +++---
1 file changed, 19 insertions(+), 15 deletions(-)
diff --git a/drivers/usb/gadget/legac
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor,
free it while composite unbind.
Signed-off-by: Li Jun
---
drivers/usb/gadget/legacy/ether.c | 48 +++
1 file changed, 34 insertions(+), 14 deletions(-)
diff --git a/drivers/usb/gadget/l
Allocate usb_otg_descriptor and initialize it according to gadget otg
options, if none of options is not set, keep bmAttributes setting as
current gadget drivers, with this new interface, usb_otg_descriptor can
include bcdOTG if OTG 2.0 or later, and otg features can be decided by
the combination o
From: Macpaul Lin
Copy usb_otg_descriptor from config's descriptor if host requests
USB_DT_OTG.
Signed-off-by: Macpaul Lin
Signed-off-by: Li Jun
---
drivers/usb/gadget/composite.c | 25 +
1 file changed, 25 insertions(+)
diff --git a/drivers/usb/gadget/composite.c b/d
Add otg version, srp, hnp and adp support for usb OTG port, then those OTG
features don't have to be decided by usb gadget drivers.
Signed-off-by: Li Jun
---
Documentation/devicetree/bindings/usb/generic.txt | 18 ++
1 file changed, 18 insertions(+)
diff --git a/Documentation/de
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor,
free it while composite unbind.
Signed-off-by: Li Jun
---
drivers/usb/gadget/legacy/zero.c | 37 +++--
1 file changed, 19 insertions(+), 18 deletions(-)
diff --git a/drivers/usb/gadget/lega
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor,
free it while composite unbind.
Signed-off-by: Li Jun
---
drivers/usb/gadget/legacy/ncm.c | 33 +++--
1 file changed, 19 insertions(+), 14 deletions(-)
diff --git a/drivers/usb/gadget/legacy/nc
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor,
free it while composite unbind.
Signed-off-by: Li Jun
---
drivers/usb/gadget/legacy/g_ffs.c | 34 +++---
1 file changed, 19 insertions(+), 15 deletions(-)
diff --git a/drivers/usb/gadget/legacy
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor,
free it while composite unbind.
Signed-off-by: Li Jun
---
drivers/usb/gadget/legacy/cdc2.c | 34 +++---
1 file changed, 19 insertions(+), 15 deletions(-)
diff --git a/drivers/usb/gadget/legacy/
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor,
free it while composite unbind.
Signed-off-by: Li Jun
---
drivers/usb/gadget/legacy/printer.c | 30 +++---
1 file changed, 19 insertions(+), 11 deletions(-)
diff --git a/drivers/usb/gadget/legacy/p
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor,
free it while composite unbind.
Signed-off-by: Li Jun
---
drivers/usb/gadget/legacy/hid.c | 35 ---
1 file changed, 20 insertions(+), 15 deletions(-)
diff --git a/drivers/usb/gadget/legacy/
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor,
free it while composite unbind.
Signed-off-by: Li Jun
---
drivers/usb/gadget/legacy/multi.c | 49 +++
1 file changed, 34 insertions(+), 15 deletions(-)
diff --git a/drivers/usb/gadget/l
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor,
free it while composite unbind.
Signed-off-by: Li Jun
---
drivers/usb/gadget/legacy/audio.c | 33 +++--
1 file changed, 19 insertions(+), 14 deletions(-)
diff --git a/drivers/usb/gadget/legacy/
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor,
free it while composite unbind.
Signed-off-by: Li Jun
---
drivers/usb/gadget/legacy/serial.c | 34 --
1 file changed, 20 insertions(+), 14 deletions(-)
diff --git a/drivers/usb/gadget/legac
58 matches
Mail list logo