Re: [PATCH 2/2] USB: gadget: pxa25x: Add DT probing

2019-02-06 Thread Robert Jarzmik
Linus Walleij writes: > This makes it possible to instantiate the PXA25x UDC > driver from the device tree. > > Cc: Robert Jarzmik > Signed-off-by: Linus Walleij > --- > drivers/usb/gadget/udc/pxa25x_udc.c | 11 +++ > 1 file changed, 11 insertions(+) Mmmh

Re: [PATCH 20/22] USB: gadget: udc: pxa27x_udc: no need to check return value of debugfs_create functions

2018-05-29 Thread Robert Jarzmik
all, so remove > those variables from the device structure. > > Cc: Daniel Mack > Cc: Haojian Zhuang > Cc: Robert Jarzmik > Cc: Felipe Balbi > Signed-off-by: Greg Kroah-Hartman Acked-by: Robert Jarzmik Cheers. -- Robert -- To unsubscribe from this list: send the line &quo

Re: [PATCH v1 07/14] USB: gadget: pxa27x: Re-use DEFINE_SHOW_ATTRIBUTE() macro

2018-02-17 Thread Robert Jarzmik
Andy Shevchenko writes: > ...instead of open coding file operations followed by custom ->open() > callbacks per each attribute. > > Cc: Daniel Mack > Cc: Haojian Zhuang > Cc: Robert Jarzmik > Signed-off-by: Andy Shevchenko Acked-by: Robert Jarzmik Cheers. -- Rober

Re: [PATCH v1 06/14] USB: gadget: pxa25x: Re-use DEFINE_SHOW_ATTRIBUTE() macro

2018-02-17 Thread Robert Jarzmik
Andy Shevchenko writes: > ...instead of open coding file operations followed by custom ->open() > callbacks per each attribute. > > Cc: Daniel Mack > Cc: Haojian Zhuang > Cc: Robert Jarzmik > Signed-off-by: Andy Shevchenko Acked-by: Robert Jarzmik Cheers. -- Rober

Re: [PATCH][V2] usb: gadget: pxa27x: Remove redundant assignment to is_short and dev

2017-11-07 Thread Robert Jarzmik
t is updated a few statements later, this too is > redundant and can be removed. Cleans up clan warnings: > > drivers/usb/gadget/udc/pxa27x_udc.c:986:3: warning: Value stored > to 'is_short' is never read > drivers/usb/gadget/udc/pxa27x_udc.c:1141:2: warning: Value stored > to

Re: [PATCH 22/24] USB: gadget: udc: Remove redundant license text

2017-11-06 Thread Robert Jarzmik
> Cc: Nicolas Ferre > Cc: Kevin Cernekee > Cc: Florian Fainelli > Cc: Li Yang > Cc: Vladimir Zapolskiy > Cc: Sylvain Lemieux > Cc: Daniel Mack > Cc: Haojian Zhuang > Cc: Robert Jarzmik > Cc: Michal Simek > Cc: "Sören Brinkmann" > Cc: Raviteja Ga

Re: [PATCH v2 2/2] usb: gadget: pxa27x: Test for a valid argument pointer

2017-02-25 Thread Robert Jarzmik
Petr Cvek writes: > A call usb_put_phy(udc->transceiver) must be tested for a valid pointer. > Use an already existing test for usb_unregister_notifier call. > > Reported-by: Robert Jarzmik > Signed-off-by: Petr Cvek Acked-by: Robert Jarzmik Cheers. -- Robert -- To uns

Re: [PATCH v2 1/2] usb: gadget: pxa27x: Remove duplicate function prototype

2017-02-25 Thread Robert Jarzmik
Petr Cvek writes: > Functions udc_enable() and udc_disable() have a duplicated prototype. > Remove it. > > Signed-off-by: Petr Cvek Acked-by: Robert Jarzmik Cheers. -- Robert -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body

Re: [PATCH 1/2] [TRIVIAL] usb: gadget: Remove duplicated function declaration in pxa27x_udc

2017-02-22 Thread Robert Jarzmik
Petr Cvek writes: > Remove duplicated function declaration for udc_enable() and udc_disable(). The patch title looks a bit tool long to me, and that also applied to your second one. Moreover the correct prefix for this driver (for the title) is : usb: gadget: pxa27x: MySuperSyntheticTi

Re: [PATCH 2/2] usb: gadget: Add test if argument pointer has a valid value in pxa27x_udc

2017-02-22 Thread Robert Jarzmik
Petr Cvek writes: > Move call usb_put_phy(udc->transceiver) inside a valid pointer test. > > Reported-by: robert.jarz...@free.fr I'd rather have my normal signature here : Reported-by: Robert Jarzmik > Signed-off-by: Petr Cvek Acked-by: Robert Jarzmik Cheers. -- Robe

Re: [RFC] usb: gadget: scheduling while atomic in pxa27x_udc, IS_ERR_OR_NULL test, duplicated definition

2017-02-22 Thread Robert Jarzmik
fied as !in_interrupt()) > seems to work fine > (after torture reloads). Can the caller (udc core) be changed to be able to > sleep? This question is for Felipe. From the several years back when I wrote this code I think it was granted that the pullup() callback was not in interrupt conte

Re: [BUG] usb: gadget: Kernel oops with UVC USB gadget and configfs

2017-02-13 Thread Robert Jarzmik
Petr Cvek writes: > Dne 12.2.2017 v 13:02 Robert Jarzmik napsal(a): > That's weird I even removed pxa_set_udc_info() from magician machine init and > it still fails. > Host cable and/or actual camera is not required. It fails without them. > > So you binded pxa27

Re: [BUG] usb: gadget: Kernel oops with UVC USB gadget and configfs

2017-02-12 Thread Robert Jarzmik
Petr Cvek writes: > Hi > > any news? Yeah, I don't have the error on my mainstone, which kind of hinders my debug capability. I have tried your script, and this is what I get : - dmesg | tail random: crng init done gadgetfs: USB Gadget filesystem, version 24 Aug 2004 c

Re: [BUG] usb: gadget: Kernel oops with UVC USB gadget and configfs

2017-02-04 Thread Robert Jarzmik
Petr Cvek writes: > Setting the UVC gadget with configfs and then reloading UDC controler driver > (pxa27x_udc) causes kernel to fail. > > UDC subsystem was patched only in decreasing maxpacket size for UVC, addition > of more predefined endpoints for pxa27x_udc and addition of some debugging >

Re: [PATCH] usb: gadget: udc: constify usb_ep_ops structures

2017-01-26 Thread Robert Jarzmik
script) For pxa27x_udc.c : Acked-by: Robert Jarzmik Cheers. -- Robert -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] usb: Convert pr_warning to pr_warn

2016-09-27 Thread Robert Jarzmik
Joe Perches writes: > Use the more common logging mechanism. > > Miscellanea: > > o Realign multiline statements > o Coalesce format > > Signed-off-by: Joe Perches For pxa25x_udc.h: Acked-by: Robert Jarzmik Cheers. -- Robert -- To unsubscribe from this list: send the

Re: [RFC] usb: phy: generic: get rid of VBUS handling

2016-07-29 Thread Robert Jarzmik
Felipe Balbi writes: > Hi Robert, > > Robert Jarzmik writes: >> Felipe Balbi writes: >> >>> Hi, >>> >>> Robert Jarzmik writes: >>>> I don't know if there are other users than pxa, I'll make the assumption >>>>

[PATCH 3/3] usb: phy: generic: remove the vbus dependency

2016-07-08 Thread Robert Jarzmik
not necessary anymore. Signed-off-by: Robert Jarzmik --- drivers/usb/phy/phy-generic.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/usb/phy/phy-generic.c b/drivers/usb/phy/phy-generic.c index 41b8aff9b925..c14e767a3fbf 100644 --- a/drivers/usb/phy/phy

[PATCH 2/3] usb: phy: generic: cope with initial state

2016-07-08 Thread Robert Jarzmik
e gadget will be aware it should answer enumeration and go forth Without this fix, the USB cable must be removed and replugged for any gadget relying on phy-generic and its gpio vbus handling to work. The problem was seen on a pxa27x architecture based board on a devicetree build. Signed-off-by

[PATCH 1/3] usb: gadget: pxa27x: add phy notifier event handler

2016-07-08 Thread Robert Jarzmik
devicetree platforms, we'll rely on the probe deferral, and the phy can be gadget API agnostic. Signed-off-by: Robert Jarzmik --- drivers/usb/gadget/udc/pxa27x_udc.c | 51 +++-- 1 file changed, 49 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/u

Re: [RFC] usb: phy: generic: get rid of VBUS handling

2016-07-07 Thread Robert Jarzmik
Felipe Balbi writes: > Hi, > > Robert Jarzmik writes: >> I don't know if there are other users than pxa, I'll make the assumption >> there >> aren't. > > yeah, we can keep patches in linux-next for as long as possible. If > nobody complains, w

Re: [RFC] usb: phy: generic: get rid of VBUS handling

2016-07-02 Thread Robert Jarzmik
Felipe Balbi writes: >> - amend the drivers (for my part I have pxa27x_udc.c and probably >> pxa25x_udc.c) >> to subscribe to the notifier, and in the action function call either >> usb_gadget_vbus_connect() or usb_gadget_vbus_disconnect(). >> >> Would that kind of approach solve the layering

Re: [RFC] usb: phy: generic: get rid of VBUS handling

2016-07-01 Thread Robert Jarzmik
Felipe Balbi writes: > Hi Robert, > > your commit 7acc9973e3c4 ("usb: phy: generic: add vbus support") added > GPIO-based VBUS handling for phy-generic.c, but that ends up calling > usb_gadget_vbus_connect() which forces NOP to depend on the gadget API. > > I was grepping around and couldn't find

Re: [PATCH 4/5] usb: pxa27x_udc: remove unused function argument

2016-06-16 Thread Robert Jarzmik
uot;Fixes" : Fixes: 70189a63d408 ("usb: gadget: pxa27x_udc: convert to udc_start/udc_stop") Apart form that: Acked-by: Robert Jarzmik Cheers. -- Robert -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 3/7] usb: gadget: pxa25x_udc: use readl/writel for mmio

2016-02-20 Thread Robert Jarzmik
Arnd Bergmann writes: > Coming back to the specific pxa25x_udc case: using __raw_* accessors > in the driver would possibly end up breaking the PXA25x machines in > the (very unlikely) case that someone wants to make it work with > big-endian kernels, assuming it does not have the same hardware >

[PATCH] usb: host: ohci-pxa27x: propagate the irq error code

2016-02-13 Thread Robert Jarzmik
. Even if in this specific case the driver was not broken, because the interrupt controller is always probed before drivers, propagate the proper return code. Signed-off-by: Robert Jarzmik --- drivers/usb/host/ohci-pxa27x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

Re: [PATCH 0/7] USB changes for rare warnings

2016-02-03 Thread Robert Jarzmik
Felipe Balbi writes: > Hi Arnd, > >> arch/arm/mach-ixp4xx/include/mach/ixp4xx-regs.h | 198 - >> arch/arm/mach-pxa/include/mach/pxa25x-udc.h | 163 > > for arch/arm I need Acked-by from relevant folks. You already have mine for arch/arm/mach-pxa/include/mach/pxa25x-udc.h I th

Re: [PATCH 1/7] usb: gadget: pxa25x_udc: move register definitions from arch

2016-01-29 Thread Robert Jarzmik
Arnd Bergmann writes: > On Friday 29 January 2016 10:32:07 Robert Jarzmik wrote: >> > This addresses both issues by moving all the definitions into the >> > pxa25x_udc driver itself. It turns out the only difference between >> > them was 'UDCCS_IO_ROF',

Re: [PATCH 3/7] usb: gadget: pxa25x_udc: use readl/writel for mmio

2016-01-29 Thread Robert Jarzmik
is patch. > > Signed-off-by: Arnd Bergmann For pxa25x_udc: Acked-by: Robert Jarzmik Cheers. -- Robert -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 2/7] usb: gadget: pxa25x_udc cleanup

2016-01-29 Thread Robert Jarzmik
e behavior of the driver, other than using > ioremap() on the platform resource to replace the hardcoded > virtual address pointers. > > Signed-off-by: Arnd Bergmann Acked-by: Robert Jarzmik It's too bad coccinelle cannot make that work more automatic, isn't it ? :) Cheers.

Re: [PATCH 1/7] usb: gadget: pxa25x_udc: move register definitions from arch

2016-01-29 Thread Robert Jarzmik
Arnd Bergmann writes: > ixp4xx and pxa25x both use this driver and provide a slightly > different set of register definitions for it. Aside from that, > the definition in the ixp4xx-regs.h header conflicts with the > on in the pxa27x device driver when compile-testing that: > > In file included f

Re: [PATCH] usb: gadget: pxa27x: fix suspend callback

2015-11-19 Thread Robert Jarzmik
nabled and just > ignore the following usb_ep_enable(). > > Fix this problem by calling > gadget_driver->disconnect(). > > Cc: # v3.10+ > Signed-off-by: Felipe Balbi Tested-by: Robert Jarzmik Cheers. -- Robert -- To unsubscribe from this list: send the line "

Re: [PATCH] usb: gadget: pxa27x: fix suspend callback

2015-11-19 Thread Robert Jarzmik
Felipe Balbi writes: > pxa27x disconnects pullups on suspend but doesn't > notify the gadget driver about it, so gadget driver > can't disable the endpoints it was using. > > This causes problems on resume because gadget core > will think endpoints are still enabled and just > ignore the followin

Re: [4.4-rc1 regression] pxa27x_udc and suspend/resume

2015-11-18 Thread Robert Jarzmik
Felipe Balbi writes: > Hi, > >> Euh it's expected to work _after resume_. > > sure is, but you can't expect it to have a proper IP. From host's > perspective this is a brand new usb0 network interface. Unless you have > dhcp client running on the phone and a server on your PC, you can't > assume

Re: [4.4-rc1 regression] pxa27x_udc and suspend/resume

2015-11-18 Thread Robert Jarzmik
Felipe Balbi writes: > Hi, > > this could be a bug in either g_ether or pxa27x... Seems like something > is enabling endpoints which were already enabled. Not sure if this is > pxa27x not _really_ disabling endpoints or g_ether being stupid. You're probably right. >From what I remember, g_ether i

Re: [4.4-rc1 regression] pxa27x_udc and suspend/resume

2015-11-18 Thread Robert Jarzmik
Felipe Balbi writes: > Hi, > you can increase fbcon verbosity, right ? I guess that was > CONFIG_MESSAGE_LOGLEVEL_DEFAULT. Sure. > Set it to 9 and you should get everything. Another option is to change > dev_* to dev_crit() and KERN_* to KERN_CRIT. > >> I know there is not panic/crash, as the sc

Re: [4.4-rc1 regression] pxa27x_udc and suspend/resume

2015-11-18 Thread Robert Jarzmik
Robert Jarzmik writes: > Felipe Balbi writes: > >> Hi, >> >> without any sort of logs it a bit difficult :-) Care to send some output >> of the failure ? Are there any oopses or what exactly happens ? > Ah well, the UDC is the only way to "speak" to

Re: [4.4-rc1 regression] pxa27x_udc and suspend/resume

2015-11-18 Thread Robert Jarzmik
Felipe Balbi writes: > Hi, > > without any sort of logs it a bit difficult :-) Care to send some output > of the failure ? Are there any oopses or what exactly happens ? Ah well, the UDC is the only way to "speak" to the board (no UART), so I don't have any written feedback available. All I have

[4.4-rc1 regression] pxa27x_udc and suspend/resume

2015-11-18 Thread Robert Jarzmik
Hi Robert and Felipe, I experience a regression in the 4.4-rc1 kernel which appeared between v4.3 and v4.4-rc1. The test : - boot the mioa701 kernel (ie. pxa27x_udc driver) - echo mem > /sys/power/state - resume from "Suspend to RAM" with a key press - try to use the udc (in my case, g_eth

Re: [PATCH v3 42/46] usb: gadget: move ep_matches() from epautoconf to udc-core

2015-07-25 Thread Robert Jarzmik
Alan Stern writes: Hi Alan, > On Sat, 25 Jul 2015, Robert Jarzmik wrote: > >> Petr Cvek writes: >> >> > On 23.7.2015 21:46, Alan Stern wrote: >> >>> It seems that it allows using a BULK endpoint for requested INT >> >>> endpoint

Re: [PATCH v3 42/46] usb: gadget: move ep_matches() from epautoconf to udc-core

2015-07-25 Thread Robert Jarzmik
Petr Cvek writes: > On 23.7.2015 21:46, Alan Stern wrote: >>> It seems that it allows using a BULK endpoint for requested INT >>> endpoint. For my PXA27x machine the original code returns BULK EP >>> even with valid INT endpoint definition (because BULK EPs are defined >>> earlier than INT EPs).

Re: [PATCH 28/37] usb: gadget: pxa27x_udc: add ep capabilities support

2015-07-08 Thread Robert Jarzmik
Robert Baldyga writes: > Convert endpoint configuration to new capabilities model. The commit message is very short to judge the patch's correctness. I'll side up with Felipe's opinion. If it's fine by him, so it is by me. Cheers. -- Robert -- To unsubscribe from this list: send the line "unsu

Re: [PATCH] usb: pass flags parameter to gpiod_get functions

2015-03-28 Thread Robert Jarzmik
Alexandre Courbot writes: > On 03/28/2015 04:30 AM, Uwe Kleine-König wrote: > Looks good, but can't we also merge the call to gpiod_direction to avoid using > GPIOD_ASIS? The golden rule is that a direction should not remain in an > unknown > state after being requested. > > This would also requ

Re: [PATCH] usb: pass flags parameter to gpiod_get functions

2015-03-27 Thread Robert Jarzmik
Felipe Balbi writes: > Looks good to me: > > Acked-by: Felipe Balbi Same for me: Acked-by: Robert Jarzmik Cheers. -- Robert -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majo

Re: [PATCH 10/27] pxa27x_udc: Remove use of seq_printf return value

2015-02-22 Thread Robert Jarzmik
simplify the error handler logic by returning > immediately and remove the unnecessary labels. > > Signed-off-by: Joe Perches Tested-by: Robert Jarzmik Cheers. -- Robert -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to

[PATCH v3 2/2] usb: phy: generic: fix the vbus interrupt request

2015-01-30 Thread Robert Jarzmik
dd vbus support". Signed-off-by: Robert Jarzmik --- drivers/usb/phy/phy-generic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/phy/phy-generic.c b/drivers/usb/phy/phy-generic.c index bdb4cb3..48af068 100644 --- a/drivers/usb/phy/phy-generic.c +++ b

[PATCH v3 1/2] usb: phy: generic: fix the gpios to be optional

2015-01-30 Thread Robert Jarzmik
All the gpios, ie. reset-gpios and vbus-detect-gpio, should be optional and not prevent the driver from working. Fix the regression in the behavior introduced by commit "usb: phy: generic: migrate to gpio_desc". Signed-off-by: Robert Jarzmik Tested-by: Fabio Estevam --- Since v1:

Re: [PATCH v2 1/2] usb: phy: generic: fix the gpios to be optional

2015-01-30 Thread Robert Jarzmik
Fabio Estevam writes: > On Thu, Jan 29, 2015 at 8:41 PM, Robert Jarzmik > wrote: >> All the gpios, ie. reset-gpios and vbus-detect-gpio, should be optional >> and not prevent the driver from working. Fix the regression in the >> behavior introduced by commit "

Re: [PATCH v2 1/2] usb: phy: generic: fix the gpios to be optional

2015-01-30 Thread Robert Jarzmik
Fabio Estevam writes: > Since the "power" GPIO is mapped as active-low, its actual signal will be 0 > after this code. Contrary to the legacy integer GPIO interface, the active-low > property is handled during mapping and is thus transparent to GPIO consumers." > > ,which is exactly what we want

Re: [PATCH v2 1/2] usb: phy: generic: fix the gpios to be optional

2015-01-30 Thread Robert Jarzmik
Fabio Estevam writes: > Why do you set it to zero independently of the GPIO active level flag? I don't. Please have a look at gpiod_direction_output() first, especially : if (test_bit(FLAG_ACTIVE_LOW, &desc->flags)) > ,which correctly puts the GPIO output to the correct initial level >

[PATCH v2 2/2] usb: phy: generic: fix the vbus interrupt request

2015-01-29 Thread Robert Jarzmik
dd vbus support". Signed-off-by: Robert Jarzmik --- drivers/usb/phy/phy-generic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/phy/phy-generic.c b/drivers/usb/phy/phy-generic.c index 9f08c1e..af32ce2 100644 --- a/drivers/usb/phy/phy-generic.c +++ b

[PATCH v2 1/2] usb: phy: generic: fix the gpios to be optional

2015-01-29 Thread Robert Jarzmik
All the gpios, ie. reset-gpios and vbus-detect-gpio, should be optional and not prevent the driver from working. Fix the regression in the behavior introduced by commit "usb: phy: generic: migrate to gpio_desc". Signed-off-by: Robert Jarzmik --- Since v1: correctly handle the e

[PATCH] usb: phy: generic: fix the gpios to be optional

2015-01-28 Thread Robert Jarzmik
is masked until the end of the threaded handler. This prevents the irq core from spitting out an error : "Threaded irq requested with handler=NULL and !ONESHOT for irq 63" Signed-off-by: Robert Jarzmik --- drivers/usb/phy/phy-generic.c | 13 +++-- 1 file changed, 7 insertions(

Re: [PATCH] usb: phy: generic: fix the gpios to be optional

2015-01-28 Thread Robert Jarzmik
Felipe Balbi writes: >> > At the same time, declare the interrupt as "one shot" so that it is >> > masked until the end of the threaded handler. This prevents the irq core >> > from spitting out an error : >> > "Threaded irq requested with handler=NULL and !ONESHOT for irq 63" >> >> Shouldn't

Re: [PATCH v2 1/3] usb: phy: generic: migrate to gpio_desc

2015-01-28 Thread Robert Jarzmik
Felipe Balbi writes: >> nop->gpiod_reset = devm_gpiod_get_optional(dev, "reset"); >> if (gpiod_is_active_low(nop->gpiod_reset)) >> gpiod_direction_output(nop->gpiod_reset, GPIOD_OUT_LOW); >> else >> gpiod_direction_output(nop->gpiod_reset, GPIOD_OUT

Re: [PATCH v2 1/3] usb: phy: generic: migrate to gpio_desc

2015-01-27 Thread Robert Jarzmik
Felipe Balbi writes: > diff --git a/drivers/usb/phy/phy-generic.c b/drivers/usb/phy/phy-generic.c > index 9a826ff31951..34231c31cd1a 100644 > --- a/drivers/usb/phy/phy-generic.c > +++ b/drivers/usb/phy/phy-generic.c > @@ -219,11 +219,11 @@ int usb_phy_gen_create_phy(struct device *dev, struct >

Re: [PATCH v2 1/3] usb: phy: generic: migrate to gpio_desc

2015-01-27 Thread Robert Jarzmik
-vbus@13[0]' - status (0) [0.619221] RJK2: nop->gpiod_vbus = c06bf6dc So I'll submit that one in [1]. It has to work in your case too, it works in mine ... Cheers. -- Robert ---<8--- [1] Patch >From 4005a6abf519272267399ac4030a5671f7877ca4 Mon Sep 17 00:00:00 2001 From: Robe

Re: [PATCH v2 1/3] usb: phy: generic: migrate to gpio_desc

2015-01-27 Thread robert . jarzmik
- Mail original - De: "Fabio Estevam" À: "Robert Jarzmik" Cc: "Felipe Balbi" , "Linus Walleij" , "Philipp Zabel" , "USB list" Envoyé: Mardi 27 Janvier 2015 13:41:57 Objet: Re: [PATCH v2 1/3] usb: phy: generic: migrate to gpi

Re: [PATCH v2 1/3] usb: phy: generic: migrate to gpio_desc

2015-01-27 Thread robert . jarzmik
- Mail original - De: "Fabio Estevam" À: "Robert Jarzmik" Cc: "Felipe Balbi" , "Linus Walleij" , "Philipp Zabel" , "USB list" Envoyé: Mardi 27 Janvier 2015 12:23:43 Objet: Re: [PATCH v2 1/3] usb: phy: generic: migrate to gpio

Re: [PATCH v2 1/3] usb: phy: generic: migrate to gpio_desc

2015-01-27 Thread robert . jarzmik
- Mail original - De: "Fabio Estevam" À: "Robert Jarzmik" Cc: "Felipe Balbi" , "Linus Walleij" , "Philipp Zabel" , "USB list" Envoyé: Mardi 27 Janvier 2015 10:40:35 Objet: Re: [PATCH v2 1/3] usb: phy: generic: migrate to g

Re: [PATCH v2 1/3] usb: phy: generic: migrate to gpio_desc

2015-01-26 Thread Robert Jarzmik
Robert Jarzmik writes: > I'm not convinced of the "so many issues". So far I see the > "gpiod_get_optional()" requirement, which is a one liner patch. Would you try the following patch to see if it fixes all your concerns please ? Chee

Re: [PATCH v2 1/3] usb: phy: generic: migrate to gpio_desc

2015-01-26 Thread Robert Jarzmik
Fabio Estevam writes: > On Sat, Dec 6, 2014 at 7:05 PM, Robert Jarzmik wrote: >> Change internal gpio handling from integer gpios into gpio >> descriptors. This change only addresses the internal API and >> device-tree/ACPI, while the legacy platform data remains i

Re: [PATCH v2] usb: phy: generic: Do not fail when 'reset-gpios' is not used

2015-01-23 Thread Robert Jarzmik
Fabio Estevam writes: > On Fri, Jan 23, 2015 at 2:12 AM, Fabio Estevam wrote: >> Will need to debug more. > > The problem here is that: > > nop->gpiod_reset = devm_gpiod_get(dev, "reset-gpios"); > > Always return -2. > > On imx51-babbage.dts we pass 'reset-gpios' and it used to retrieve it > fin

Re: [PATCH] usb: phy: make GPIOs optional for the generic phy

2015-01-16 Thread Robert Jarzmik
or the generic phy, otherwise > the Altera SOCFPGA platform at least is broken. > > Fixes breakage caused by a combination of e9f2cefb0cd "usb: phy: > generic: migrate to gpio_desc" and 135b3c4304d "usb: dwc2: platform: > add generic PHY framework support". > >

Re: [PATCH v7 3/5] usb: dwc2: add generic PHY framework support for dwc2 usb controler platform driver.

2015-01-13 Thread Robert Jarzmik
Paul Zimmerman writes: > The patch below fixes it. And it seems like the right thing to me, > since GPIOs should be optional for a generic phy, I would think. But > my device tree foo is very weak, so I'm not sure. > > CCing Robert, who touched the generic phy code last. Robert, what do > you thin

Re: [PATCH v2 0/3] usb: phy: generic: device-tree support

2015-01-08 Thread Robert Jarzmik
Felipe Balbi writes: > Hi, Happy new year Felipe, > sorry for the long delay, got caught up with other stuff. It's now in my > testing/next and I'll start testing with the boards I have. Excellent news. Cheers. -- Robert -- To unsubscribe from this list: send the line "unsubscribe linux-usb"

Re: [PATCH v2 0/3] usb: phy: generic: device-tree support

2014-12-14 Thread Robert Jarzmik
Robert Jarzmik writes: > Hi Felipe, > > This is the 2nd opus of this serie. > For patches 1 and 2, all comments have been addressed. > > For patch 3, you had a question about device charging spec and the regulator > timings. I read the specs, saw the 15mn timing you

[PATCH v2 3/3] usb: phy: generic: add vbus support

2014-12-06 Thread Robert Jarzmik
Add support for vbus detection and power supply. This code is more or less stolen from phy-gpio-vbus-usb.c, and aims at providing a detection mechanism for VBus (ie. usb cable plug) based on a GPIO line, and a power supply activation which draws current from the VBus. Signed-off-by: Robert

[PATCH v2 2/3] usb: phy: nop: device tree documentation for vbus

2014-12-06 Thread Robert Jarzmik
Enhance the phy documentation by adding 2 new optional bindings : - the vbus gpio, which detects usb insertion - the vbus regulator, which provides current drawn from the usb cable Signed-off-by: Robert Jarzmik --- Since v1: changed vbus-gpios to vbus-detect-gpio --- Documentation/devicetree

[PATCH v2 0/3] usb: phy: generic: device-tree support

2014-12-06 Thread Robert Jarzmik
r. Cheers. -- Robert Robert Jarzmik (3): usb: phy: generic: migrate to gpio_desc usb: phy: nop: device tree documentation for vbus usb: phy: generic: add vbus support .../devicetree/bindings/usb/usb-nop-xceiv.txt | 8 ++ drivers/usb/phy/phy-generic.c

[PATCH v2 1/3] usb: phy: generic: migrate to gpio_desc

2014-12-06 Thread Robert Jarzmik
the commit message so that this patch gets some testing as I'm pretty sure it's buggy. Signed-off-by: Robert Jarzmik Acked-by: Linus Walleij --- Since v1: added Linus's ack --- drivers/usb/phy/phy-generic.c | 61 ++- drivers/usb/phy/phy

Re: [PATCH v1] usb: phy: generic: migrate to gpio_desc

2014-12-03 Thread Robert Jarzmik
Alexandre Courbot writes: > I think what you want to do is explained in the "Platform Data" > section of Documentation/gpio/board.txt Ah yeah, already one year and I never checked again this documemtation. Thanks. -- Robert -- To unsubscribe from this list: send the line "unsubscribe linux-usb

Re: [PATCH v2 2/3] usb: phy: add lubbock phy driver

2014-11-30 Thread Robert Jarzmik
Dmitry Eremin-Solenikov writes: > Extract lubbock-specific code from pxa25x_udc driver. As a bonus, phy > driver determines connector/VBUS status by reading CPLD register. Also > it uses a work to call into udc stack, instead of pinging vbus session > right from irq handler. This comment is not a

Re: [PATCH v1] usb: phy: generic: migrate to gpio_desc

2014-11-30 Thread Robert Jarzmik
Linus Walleij writes: > This definately make things better so: > Acked-by: Linus Walleij Thanks. > One comment though: > >>> if (dev->of_node) { > (...) >>> + nop->gpiod_reset = devm_gpiod_get(dev, "reset-gpios"); >>> + err = PTR_ERR(nop->gpiod_reset); >>> }

Lubbock interrupts fix (was lubbock udc phy)

2014-11-26 Thread Robert Jarzmik
Dmitry Eremin-Solenikov writes: > 2014-11-27 1:12 GMT+03:00 Robert Jarzmik : >> OK Dmitry, I pulled through, the interrupts are working back. > > What was the problem? Hardware issues? Firmware in CPLD being of old > revision? There were basically 2 problems : - hardware: s

Re: [PATCH V2 3/5] usb: gadget: pxa25x_udc: prepare/unprepare clocks in pxa-ssp

2014-11-26 Thread Robert Jarzmik
OK Dmitry, I pulled through, the interrupts are working back. Actually one of the blockers I have is in pxa25x_udc, and it is also in your phy-lubbock.c. The bottom of the error is that disable_irq() is called from within a irq handler, and it deadlocks. A disable_irq_nosync() should be used ...

Re: [PATCH 2/2] usb: gadget: udc: pxa25x: remove unnecessary NULL check

2014-11-24 Thread Robert Jarzmik
Felipe Balbi writes: > On Mon, Nov 24, 2014 at 10:45:03PM +0100, Robert Jarzmik wrote: >> Felipe Balbi writes: >> >> > @@ -1136,8 +1136,7 @@ static const struct file_operations debug_fops = { >> >} while (0) >> > #define remove_debug_files(dev

Re: [PATCH 2/2] usb: gadget: udc: pxa25x: remove unnecessary NULL check

2014-11-24 Thread Robert Jarzmik
Felipe Balbi writes: > @@ -1136,8 +1136,7 @@ static const struct file_operations debug_fops = { > } while (0) > #define remove_debug_files(dev) \ > do { \ > - if (dev->debugfs_udc) \ > - debugfs_remove(dev->debugfs_udc); \ > + debugfs_remov

Re: [PATCH V2 3/5] usb: gadget: pxa25x_udc: prepare/unprepare clocks in pxa-ssp

2014-11-23 Thread Robert Jarzmik
Dmitry Eremin-Solenikov writes: > 2014-11-22 20:49 GMT+03:00 Robert Jarzmik : > Next point would be (from my POV) to make sure that > lubbock_unmask_irq() is called > and works as expected. Actually the problem is probably within the CPLD. Irrespective of the CPLD register LUB_IRQ_

Re: [PATCH V2 3/5] usb: gadget: pxa25x_udc: prepare/unprepare clocks in pxa-ssp

2014-11-22 Thread Robert Jarzmik
Dmitry Eremin-Solenikov writes: > Hello, > > 2014-11-22 20:18 GMT+03:00 Robert Jarzmik : >> Dmitry Eremin-Solenikov writes: >> >>> 2014-11-22 16:56 GMT+03:00 Robert Jarzmik : >>>> Robert Jarzmik writes: >>>>> Okay, now my ADSL line is re

Re: [PATCH V2 3/5] usb: gadget: pxa25x_udc: prepare/unprepare clocks in pxa-ssp

2014-11-22 Thread Robert Jarzmik
Dmitry Eremin-Solenikov writes: > 2014-11-22 16:56 GMT+03:00 Robert Jarzmik : >> Robert Jarzmik writes: >>> Okay, now my ADSL line is repaired, thank you Mr farmer "I drive a tractor >>> but I >>> don't care about telephone posts", I

Re: [PATCH V2 3/5] usb: gadget: pxa25x_udc: prepare/unprepare clocks in pxa-ssp

2014-11-22 Thread Robert Jarzmik
Robert Jarzmik writes: > Okay, now my ADSL line is repaired, thank you Mr farmer "I drive a tractor > but I > don't care about telephone posts", I'll fetch your changes and make a > test. Let's say I schedule this for saturday. Removed people from the

Re: [PATCH v1] usb: phy: nop: device tree documentation for vbus

2014-11-21 Thread Robert Jarzmik
Felipe Balbi writes: > On Fri, Nov 21, 2014 at 06:17:58PM +0100, Robert Jarzmik wrote: >> Felipe Balbi writes: >> >> > On Sun, Nov 09, 2014 at 02:02:18PM +0100, Robert Jarzmik wrote: >> >> hsusb1_phy { >> >> @@ -26,8 +31,11 @@

Re: [PATCH v1] usb: phy: generic: add vbus support

2014-11-21 Thread Robert Jarzmik
Felipe Balbi writes: > On Sun, Nov 09, 2014 at 03:58:14PM +0100, Robert Jarzmik wrote: >> +if (!enabled) { >> +ret = regulator_enable(vbus_draw); >> +if (ret < 0) >> +retur

Re: [PATCH v1] usb: phy: nop: device tree documentation for vbus

2014-11-21 Thread Robert Jarzmik
Felipe Balbi writes: > On Sun, Nov 09, 2014 at 02:02:18PM +0100, Robert Jarzmik wrote: >> hsusb1_phy { >> @@ -26,8 +31,11 @@ Example: >> clock-names = "main_clk"; >> vcc-supply = <&hsusb1_vcc_regulator>; >>

Re: [PATCH V2 3/5] usb: gadget: pxa25x_udc: prepare/unprepare clocks in pxa-ssp

2014-11-19 Thread Robert Jarzmik
Dmitry Eremin-Solenikov writes: > I have sketched a compile-tested only PHY for the Lubbock platform. Could you > please take a look and test. > git://git.infradead.org/users/dbaryshkov/zaurus.git lubbock Okay, now my ADSL line is repaired, thank you Mr farmer "I drive a tractor but I don't ca

Re: [PATCH V2 3/5] usb: gadget: pxa25x_udc: prepare/unprepare clocks in pxa-ssp

2014-11-17 Thread Robert Jarzmik
Dmitry Eremin-Solenikov writes: > Hello, > OK, I will take a look. It seems the correct way would be to strip this code > away to a phy, like gpio-vbus or nop phys. Do you have access to lubbock > (or maybe Daniel, Haojian or Russell has?)? Actually Russell kindly gave me his, so I do have one fo

Re: [PATCH V2 3/5] usb: gadget: pxa25x_udc: prepare/unprepare clocks in pxa-ssp

2014-11-17 Thread Robert Jarzmik
Dmitry Eremin-Solenikov writes: > Change clk_enable/disable() calls to clk_prepare_enable() and > clk_disable_unprepare(). > > Signed-off-by: Dmitry Eremin-Solenikov > --- > drivers/usb/gadget/udc/pxa25x_udc.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/driv

Re: [PATCH 2/2] usb: gadget: pxa27x_udc: prepare/unprepare clocks in pxa-ssp

2014-11-15 Thread Robert Jarzmik
Dmitry Eremin-Solenikov writes: > Change clk_enable/disable() calls to clk_prepare_enable() and > clk_disable_unrepapre(). No, there are already patches for this in Felipe's next tree : git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git testing/next Cheers. -- Robert -- To unsubscribe

Re: [PATCH 1/2] usb: gadget: pxa25x_udc: prepare/unprepare clocks in pxa-ssp

2014-11-15 Thread Robert Jarzmik
Dmitry Eremin-Solenikov writes: > Change clk_enable/disable() calls to clk_prepare_enable() and > clk_disable_unrepapre(). => clk_disable_unprepare() (typo) Otherwise, good for me, ack. Cheers. -- Robert -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in t

Re: [PATCH v1] usb: phy: generic: add vbus support

2014-11-15 Thread Robert Jarzmik
Robert Jarzmik writes: > Add support for vbus detection and power supply. This code is more or > less stolen from phy-gpio-vbus-usb.c, and aims at providing a detection > mechanism for VBus (ie. usb cable plug) based on a GPIO line, and a > power supply activation which draws curr

[PATCH v1] usb: phy: generic: add vbus support

2014-11-09 Thread Robert Jarzmik
Add support for vbus detection and power supply. This code is more or less stolen from phy-gpio-vbus-usb.c, and aims at providing a detection mechanism for VBus (ie. usb cable plug) based on a GPIO line, and a power supply activation which draws current from the VBus. Signed-off-by: Robert

[PATCH v1] usb: phy: nop: device tree documentation for vbus

2014-11-09 Thread Robert Jarzmik
Enhance the phy documentation by adding 2 new optional bindings : - the vbus gpio, which detects usb insertion - the vbus regulator, which provides current drawn from the usb cable Signed-off-by: Robert Jarzmik --- Documentation/devicetree/bindings/usb/usb-nop-xceiv.txt | 8 1 file

Re: [PATCH v1] usb: phy: generic: migrate to gpio_desc

2014-11-09 Thread Robert Jarzmik
Robert Jarzmik writes: > } else if (pdata) { > type = pdata->type; > clk_rate = pdata->clk_rate; > needs_vcc = pdata->needs_vcc; > - nop->gpio_reset = pdata->gpio_reset; > - } else { >

[PATCH v1] usb: phy: generic: migrate to gpio_desc

2014-11-09 Thread Robert Jarzmik
the commit message so that this patch gets some testing as I'm pretty sure it's buggy. Signed-off-by: Robert Jarzmik --- drivers/usb/phy/phy-generic.c | 58 --- drivers/usb/phy/phy-generic.h | 4 +-- 2 files changed, 18 insertions(+), 44 deletion

Re: [PATCH v1 2/3] usb: phy: convert gpio-vbus to gpio_desc

2014-11-08 Thread Robert Jarzmik
Felipe Balbi writes: > fine by me, as long as their all optional and agreed with devicetree > folks. I think we still have time for v3.19 if you manage to finish this > before next week's end. I will try, no promise I'll succeed in this window. At least I should fire out within the next days the

Re: [PATCH] usb: gadget: udc: pxa27x: fix build warning when !OF

2014-11-06 Thread Robert Jarzmik
Felipe Balbi writes: > On Thu, Nov 06, 2014 at 04:17:48PM -0600, Felipe Balbi wrote: >> I seem to have missed that, let me replace the patches and use yours. > > now done. Thanks. -- Robert -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majo

Re: [PATCH] usb: gadget: udc: pxa27x: fix build warning when !OF

2014-11-06 Thread Robert Jarzmik
udc: fix warning in non device-tree build" sent October the 29th fixing this issue (in [1]) ? Cheers. -- Robert [1] Patch From: Robert Jarzmik Subject: [PATCH v1] usb: gadget: pxa27x_udc: fix warning in non device-tree build To: Felipe Balbi Cc: linux-usb@vger.kernel.org, Robert Jarzmik Da

Re: [PATCH v1 2/3] usb: phy: convert gpio-vbus to gpio_desc

2014-11-05 Thread Robert Jarzmik
Felipe Balbi writes: > On Wed, Nov 05, 2014 at 08:46:58PM +0100, Robert Jarzmik wrote: > Well, let's add that :-) Just make it optional. It's pointless to have > 80% duplicated code just because of 20% missing in phy-generic :-) > > Then we avoid adding gpio-vbus speci

Re: [PATCH v1 2/3] usb: phy: convert gpio-vbus to gpio_desc

2014-11-05 Thread Robert Jarzmik
Felipe Balbi writes: > Hi, > > On Sun, Nov 02, 2014 at 07:11:49PM +0100, Robert Jarzmik wrote: >> In order to prepare device-tree conversion, port gpio_vbus to use >> gpio_desc. >> >> Signed-off-by: Robert Jarzmik > > Can we just convert users of t

  1   2   >