Re: [PATCH] usb: dwc3: gadget: only unmap requests from DMA if mapped

2017-09-08 Thread Felipe Balbi
Thinh Nguyen writes: > Hi Felipe, > > On 9/7/2017 12:16 AM, Felipe Balbi wrote: >drivers/usb/dwc3/gadget.c | 8 +--- >1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c > index 9e41605a..6b299c7 100

Re: [PATCH] usb: dwc3: gadget: only unmap requests from DMA if mapped

2017-09-08 Thread Felipe Balbi
Hi, Felipe Balbi writes: > Thinh Nguyen writes: > >> Hi Felipe, >> >> On 9/7/2017 12:16 AM, Felipe Balbi wrote: >>drivers/usb/dwc3/gadget.c | 8 +--- >>1 file changed, 5 insertions(+), 3 deletions(-) >> >> diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadg

Re: RH Bugzilla - Bug 1482649 - Logitech USB Unified Receiver+M570 need 'waking' up by click after kernel update

2017-09-08 Thread Jiri Kosina
On Fri, 8 Sep 2017, Mike Simms wrote: > Thanks for getting back to me, > > 4.11.11-300.fc26.x86_64 and 4.12.9-300.fc26.x86_64 > are showing identical settings - autosuspend definitely on for > device /sys/bus/usb/devices/2-1.3/2-1.3:1.0/0003:046D:C52B.0001/power > > it shows in the powertop UI

[PATCH v4] usb: serial: add vid:pid for Cypress WICED dev board

2017-09-08 Thread Jeffrey Chu
Add CYPRESS_VID vid and CYPRESS_WICED_BT_USB and CYPRESS_WICED_WL_USB device IDs to ftdi_sio driver Signed-off-by: Jeffrey Chu --- drivers/usb/serial/ftdi_sio.c | 2 ++ drivers/usb/serial/ftdi_sio_ids.h | 7 +++ 2 files changed, 9 insertions(+) diff --git a/drivers/usb/serial/ftdi_sio.

Re: [PATCH v4] usb: serial: add vid:pid for Cypress WICED dev board

2017-09-08 Thread Greg KH
On Fri, Sep 08, 2017 at 12:27:41PM +, Jeffrey Chu wrote: > Add CYPRESS_VID vid and CYPRESS_WICED_BT_USB and CYPRESS_WICED_WL_USB device > IDs to ftdi_sio driver Please wrap your changelog at the proper colums (72). > > Signed-off-by: Jeffrey Chu > --- > drivers/usb/serial/ftdi_sio.c |

[PATCH v5] usb: serial: add vid:pid for Cypress WICED dev board

2017-09-08 Thread Jeffrey Chu
Add CYPRESS_VID vid and CYPRESS_WICED_BT_USB and CYPRESS_WICED_WL_USB device IDs to ftdi_sio driver Signed-off-by: Jeffrey Chu --- drivers/usb/serial/ftdi_sio.c | 2 ++ drivers/usb/serial/ftdi_sio_ids.h | 7 +++ 2 files changed, 9 insertions(+) diff --git a/drivers/usb/serial/ftdi_sio.c

Re: [PATCH v5] usb: serial: add vid:pid for Cypress WICED dev board

2017-09-08 Thread Greg KH
On Fri, Sep 08, 2017 at 02:35:03PM +, Jeffrey Chu wrote: > Add CYPRESS_VID vid and CYPRESS_WICED_BT_USB and CYPRESS_WICED_WL_USB > device IDs to ftdi_sio driver > > Signed-off-by: Jeffrey Chu > --- > drivers/usb/serial/ftdi_sio.c | 2 ++ > drivers/usb/serial/ftdi_sio_ids.h | 7 +++ >

RE: [PATCH v5] usb: serial: add vid:pid for Cypress WICED dev board

2017-09-08 Thread David Laight
> To: Jeffrey Chu .. > Patch is still corrupted :( > > Please try sending it to yourself first to verify you have your email > client set up correctly. If you are forced to send from outlook, try copy & paste from wordpad. David -- To unsubscribe from this list: send the line "unsubscri

[PATCH v1 01/10] clk: at91: pmc: Wait for clocks when resuming

2017-09-08 Thread Romain Izard
Wait for the syncronization of all clocks when resuming, not only the UPLL clock. Do not use regmap_read_poll_timeout, as it will call BUG() when interrupts are masked, which is the case in here. Signed-off-by: Romain Izard --- drivers/clk/at91/pmc.c | 24 1 file changed

[PATCH v1 08/10] pwm: atmel-tcb: Support backup mode

2017-09-08 Thread Romain Izard
Save and restore registers for the PWM on suspend and resume, which makes hibernation and backup modes possible. Signed-off-by: Romain Izard --- drivers/pwm/pwm-atmel-tcb.c | 63 +++-- 1 file changed, 61 insertions(+), 2 deletions(-) diff --git a/drivers/

[PATCH v1 09/10] atmel_flexcom: Support backup mode

2017-09-08 Thread Romain Izard
The controller used by a flexcom module is configured at boot, and left alone after this. As the configuration will be lost after backup mode, restore the state of the flexcom driver on resume. Signed-off-by: Romain Izard --- drivers/mfd/atmel-flexcom.c | 65 ++---

[PATCH v1 07/10] iio:adc:at91-sama5d2: Support backup mode

2017-09-08 Thread Romain Izard
Support the backup mode for platform suspend, by restoring the hardware registers on resume. Signed-off-by: Romain Izard --- drivers/iio/adc/at91-sama5d2_adc.c | 71 -- 1 file changed, 61 insertions(+), 10 deletions(-) diff --git a/drivers/iio/adc/at91-sama5d

[PATCH v1 10/10] tty/serial: atmel: Prevent a warning on suspend

2017-09-08 Thread Romain Izard
The atmel serial port driver reported the following warning on suspend: atmel_usart f802.serial: ttyS1: Unable to drain transmitter As the ATMEL_US_TXEMPTY status bit in ATMEL_US_CSR is always cleared when the transmitter is disabled, we need to know the transmitter's state to return the real

[PATCH v1 04/10] mtd: nand: atmel: Avoid ECC errors when leaving backup mode

2017-09-08 Thread Romain Izard
During backup mode, the contents of all registers will be cleared as the SoC will be completely powered down. For a product that boots on NAND Flash memory, the bootloader will obviously use the related controller to read the Flash and correct any detected error in the memory, before handling back

[PATCH v1 06/10] ehci-atmel: Power down during suspend is normal

2017-09-08 Thread Romain Izard
When an Atmel SoC is suspended with the backup mode, the USB bus will be powered down. As this is expected, do not return an error to the driver core when ehci_resume detects it. Signed-off-by: Romain Izard --- drivers/usb/host/ehci-atmel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH v1 05/10] mtd: nand: atmel: Report PMECC failures as errors

2017-09-08 Thread Romain Izard
It is not normal for the PMECC to fail when trying to fix ECC errors. Report these cases as errors. Signed-off-by: Romain Izard --- drivers/mtd/nand/atmel/pmecc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/atmel/pmecc.c b/drivers/mtd/nand/atmel/pmecc.

[PATCH v1 03/10] clk: at91: pmc: Support backup for programmable clocks

2017-09-08 Thread Romain Izard
From: Romain Izard Save and restore the System Clock and Programmable Clock register for the backup use case. Signed-off-by: Romain Izard --- drivers/clk/at91/pmc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c index 07dc2861ad3f..5421

[PATCH v1 00/10] Various patches for SAMA5D2 backup mode

2017-09-08 Thread Romain Izard
While the core of the backup mode for SAMA5D2 has been integrated in v4.13, it is far from complete. Individual controllers in the chip have drivers that do not support the reset of the registers during suspend, and they need to be adapted to handle it. The first patch uses the clock wakeup code f

[PATCH v1 02/10] clk: at91: pmc: Save SCSR during suspend

2017-09-08 Thread Romain Izard
The contents of the System Clock Status Register (SCSR) needs to be restored into the System Clock Enable Register (SCER). As the bootloader will restore some clocks by itself, the issue can be missed as only the USB controller, the LCD controller, the Image Sensor controller and the programmable

[PATCH 1/2] mux: add mux_control_get_optional() API

2017-09-08 Thread Peter Rosin
From: Stephen Boyd Sometimes drivers only use muxes under certain scenarios. For example, the chipidea usb controller may be connected to a usb switch on some platforms, and connected directly to a usb port on others. The driver won't know one way or the other though, so add a mux_control_get_opt

Re: [PATCH v2 05/11] mux: Add Intel Cherrytrail USB mux driver

2017-09-08 Thread Peter Rosin
On 2017-09-05 18:42, Hans de Goede wrote: > Intel Cherrytrail SoCs have an internal USB mux for muxing the otg-port > USB data lines between the xHCI host controller and the dwc3 gadget > controller. On some Cherrytrail systems this mux is controlled through > AML code reacting on a GPIO IRQ connec

Re: [PATCH v2 04/11] usb: xhci: Add Intel cherrytrail extended cap / otg phy mux handling

2017-09-08 Thread Peter Rosin
On 2017-09-05 18:42, Hans de Goede wrote: > The Intel cherrytrail xhci controller has an extended cap mmio-range > which contains registers to control the muxing to the xhci (host mode) > or the dwc3 (device mode) and vbus-detection for the otg usb-phy. > > Having a mux driver included in the xhci

[PATCH 2/2] mux: add explicit hook to leave the mux as-is on init/registration

2017-09-08 Thread Peter Rosin
A board may need a mux controller to stay as-is for a while longer, e.g. if setting the normally preferred idle state destroys booting. The mechanism provided here is not perfect in two ways. 1. As soon as the mux controller is registered, some mux consumer can access it and set a state that de

Re: [PATCH v2 03/11] mux: core: Add usb.h header with MUX_USB_* and and MUX_TYPEC_* state constants

2017-09-08 Thread Peter Rosin
On 2017-09-05 18:42, 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 meaning of the > mux_control_select() state argument. > > Signed

Re: [PATCH 1/2] mux: add mux_control_get_optional() API

2017-09-08 Thread Peter Rosin
On 2017-09-08 17:45, Peter Rosin wrote: > From: Stephen Boyd > > Sometimes drivers only use muxes under certain scenarios. For > example, the chipidea usb controller may be connected to a usb > switch on some platforms, and connected directly to a usb port on > others. The driver won't know one w

Re: [PATCH v1 07/10] iio:adc:at91-sama5d2: Support backup mode

2017-09-08 Thread Nicolas Ferre
On 08/09/2017 at 17:36, Romain Izard wrote: > Support the backup mode for platform suspend, by restoring the hardware > registers on resume. > > Signed-off-by: Romain Izard Romain, Thanks for your series: definitively some of your patches need to be integrated (I've merged some of them in our c

Re: [PATCH v1 07/10] iio:adc:at91-sama5d2: Support backup mode

2017-09-08 Thread Romain Izard
2017-09-08 18:03 GMT+02:00 Nicolas Ferre : > On 08/09/2017 at 17:36, Romain Izard wrote: >> Support the backup mode for platform suspend, by restoring the hardware >> registers on resume. >> >> Signed-off-by: Romain Izard > > Romain, > > Thanks for your series: definitively some of your patches ne

RE: Outlook Web app for Staff

2017-09-08 Thread Sam Rasheed-Hiscoke
From: Sam Rasheed-Hiscoke Sent: Saturday, 9 September 2017 2:00 a.m. To: Sam Rasheed-Hiscoke Subject: Outlook Web app for Staff Welcome to the new outlook web app for Staff The new Outlook Web app for Staff is the new home for online self-service and informatio

Re: [PATCH v2 03/11] mux: core: Add usb.h header with MUX_USB_* and and MUX_TYPEC_* state constants

2017-09-08 Thread Hans de Goede
Hi, On 08-09-17 17:47, Peter Rosin wrote: On 2017-09-05 18:42, 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 meaning of the mux_contro

Re: xhci bandwidth problem with isochronous endpoints

2017-09-08 Thread Curt Meyers
On 09/05/2017 02:56 PM, Curt Meyers wrote: On 09/04/2017 04:13 AM, Mathias Nyman wrote: On 04.09.2017 13:46, Felipe Balbi wrote: Hi, Mathias Nyman writes: Unfortunately config endpoint command doesn't log endpoint context in this log, it should call trace_xhci_handle_cmd_config_ep(ep_ctx),

[PATCH] HID: usbhid: get/put around clearing needs_remote_wakeup

2017-09-08 Thread Dmitry Torokhov
From: Benson Leung usbhid->intf->needs_remote_wakeup is set when a device is opened, and is cleared when a device is closed. In usbhid_open, usb_autopm_get_interface is called before setting the needs_remote_wakeup flag, and usb_autopm_put_interface is called after hid_start_in. However, when th

[PATCH v7] usb: serial: add vid:pid for Cypress WICED dev board

2017-09-08 Thread Jeffrey Chu
This message and any attachments may contain confidential information from Cypress or its subsidiaries. If it has been received in error, please advise the sender and immediately delete this message. >From 891fe3887b53d2bad35d3f94c845ecb89ab58509 Mon Sep 17 00:00:00 2001 From: Jeffrey Chu Dat

Re: [PATCH v7] usb: serial: add vid:pid for Cypress WICED dev board

2017-09-08 Thread Greg Kroah-Hartman
On Fri, Sep 08, 2017 at 10:03:37AM -0400, Jeffrey Chu wrote: > > > This message and any attachments may contain confidential information from > Cypress or its subsidiaries. If it has been received in error, please advise > the sender and immediately delete this message. I'm advising you that I

T230 and T230C DVB-C broken on Linux 4.12>

2017-09-08 Thread François
The device isn't able to scan any DVB-C channel anymore, and the following error appears: usb 1-7: DVB: adapter 0 frontend 0 frequency 0 out of range The cable is fine (tried a few others as well), it just impossible to get any signal. I think the device is hard bricket, don't recommend upgrading

RE: [PATCH v7] usb: serial: add vid:pid for Cypress WICED dev board

2017-09-08 Thread Jeffrey Chu
You did not receive this email message in error. You are the intended recipient of this email message. Everything included in this email message do not contain confidential information from Cypress or its subsidiaries. Regards, -Jeffrey -Original Message- From: linux-usb-ow...@vger.k

Re: RH Bugzilla - Bug 1482649 - Logitech USB Unified Receiver+M570 need 'waking' up by click after kernel update

2017-09-08 Thread Alan Stern
On Fri, 8 Sep 2017, Jiri Kosina wrote: > On Fri, 8 Sep 2017, Mike Simms wrote: > > > Thanks for getting back to me, > > > > 4.11.11-300.fc26.x86_64 and 4.12.9-300.fc26.x86_64 > > are showing identical settings - autosuspend definitely on for > > device /sys/bus/usb/devices/2-1.3/2-1.3:1.0/0003:

[PATCH v9] usb: serial: add vid:pid for Cypress WICED dev board

2017-09-08 Thread Jeffrey Chu
From: Jeffrey Chu Add CYPRESS_VID vid and CYPRESS_WICED_BT_USB and CYPRESS_WICED_WL_USB device IDs to ftdi_sio driver Signed-off-by: Jeffrey Chu --- drivers/usb/serial/ftdi_sio.c | 2 ++ drivers/usb/serial/ftdi_sio_ids.h | 7 +++ 2 files changed, 9 insertions(+) diff --git a/drivers/u

HID: Add quirk for Lenovo Yoga 910 with ITE Chipset

2017-09-08 Thread Javier Marcet
Hi, I've been using a Lenovo Yoga 910 with convertible for the last few months. Its sensors need a quirk to work, which may be should be generalized to all Yogas, the new 920 probably needs one too. Anyhow, I have been using this myself for the last few months and I would appreciate being able to

Re: HID: Add quirk for Lenovo Yoga 910 with ITE Chipset

2017-09-08 Thread Javier Marcet
Hi, I just saw in master it has been superseded by a general fix which removed all quirks. So no need for it, it seems. On Sat, Sep 9, 2017 at 1:52 AM, Javier Marcet wrote: > Hi, > > I've been using a Lenovo Yoga 910 with convertible for the last few > months. Its sensors need a quirk to work,

Re: [PATCH] usb: dwc3: gadget: only unmap requests from DMA if mapped

2017-09-08 Thread Thinh Nguyen
Hi, On 9/8/2017 2:34 AM, Felipe Balbi wrote: > Felipe Balbi writes: >> Thinh Nguyen writes: >> >>> Hi Felipe, >>> >>> On 9/7/2017 12:16 AM, Felipe Balbi wrote: >>> drivers/usb/dwc3/gadget.c | 8 +--- >>> 1 file changed, 5 insertions(+), 3 deletions(-) >>> >>> diff --gi

Re: T230 and T230C DVB-C broken on Linux 4.12>

2017-09-08 Thread Greg KH
On Fri, Sep 08, 2017 at 09:27:51PM +0200, François wrote: > The device isn't able to scan any DVB-C channel anymore, and the > following error appears: > usb 1-7: DVB: adapter 0 frontend 0 frequency 0 out of range > > The cable is fine (tried a few others as well), it just impossible to > get any