Re: [PATCH -next] usb: gadget: udc: lpc32xx: fix return value check in lpc32xx_udc_probe()

2019-05-04 Thread Vladimir Zapolskiy
n PTR_ERR(udc->udp_baseaddr); > } > > /* Get USB device clock */ thank you for the change, it is a correct fix. I do suppose that dev_err() in the context can be evenly removed, but likely it should be another change. Acked-by: Vladimir Zapolskiy -- Best wishes, Vladimir

[PATCH v2 1/2] usb storage: group dependent USB storage Kconfig entries together

2018-08-09 Thread Vladimir Zapolskiy
option are left aside deliberately. Signed-off-by: Vladimir Zapolskiy --- drivers/usb/storage/Kconfig | 18 -- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/drivers/usb/storage/Kconfig b/drivers/usb/storage/Kconfig index ec84758..8d7d764 100644 --- a/drivers/usb

[PATCH v2 2/2] usb storage: remove inherited SCSI dependency for USB_STORAGE_ENE_UB6250

2018-08-09 Thread Vladimir Zapolskiy
-off-by: Vladimir Zapolskiy --- drivers/usb/storage/Kconfig | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/usb/storage/Kconfig b/drivers/usb/storage/Kconfig index 8d7d764..6fd4272 100644 --- a/drivers/usb/storage/Kconfig +++ b/drivers/usb/storage/Kconfig @@ -176,15 +176,10

Re: [PATCH 1/2] usb storage: group dependent USB storage Kconfig entries together

2018-08-09 Thread Vladimir Zapolskiy
Hi Alan, thank you for review. On 08/09/2018 05:01 PM, Alan Stern wrote: > On Thu, 9 Aug 2018, Vladimir Zapolskiy wrote: > >> Instead of explicit setting of USB_STORAGE dependency for every >> underlying build entries, exploit if USB_STORAGE / endif block. >> &g

Re: [PATCH 2/2] usb storage: remove inherited SCSI dependency for USB_STORAGE subentries

2018-08-09 Thread Vladimir Zapolskiy
Hi Oliver, On 08/09/2018 10:38 AM, Oliver Neukum wrote: > On Do, 2018-08-09 at 01:01 +0300, Vladimir Zapolskiy wrote: >> Because USB_STORAGE build symbol strictly depends on SCSI build >> symbol, there is no need to specify it again for USB_UAS and >> USB_STORAGE_ENE

[PATCH 2/2] usb storage: remove inherited SCSI dependency for USB_STORAGE subentries

2018-08-08 Thread Vladimir Zapolskiy
description, hence the change removes this duplication. Signed-off-by: Vladimir Zapolskiy --- drivers/usb/storage/Kconfig | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/usb/storage/Kconfig b/drivers/usb/storage/Kconfig index 0aef832d3be6..7db5b28fbf0c 100644 --- a/drivers/usb/storage

[PATCH 1/2] usb storage: group dependent USB storage Kconfig entries together

2018-08-08 Thread Vladimir Zapolskiy
Instead of explicit setting of USB_STORAGE dependency for every underlying build entries, exploit if USB_STORAGE / endif block. Signed-off-by: Vladimir Zapolskiy --- drivers/usb/storage/Kconfig | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/usb

Re: [PATCH v2 3/3] USB: OHCI: nxp: remove useless extern declaration

2016-12-07 Thread Vladimir Zapolskiy
On 12/08/2016 12:34 AM, csmanjuvi...@gmail.com wrote: > From: Manjunath Goudar > > Remove usb_disabled() extern declaration as it is already declared > as extern in include/linux/usb.h. > > Signed-off-by: Manjunath Goudar > Cc: Vladimir Zapolskiy > Cc: Sylvain Lemieux

Re: [PATCH] USB: OHCI: nxp: fix code warnings

2016-12-07 Thread Vladimir Zapolskiy
-by: Manjunath Goudar > Cc: Vladimir Zapolskiy > Cc: Sylvain Lemieux > Cc: Alan Stern > Cc: Greg Kroah-Hartman > Cc: linux-arm-ker...@lists.infradead.org > Cc: linux-usb@vger.kernel.org > Cc: linux-ker...@vger.kernel.org > --- Looks good, thank you for the change. Acked

Re: [PATCH] usb: musb: jz4740: fix error check of usb_get_phy()

2016-04-21 Thread Vladimir Zapolskiy
Hi Bin, On 09.03.2016 02:57, Vladimir Zapolskiy wrote: > The usb_get_phy() function returns either a valid pointer to phy or > ERR_PTR() error, check for NULL always fails and may lead to oops on > error path, fix this issue. > > Signed-off-by: Vladimir Zapolskiy > --- &

Re: [PATCH v2] USB: whci-hcd: add more checks for dma mapping error

2016-03-30 Thread Vladimir Zapolskiy
; in qset_free_std() as suggested by Vladimir Zapolskiy. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov Reviewed-by: Vladimir Zapolskiy > --- > drivers/usb/host/whci/qset.c | 8 ++-- > 1 file changed, 6 insert

Re: [PATCH] USB: whci-hcd: add more checks for dma mapping error

2016-03-25 Thread Vladimir Zapolskiy
On 26.03.2016 00:56, Alexey Khoroshilov wrote: > On 26.03.2016 01:03, Vladimir Zapolskiy wrote: >> On 25.03.2016 22:23, Alexey Khoroshilov wrote: >>> Fixing checks for dma mapping error in qset_fill_page_list(), >>> I have missed two similar problems in q

Re: [PATCH] USB: whci-hcd: add more checks for dma mapping error

2016-03-25 Thread Vladimir Zapolskiy
On 25.03.2016 22:23, Alexey Khoroshilov wrote: > Fixing checks for dma mapping error in qset_fill_page_list(), > I have missed two similar problems in qset_add_urb_sg() and > in qset_add_urb_sg_linearize(). > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alex

Re: [PATCH] usb: musb: jz4740: fix error check of usb_get_phy()

2016-03-08 Thread Vladimir Zapolskiy
Hi Felipe, On 09.03.2016 02:57, Vladimir Zapolskiy wrote: > The usb_get_phy() function returns either a valid pointer to phy or > ERR_PTR() error, check for NULL always fails and may lead to oops on > error path, fix this issue. > > Signed-off-by: Vladimir Zapolskiy > --- &

[PATCH] usb: musb: jz4740: fix error check of usb_get_phy()

2016-03-08 Thread Vladimir Zapolskiy
The usb_get_phy() function returns either a valid pointer to phy or ERR_PTR() error, check for NULL always fails and may lead to oops on error path, fix this issue. Signed-off-by: Vladimir Zapolskiy --- drivers/usb/musb/jz4740.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 2/3] usb: udc: lpc32xx: remove direct access to clock controller registers

2016-03-02 Thread Vladimir Zapolskiy
Direct access to clock control registers can be safely removed, the task of clock management is done by platform clock driver based on common clock framework. Signed-off-by: Vladimir Zapolskiy --- drivers/usb/gadget/udc/lpc32xx_udc.c | 29 - 1 file changed, 29

[PATCH 3/3] usb: udc: lpc32xx: remove USB PLL and USB OTG clock management

2016-03-02 Thread Vladimir Zapolskiy
LPC32xx common clock framework driver correctly manages parent clocks of USB device clock, so there is no need to manually enable and disable them from the driver, which now depends only on a single USB device clock. Signed-off-by: Vladimir Zapolskiy --- drivers/usb/gadget/udc/lpc32xx_udc.c

[PATCH 0/3] usb: udc: lpc32xx: remove direct clock management

2016-03-02 Thread Vladimir Zapolskiy
. The change is wanted for v4.6, because in this release LPC32xx will be finally switched to the CCF. I'm adding Roland to Cc, however in fact the platform is unmaintained. Vladimir Zapolskiy (3): usb: udc: lpc32xx: switch to clock prepare/unprepare model usb: udc: lpc32xx: remove direct a

[PATCH 1/3] usb: udc: lpc32xx: switch to clock prepare/unprepare model

2016-03-02 Thread Vladimir Zapolskiy
nit) from [<>] (do_one_initcall+0x11c/0x1dc) [<>] (do_one_initcall) from [<>] (kernel_init_freeable+0x10c/0x1d4) [<>] (kernel_init_freeable) from [<>] (kernel_init+0x10/0xec) [<>] (kernel_init) from [<>] (ret_from_fork+0x14/0x24) Signed-off-by: V

[PATCH 0/2] usb: ohci: nxp: remove direct clock management

2016-03-02 Thread Vladimir Zapolskiy
re USB PLL usb-ohci: probe of 3102.ohci failed with error -2 I'm adding Roland to Cc, however in fact the platform is unmaintained. Vladimir Zapolskiy (2): usb: ohci: nxp: remove direct access to clock controller registers usb: ohci: nxp: remove USB PLL and USB OTG clock management d

[PATCH 1/2] usb: ohci: nxp: remove direct access to clock controller registers

2016-03-02 Thread Vladimir Zapolskiy
Direct access to clock control registers can be safely removed, the task of clock management is done by platform clock driver based on common clock framework. Signed-off-by: Vladimir Zapolskiy --- drivers/usb/host/ohci-nxp.c | 18 -- 1 file changed, 18 deletions(-) diff --git a

[PATCH 2/2] usb: ohci: nxp: remove USB PLL and USB OTG clock management

2016-03-02 Thread Vladimir Zapolskiy
LPC32xx common clock framework driver correctly manages parent clocks of USB OHCI clock, so there is no need to manually enable and disable them from the driver, which now depends only on a single USB host clock. Signed-off-by: Vladimir Zapolskiy --- drivers/usb/host/ohci-nxp.c | 62

Re: [PATCH] usb: udc: lpc32xx: fix warnings caused by enabling unprepared clock

2015-12-26 Thread Vladimir Zapolskiy
Hi Felipe, Greg, On 02.12.2015 08:17, Vladimir Zapolskiy wrote: > Hi Felipe, > > On 17.10.2015 22:24, Vladimir Zapolskiy wrote: >> If common clock framework is configured, the driver generates warnings, >> which is fixed by this change: >> >> WARNING: CPU:

Re: [PATCH] usb: ohci: nxp: clean up included header files

2015-12-08 Thread Vladimir Zapolskiy
On 08.12.2015 17:30, Alan Stern wrote: > On Tue, 8 Dec 2015, Vladimir Zapolskiy wrote: > >> Remove mach/irq.h from the list of included headers, there is no >> compilation dependency on this include file, the change is needed >> to prevent a compilation failure, wh

[PATCH] usb: ohci: nxp: clean up included header files

2015-12-07 Thread Vladimir Zapolskiy
Remove mach/irq.h from the list of included headers, there is no compilation dependency on this include file, the change is needed to prevent a compilation failure, when mach/irq.h is removed. Additionally remove other unneeded includes. Signed-off-by: Vladimir Zapolskiy --- drivers/usb/host

[PATCH] usb: gadget: lpc32xxx_udc: clean up and sort include directives out

2015-12-07 Thread Vladimir Zapolskiy
Remove mach/irq.h from the list of included headers, there is no compilation dependency on this include file, and the change is needed to prevent a compilation failure, when mach/irq.h is removed. Additionally remove other unneeded includes and sort out their order. Signed-off-by: Vladimir

Re: [PATCH] usb: udc: lpc32xx: fix warnings caused by enabling unprepared clock

2015-12-01 Thread Vladimir Zapolskiy
Hi Felipe, On 17.10.2015 22:24, Vladimir Zapolskiy wrote: > If common clock framework is configured, the driver generates warnings, > which is fixed by this change: > > WARNING: CPU: 0 PID: 1 at drivers/clk/clk.c:728 > clk_core_enable+0x2c/0xf0() > Modules linked in: &

Re: [PATCH] usb: chipidea: set unique names to requested irqs

2015-10-20 Thread Vladimir Zapolskiy
On 20.10.2015 09:05, Peter Chen wrote: > On Mon, Oct 19, 2015 at 07:00:26PM +0300, Vladimir Zapolskiy wrote: >> This change allows to get a driver instance of usb controller, which >> registers an irq, now the interrupt names are unique: >> >> # cat /proc/inter

[PATCH] usb: chipidea: set unique names to requested irqs

2015-10-19 Thread Vladimir Zapolskiy
-off-by: Vladimir Zapolskiy --- drivers/usb/chipidea/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 3feebf7..f2d2e5c 100644 --- a/drivers/usb/chipidea/core.c +++ b/drivers/usb/chipidea/core.c @@ -917,7 +917,7

[PATCH 2/3] usb: host: lpc32xx: balance clk enable/disable on removal

2015-10-17 Thread Vladimir Zapolskiy
The change adds missing clk_disable_unprepare(usb_otg_clk) call, also the disabled clocks are sorted in order opposite to enabled clocks. Signed-off-by: Vladimir Zapolskiy --- drivers/usb/host/ohci-nxp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/ohci

[PATCH 1/3] usb: host: lpc32xx: fix warnings caused by enabling unprepared clock

2015-10-17 Thread Vladimir Zapolskiy
one_initcall) from [<>] (do_init_module+0x60/0x368) [<>] (do_init_module) from [<>] (load_module+0x16d0/0x1b7c) [<>] (load_module) from [<>] (SyS_finit_module+0x90/0xa4) [<>] (SyS_finit_module) from [<>] (ret_fast_syscall+0x0/0x38) Signed-off-by: Vladimir Zapo

[PATCH 3/3] usb: host: lpc32xx: don't unregister phy device

2015-10-17 Thread Vladimir Zapolskiy
There is no need to unregister the I2C device, which serves as a phy from host code, this should be done in the correspondent phy driver. Signed-off-by: Vladimir Zapolskiy --- drivers/usb/host/ohci-nxp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/host/ohci-nxp.c b/drivers

[PATCH 0/3] usb: ohci: lpc32xx: clock fixes

2015-10-17 Thread Vladimir Zapolskiy
The changeset contains a couple of fixes in the LPC32xx OHCI driver related to clock enable/disable usage and one more fix of improper phy device release on driver removal. Vladimir Zapolskiy (3): usb: host: lpc32xx: fix warnings caused by enabling unprepared clock usb: host: lpc32xx: balance

[PATCH] usb: udc: lpc32xx: fix warnings caused by enabling unprepared clock

2015-10-17 Thread Vladimir Zapolskiy
ter+0x50/0x64) [<>] (__platform_driver_register) from [<>] (__platform_driver_probe+0x54/0x100) [<>] (__platform_driver_probe) from [<>] (lpc32xx_udc_driver_init+0x1c/0x28) [<>] (lpc32xx_udc_driver_init) from [<>] (do_one_initcall+0x11c/0x1dc) [

Re: [PATCH] usb: gadget: xilinx: fix devm_ioremap_resource() check

2015-04-28 Thread Vladimir Zapolskiy
On 30.03.2015 05:38, Sören Brinkmann wrote: > On Sun, 2015-03-29 at 05:43AM +0300, Vladimir Zapolskiy wrote: >> devm_ioremap_resource() returns IOMEM_ERR_PTR() and it never >> returns NULL, fix the check to prevent access to invalid >> virtual address. >> >>

[PATCH] usb: gadget: xilinx: fix devm_ioremap_resource() check

2015-03-28 Thread Vladimir Zapolskiy
devm_ioremap_resource() returns IOMEM_ERR_PTR() and it never returns NULL, fix the check to prevent access to invalid virtual address. Signed-off-by: Vladimir Zapolskiy --- drivers/usb/gadget/udc/udc-xilinx.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb

Re: chipidea hangs on mx51 running linux-next

2014-12-15 Thread Vladimir Zapolskiy
Hi Fabio, On 15.12.2014 17:05, Fabio Estevam wrote: > On Tue, Dec 9, 2014 at 11:48 AM, Matthieu CASTET > wrote: > >> Is your usb phy ok ? >> >> I saw freeze like that when there was no ulpi communication with the >> usb phy. > > Thanks. I fixed it by passing 'regulator-boot-on' to the USB regul

Re: [PATCH] usb: phy: mxs: change test clock gating on connection/disconnection

2014-11-06 Thread Vladimir Zapolskiy
On 07.11.2014 02:16, Peter Chen wrote: > >> Hi Peter, >> >> On 06.11.2014 09:15, Peter Chen wrote: >>> On Wed, Nov 05, 2014 at 08:52:25PM +0200, Vladimir Zapolskiy wrote: >>>> On some boards powered by iMX6Q rev1.0 I get non-working USB Host 1 >

Re: [PATCH] usb: phy: mxs: change test clock gating on connection/disconnection

2014-11-06 Thread Vladimir Zapolskiy
Hi Peter, On 06.11.2014 09:15, Peter Chen wrote: > On Wed, Nov 05, 2014 at 08:52:25PM +0200, Vladimir Zapolskiy wrote: >> On some boards powered by iMX6Q rev1.0 I get non-working USB Host 1 >> (connected to a hub, no other devices are connected to this hub) and >> repe

Re: [PATCH] usb: phy: mxs: change test clock gating on connection/disconnection

2014-11-05 Thread Vladimir Zapolskiy
Hi Felipe,On 05.11.2014 21:00, Felipe Balbi wrote: > On Wed, Nov 05, 2014 at 08:52:25PM +0200, Vladimir Zapolskiy wrote: >> On some boards powered by iMX6Q rev1.0 I get non-working USB Host 1 >> (connected to a hub, no other devices are connected to this hub) and >> repe

[PATCH] usb: phy: mxs: change test clock gating on connection/disconnection

2014-11-05 Thread Vladimir Zapolskiy
: Vladimir Zapolskiy Cc: Peter Chen --- drivers/usb/phy/phy-mxs-usb.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/phy/phy-mxs-usb.c b/drivers/usb/phy/phy-mxs-usb.c index 0e0c415..fbd079f 100644 --- a/drivers/usb/phy/phy-mxs-usb.c +++ b/drivers/usb/phy/phy

[PATCH 2/2] USB: UHCI: don't allocate frame list atomically

2014-07-03 Thread Vladimir Zapolskiy
uhci_start() is executed one time during usb_add_hcd() call and by default UHCI frame list is allocated from atomic DMA pool. Do non-atomic allocation of uhci->frame and free some space in coherent atomic DMA pool. Cc: Alan Stern Cc: Greg Kroah-Hartman Signed-off-by: Vladimir Zapols

[PATCH 1/2] USB: OHCI: don't allocate HCCA atomically

2014-07-03 Thread Vladimir Zapolskiy
OHCI HCCA memory region is allocated from atomic DMA pool one time during usb_add_hcd() and deallocated by usb_remove_hcd(). Do non-atomic allocation of OHCI HCCA and free some space in coherent atomic DMA pool. Cc: Alan Stern Cc: Greg Kroah-Hartman Signed-off-by: Vladimir Zapolskiy

[PATCH 0/2] USB: make HCD specific allocations non-atomically

2014-07-03 Thread Vladimir Zapolskiy
This change makes two more one-time per HCD allocations to be done from non-atomic DMA pool, the main purpose of the change is to save some bits of space in coherent atomic DMA pool, which is 256KB by default on ARM platform. Vladimir Zapolskiy (2): USB: OHCI: don't allocate HCCA atomi

Re: [PATCH] USB: EHCI: don't allocate hardware periodic table atomically by default

2014-07-03 Thread Vladimir Zapolskiy
On 03.07.2014 19:38, Alan Stern wrote: On Thu, 3 Jul 2014, Vladimir Zapolskiy wrote: ehci_mem_init() is executed one time during ehci_init() and by default all memory allocations but ehci->periodic are done not atomically, GFP_KERNEL is passed as flags parameter. Do similar allocation

[PATCH] USB: EHCI: don't allocate hardware periodic table atomically by default

2014-07-03 Thread Vladimir Zapolskiy
Stern Cc: Greg Kroah-Hartman Signed-off-by: Vladimir Zapolskiy --- drivers/usb/host/ehci-mem.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-mem.c b/drivers/usb/host/ehci-mem.c index c0fb6a8..b6205fa 100644 --- a/drivers/usb/host/ehci-mem.c +++ b/d

Re: [PATCH 0/2] usb: gadget/uvc: remove connect/disconnect calls on open/release

2013-05-08 Thread Vladimir Zapolskiy
Hi Peter, On 05/07/13 04:39, Peter Chen wrote: On Fri, May 3, 2013 at 6:13 AM, Vladimir Zapolskiy wrote: This change removes calls of uvc_function_connect()/uvc_function_disconnect() functions from open()/close() syscalls. This is a bugfix in g_webcam module, in some test scenarios (e.g

Re: [PATCH 1/2] usb: gadget/uvc: remove connect/disconnect calls on open/release

2013-05-06 Thread Vladimir Zapolskiy
Hi, On 05/04/13 21:22, Bhupesh SHARMA wrote: Hi, On 5/3/2013 6:00 PM, Vladimir Zapolskiy wrote: Hi Laurent, thank you for the comment. On 05/03/13 02:05, Laurent Pinchart wrote: Hi Vladimir, On Friday 03 May 2013 02:00:29 Vladimir Zapolskiy wrote: On 05/03/13 01:18, Laurent Pinchart

Re: [PATCH 1/2] usb: gadget/uvc: remove connect/disconnect calls on open/release

2013-05-03 Thread Vladimir Zapolskiy
Hi Laurent, thank you for the comment. On 05/03/13 02:05, Laurent Pinchart wrote: Hi Vladimir, On Friday 03 May 2013 02:00:29 Vladimir Zapolskiy wrote: On 05/03/13 01:18, Laurent Pinchart wrote: On Friday 03 May 2013 01:13:48 Vladimir Zapolskiy wrote: This change removes redundant calls to

Re: [PATCH 1/2] usb: gadget/uvc: remove connect/disconnect calls on open/release

2013-05-02 Thread Vladimir Zapolskiy
Hi Laurent, On 05/03/13 01:18, Laurent Pinchart wrote: Hi Vladimir, Thank you for the patch. On Friday 03 May 2013 01:13:48 Vladimir Zapolskiy wrote: This change removes redundant calls to uvc_function_connect() and uvc_function_disconnect() on V4L2 device node open and release. These two

[PATCH 2/2] usb: gadget/uvc: remove connection/disconnection routines

2013-05-02 Thread Vladimir Zapolskiy
The uvc_function_connect() and uvc_function_disconnect() functions are to be removed, because there is no users of them. Signed-off-by: Vladimir Zapolskiy Cc: Laurent Pinchart --- drivers/usb/gadget/f_uvc.c | 24 drivers/usb/gadget/uvc.h |3 --- 2 files changed

[PATCH 1/2] usb: gadget/uvc: remove connect/disconnect calls on open/release

2013-05-02 Thread Vladimir Zapolskiy
information about current mode of the controller. The UDC may be in suspended state, or an OTG controller may be in host mode, therefore it seems better not to try to forcibly pull-up D+ line on open() syscall. Signed-off-by: Vladimir Zapolskiy Cc: Laurent Pinchart --- drivers/usb/gadget/uvc_v4l2.c

[PATCH 0/2] usb: gadget/uvc: remove connect/disconnect calls on open/release

2013-05-02 Thread Vladimir Zapolskiy
C driver's .pullup functions, however presence of pullup controls from uvcvideo seems to be redundant. [1] http://kerneltrap.org/mailarchive/linux-usb/2010/12/29/6268355/thread Vladimir Zapolskiy (2): usb: gadget/uvc: remove connect/disconnect calls on open/release usb: gadget/uvc: re