On Wed, 27 Sep 2017, Jaejoong Kim wrote:
> Hi, Alan,
>
> Thanks for the review.
>
> 2017-09-26 23:18 GMT+09:00 Alan Stern :
> > On Tue, 26 Sep 2017, Jaejoong Kim wrote:
> >
> >> The starting address of the hid descriptor is obtained via
> >>
Hi, Alan,
Thanks for the review.
2017-09-26 23:18 GMT+09:00 Alan Stern :
> On Tue, 26 Sep 2017, Jaejoong Kim wrote:
>
>> The starting address of the hid descriptor is obtained via
>> usb_get_extra_descriptor(). If the hid descriptor has the wrong size, it
>> is
The dummy-hcd HCD/UDC emulator tries not to do too much work during
each timer interrupt. But it doesn't try very hard; currently all
it does is limit the total amount of bulk data transferred. Other
transfer types aren't limited, and URBs that transfer no data (because
of an error, perhaps)
A recent change to the synchronization in dummy-hcd was incorrect.
The issue was that dummy_udc_stop() contained no locking and therefore
could race with various gadget driver callbacks, and the fix was to
add locking and issue the callbacks with the private spinlock held.
UDC drivers aren't
The dummy-hcd driver doesn't support emulation of isochronous
transfers. Therefore it doesn't need to export isochronous endpoint
descriptors; they can be commented out.
Also, the comments in the source code don't express clearly enough the
fact that isochronous isn't supported. They need to be
Felipe and Greg:
In the following series of changes for the dummy-hcd driver, the first
three patches correct issues that are serious enough to merit inclusion
in the -stable kernels:
1/5 fixes a bug that prevents g_mass_storage from working
correctly in the default
The dummy-hcd UDC driver is not careful about the way it handles
connection speeds. It ignores the module parameter that is supposed
to govern the maximum connection speed and it doesn't set the HCD
flags properly for the case where it ends up running at full speed.
The result is that in many
On Tue, 26 Sep 2017 09:53:23 +0300
Mathias Nyman wrote:
>
> Do you have any more details, logs or documentation about these 10Gbps
> ASM1142 bugs in xHCI driver?
> I'd be interested in getting that fixed
>
> Thanks
> Mathias
I know exactly what must be changed
On Mon, Sep 25, 2017 at 4:16 PM, Mathias Nyman
wrote:
> On 25.09.2017 10:08, Joe Lee wrote:
>>
>> From: Joe Lee
>>
>> For AMD Promontory xHCI host,
>> although you can disable USB 2.0 ports in BIOSsettings,
>> those ports will be enabled
On Tue, Sep 26, 2017 at 11:35:32AM -0400, Alan Stern wrote:
> On Tue, 26 Sep 2017, Russell King - ARM Linux wrote:
>
> > On Tue, Sep 26, 2017 at 10:35:23AM -0400, Alan Stern wrote:
> > > On Tue, 26 Sep 2017, Russell King wrote:
> > > > Convert the shutdown method to use the device_driver shutdown
On Tue, 26 Sep 2017, Russell King - ARM Linux wrote:
> On Tue, Sep 26, 2017 at 10:35:23AM -0400, Alan Stern wrote:
> > On Tue, 26 Sep 2017, Russell King wrote:
> > > Convert the shutdown method to use the device_driver shutdown function
> > > pointer rather than a private bus-type shutdown. This
Hi
On Mon, Sep 25, 2017 at 6:09 PM, Grant Grundler wrote:
> This linksys dongle by default comes up in cdc_ether mode.
> This patch allows r8152 to claim the device:
>Bus 002 Device 002: ID 13b1:0041 Linksys
>
> Signed-off-by: Grant Grundler
>
On Tue, Sep 26, 2017 at 10:35:23AM -0400, Alan Stern wrote:
> On Tue, 26 Sep 2017, Russell King wrote:
> > Convert the shutdown method to use the device_driver shutdown function
> > pointer rather than a private bus-type shutdown. This is the only user
> > for SA bus types, so having the
Hi
> -Original Message-
> From: Guenter Roeck [mailto:groe...@gmail.com] On Behalf Of Guenter Roeck
> Sent: Tuesday, September 26, 2017 9:50 PM
> To: Jun Li ; gre...@linuxfoundation.org; robh...@kernel.org;
> mark.rutl...@arm.com; heikki.kroge...@linux.intel.com
> Cc:
On Tue, 26 Sep 2017, Russell King wrote:
> Convert the shutdown method to use the device_driver shutdown function
> pointer rather than a private bus-type shutdown. This is the only user
> for SA bus types, so having the support code in the bus doesn't
> make any sense.
>
> Signed-off-by:
On Tue, 26 Sep 2017, Felipe Balbi wrote:
> > Does uvc use isochronous transfers? I assume it would, since it's a
> > video protocol.
>
> yes, it does :-)
>
> > dummy-hcd does not support isochronous. I don't know what would happen
>
> really? Then why is it registering iso endpoints to the
Hi
> -Original Message-
> From: Guenter Roeck [mailto:groe...@gmail.com] On Behalf Of Guenter Roeck
> Sent: Tuesday, September 26, 2017 9:43 PM
> To: Jun Li ; gre...@linuxfoundation.org; robh...@kernel.org;
> mark.rutl...@arm.com; heikki.kroge...@linux.intel.com
> Cc:
On Tue, 26 Sep 2017, Jaejoong Kim wrote:
> The starting address of the hid descriptor is obtained via
> usb_get_extra_descriptor(). If the hid descriptor has the wrong size, it
> is possible to access the wrong address. So, before accessing the hid
> descriptor, we need to check the entire size
> -Original Message-
> From: Guenter Roeck [mailto:groe...@gmail.com] On Behalf Of Guenter Roeck
> Sent: Tuesday, September 26, 2017 9:37 PM
> To: Jun Li ; gre...@linuxfoundation.org; robh...@kernel.org;
> mark.rutl...@arm.com; heikki.kroge...@linux.intel.com
> Cc:
Remove the special SA MMIO accessors from the ohci-sa driver
as their definition will be removed shortly. The SA accessors are
barrierless, so use the _relaxed variants.
Signed-off-by: Russell King
---
drivers/usb/host/ohci-sa.c | 10 +-
1
Hi
> -Original Message-
> From: Guenter Roeck [mailto:groe...@gmail.com] On Behalf Of Guenter Roeck
> Sent: Tuesday, September 26, 2017 9:34 PM
> To: Jun Li ; gre...@linuxfoundation.org; robh...@kernel.org;
> mark.rutl...@arm.com; heikki.kroge...@linux.intel.com
> Cc:
Hi
> -Original Message-
> From: Guenter Roeck [mailto:groe...@gmail.com] On Behalf Of Guenter Roeck
> Sent: Tuesday, September 26, 2017 9:33 PM
> To: Jun Li ; gre...@linuxfoundation.org; robh...@kernel.org;
> mark.rutl...@arm.com; heikki.kroge...@linux.intel.com
> Cc:
> -Original Message-
> From: Guenter Roeck [mailto:groe...@gmail.com] On Behalf Of Guenter Roeck
> Sent: Tuesday, September 26, 2017 9:20 PM
> To: Jun Li ; gre...@linuxfoundation.org; robh...@kernel.org;
> mark.rutl...@arm.com; heikki.kroge...@linux.intel.com
> Cc:
On 09/25/2017 05:45 PM, Li Jun wrote:
As we should keep the disconnected cc line to be open when attached,
so update the set_cc interface accordingly for it.
Signed-off-by: Li Jun
---
drivers/staging/typec/tcpci.c | 37 +
1 file changed,
On 09/25/2017 05:45 PM, Li Jun wrote:
As DRP port autonomously toggles the Rp/Rd need a start value to
begin with, so add one parameter for it in tcpm_start_drp_toggling.
It does have a starting value. The patch changes the starting value to
TYPEC_CC_RD
(from currently one of the RP states)
On 09/25/2017 05:45 PM, Li Jun wrote:
TCPCI implementation may need SW to enable VBUS detection to generate
power status events.
Signed-off-by: Li Jun
---
drivers/staging/typec/tcpci.c | 23 +++
1 file changed, 23 insertions(+)
diff --git
On 09/25/2017 05:45 PM, Li Jun wrote:
With that we can clear any pending events and the port is registered
so driver can be ready to handle typec events once we request irq.
Signed-off-by: Peter Chen
Signed-off-by: Li Jun
---
drivers/staging/typec/tcpci.c
On 09/25/2017 05:45 PM, Li Jun wrote:
User can define the typec port properties in tcpci node to setup
the port config.
Signed-off-by: Li Jun
---
drivers/staging/typec/tcpci.c | 89 +++
include/linux/usb/tcpm.h | 6 +--
2 files
On 09/25/2017 05:45 PM, Li Jun wrote:
This patch add 2 APIs to get port type and preferred role from firmware
description.
Signed-off-by: Li Jun
---
drivers/usb/typec/typec.c | 45 +
include/linux/usb/typec.h | 2 ++
2 files
On 09/26/2017 02:53 AM, Jun Li wrote:
Hi,
-Original Message-
From: Guenter Roeck [mailto:groe...@gmail.com] On Behalf Of Guenter Roeck
Sent: Tuesday, September 26, 2017 3:17 PM
To: Jun Li ; gre...@linuxfoundation.org; robh...@kernel.org;
mark.rutl...@arm.com;
Hi!
I've got the following report while fuzzing the kernel with syzkaller.
On commit e19b205be43d11bff638cad4487008c48d21c103 (4.14-rc2).
==
BUG: KASAN: use-after-free in lan78xx_write_reg.isra.21+0x1a8/0x1b0
Read of size 8 at addr
On Tue, 26 Sep 2017 05:55:17 +
Adrian Bocaniciu wrote:
> Therefore, you either have a bad cable (there are many USB 2.0 cables
> with Type C connectors) or your motherboard/BIOS has some weird
> behavior.
>
> On the other hand, SuperSpeedPlus (10 Gb/s) does not work on
Hi,
On 26 September 2017 at 21:39, Jonathan Liu wrote:
> This fixes a kernel oops when unloading the driver due to usb_put_phy
> being called after usb_phy_generic_unregister when the device is
> detached. Calling usb_phy_generic_unregister causes x->dev->driver to
> be NULL in
This fixes a kernel oops when unloading the driver due to usb_put_phy
being called after usb_phy_generic_unregister when the device is
detached. Calling usb_phy_generic_unregister causes x->dev->driver to
be NULL in usb_put_phy and results in a NULL pointer dereference.
As we are now explicitly
On Thursday 21 September 2017 12:56 AM, Alexandre Bailon wrote:
> A couple of weeks ago, Sekhar reported a warning issue happening in
> CPPI 4.1. The teardown sequence was not correctly programmed.
> The caused was a couple of difference between the DSPS and the DA8xx.
> These differences are the
Convert the shutdown method to use the device_driver shutdown function
pointer rather than a private bus-type shutdown. This is the only user
for SA bus types, so having the support code in the bus doesn't
make any sense.
Signed-off-by: Russell King
---
Use the provided sa_get_irq() to fetch the IRQ resources for the
SA OHCI driver.
Signed-off-by: Russell King
---
drivers/usb/host/ohci-sa.c | 10 --
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/host/ohci-sa.c
Hi,
> -Original Message-
> From: Heikki Krogerus [mailto:heikki.kroge...@linux.intel.com]
> Sent: Tuesday, September 26, 2017 4:23 PM
> To: Jun Li
> Cc: gre...@linuxfoundation.org; li...@roeck-us.net; robh...@kernel.org;
> mark.rutl...@arm.com; yue...@google.com;
> -Original Message-
> From: Heikki Krogerus [mailto:heikki.kroge...@linux.intel.com]
> Sent: Tuesday, September 26, 2017 4:03 PM
> To: Jun Li
> Cc: gre...@linuxfoundation.org; li...@roeck-us.net; robh...@kernel.org;
> mark.rutl...@arm.com; yue...@google.com;
Hi,
> -Original Message-
> From: Guenter Roeck [mailto:groe...@gmail.com] On Behalf Of Guenter Roeck
> Sent: Tuesday, September 26, 2017 3:17 PM
> To: Jun Li ; gre...@linuxfoundation.org; robh...@kernel.org;
> mark.rutl...@arm.com; heikki.kroge...@linux.intel.com
> Cc:
Hi,
Alan Stern writes:
>> I have been trying to get a UVC gadget running through configfs and
>> wired in to dummy_hcd.
>>
>> I have largely been following the instructions from the Tizen wiki.
>>
On Tue, Sep 26, 2017 at 08:45:17AM +0800, Li Jun wrote:
> port-type is required for any typec port; default-role is only required
> for drp; power source capable needs src-pdos; power sink capable needs
> snk-pdos, max-snk-mv, max-snk-ma, op-snk-mw.
>
> Signed-off-by: Li Jun
>
Move TCPCI(Typec port controller interface) driver out of staging.
Signed-off-by: Li Jun
---
drivers/staging/Kconfig| 2 --
drivers/staging/Makefile | 1 -
drivers/staging/typec/Kconfig | 14 --
drivers/staging/typec/Makefile
As we should only drive connected cc line to be the right state when
attached, and keeps the other one to be open, so update the set_cc
interface for that.
Signed-off-by: Li Jun
---
drivers/usb/typec/tcpm.c | 12 +++-
include/linux/usb/tcpm.h | 3 ++-
2 files changed,
As we should keep the disconnected cc line to be open when attached,
so update the set_cc interface accordingly for it.
Signed-off-by: Li Jun
---
drivers/staging/typec/tcpci.c | 37 +
1 file changed, 21 insertions(+), 16 deletions(-)
diff
We need regmap_update_bits to avoid touch any other bits when
enable or disable vconn.
Signed-off-by: Li Jun
---
drivers/staging/typec/tcpci.c | 10 +++---
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/drivers/staging/typec/tcpci.c
As DRP port autonomously toggles the Rp/Rd need a start value to
begin with, so add one parameter for it in tcpm_start_drp_toggling.
Signed-off-by: Li Jun
---
drivers/usb/typec/tcpm.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git
Per tcpci spec 4.4.5.2 ROLE_CONTROL description: "the TCPM shall
write B6 (DRP) =1b and the starting value of Rp/Rd to B3..0 (CC1/CC2)
to indicate DRP autonomous toggling mode to the TCPC", so add CC1/CC2
setting, also we should issue COMMAND.Look4Connection to start it.
Signed-off-by: Li Jun
TCPCI implementation may need SW to enable VBUS detection to generate
power status events.
Signed-off-by: Li Jun
---
drivers/staging/typec/tcpci.c | 23 +++
1 file changed, 23 insertions(+)
diff --git a/drivers/staging/typec/tcpci.c
With that we can clear any pending events and the port is registered
so driver can be ready to handle typec events once we request irq.
Signed-off-by: Peter Chen
Signed-off-by: Li Jun
---
drivers/staging/typec/tcpci.c | 11 +--
1 file changed, 5
TCPCI stands for typec port controller interface, its implementation
has full typec port control with power delivery support, it's a
standard i2c slave with GPIO input as irq interface, detail see spec
"Universal Serial Bus Type-C Port Controller Interface Specification
Revision 1.0, Version 1.1"
This patch set attempts to move the tcpci driver out of staging by fix
some tcpci driver issues and verified on NXP PTN5110, which is a standard
tcpci typec port controller device with power delivery support, tested
power source and sink with drp config.
Li Jun (12):
usb: typec: add API to get
port-type is required for any typec port; default-role is only required
for drp; power source capable needs src-pdos; power sink capable needs
snk-pdos, max-snk-mv, max-snk-ma, op-snk-mw.
Signed-off-by: Li Jun
---
Documentation/devicetree/bindings/usb/typec.txt | 46
This patch add 2 APIs to get port type and preferred role from firmware
description.
Signed-off-by: Li Jun
---
drivers/usb/typec/typec.c | 45 +
include/linux/usb/typec.h | 2 ++
2 files changed, 47 insertions(+)
diff --git
Hi,
On Tue, Sep 26, 2017 at 08:45:16AM +0800, Li Jun wrote:
> This patch add 2 APIs to get port type and preferred role from firmware
> description.
>
> Signed-off-by: Li Jun
> ---
> drivers/usb/typec/typec.c | 45 +
>
Hi Hans,
Sorry about the late response.
On Fri, Sep 22, 2017 at 08:37:54PM +0200, Hans de Goede wrote:
> Add MUX_USB_* and MUX_TYPEC_* state constant defines, which can be used by
> USB device/host, resp. Type-C polarity/role/altmode mux drivers and
> consumers to ensure that they agree on the
On Mon, Sep 25, 2017 at 01:17:32PM -0700, Grant Grundler wrote:
> Correct. r8152 happens to claim the device before cdc_ether does - I
> thought because cdc_ether is a class driver and only gets picked up
> after vendor specific drivers are probed. Is that correct?
Nope, there is not "priority"
The starting address of the hid descriptor is obtained via
usb_get_extra_descriptor(). If the hid descriptor has the wrong size, it
is possible to access the wrong address. So, before accessing the hid
descriptor, we need to check the entire size through the bLength field.
It also shows how many
On 09/25/2017 05:45 PM, Li Jun wrote:
As we should only drive connected cc line to be the right state when
attached, and keeps the other one to be open, so update the set_cc
interface for that.
Signed-off-by: Li Jun
---
drivers/usb/typec/tcpm.c | 12 +++-
Hi,
> -Original Message-
> From: Greg KH [mailto:gre...@linuxfoundation.org]
> Sent: Tuesday, September 26, 2017 2:58 PM
> To: Jun Li
> Cc: li...@roeck-us.net; robh...@kernel.org; mark.rutl...@arm.com;
> heikki.kroge...@linux.intel.com; yue...@google.com;
On Tue, Sep 26, 2017 at 08:45:27AM +0800, Li Jun wrote:
> Move TCPCI(Typec port controller interface) driver out of staging.
>
> Signed-off-by: Li Jun
> ---
> drivers/staging/Kconfig| 2 -
> drivers/staging/Makefile | 1 -
> drivers/staging/typec/Kconfig | 14
On Tue, Sep 26, 2017 at 09:30:31AM +1000, Will Trives wrote:
> On Mon, 25 Sep 2017 10:52:10 +0200
> Greg KH wrote:
>
> > On Mon, Sep 25, 2017 at 05:29:10PM +1000, Will wrote:
> > > Hello,
> > >
> > > Basically I'm just sending this to see if anyone can confirm
On 26.09.2017 08:55, Adrian Bocaniciu wrote:
On Mon, 25 Sep 2017 17:29:10 +1000
Will wrote:
Hello,
Basically I'm just sending this to see if anyone can confirm whether
they can get SuperSpeed devices working properly through the Type-C port
on an Asmedia ASM1142
On 25.09.2017 19:09, David Laight wrote:
From: Adam Wallis
Sent: 25 September 2017 13:26
inc_deq() currently bails earlier for EVENT rings than the common return
point of the function, due to the fact that EVENT rings do not have
link TRBs. The unfortunate side effect of this is that the very
On Mon, 25 Sep 2017 17:29:10 +1000
Will wrote:
> Hello,
>
> Basically I'm just sending this to see if anyone can confirm whether
> they can get SuperSpeed devices working properly through the Type-C port
> on an Asmedia ASM1142 controller with Linux (i've tried even
65 matches
Mail list logo