[PATCH 4/4] PCI: rcar-pcie: Fix IO offset for multiple instances

2015-10-02 Thread Phil Edworthy
Signed-off-by: Phil Edworthy --- drivers/pci/host/pcie-rcar.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c index 8e583c2..f4fa6c5 100644 --- a/drivers/pci/host/pcie-rcar.c +++ b/drivers/pci/host/pcie

[PATCH 3/4] PCI: rcar-pcie: Set root bus nr to that provided in DT

2015-10-02 Thread Phil Edworthy
On ARM64, setting the root bus number to -1 causes probe failure. Moreover, we should use the bus number specified in the DT as we could have multiple PCIe controllers with different bus ranges. Signed-off-by: Phil Edworthy --- drivers/pci/host/pcie-rcar.c | 2 +- 1 file changed, 1 insertion

[PATCH 2/4] PCI: rcar-pcie: Remove dependency on ARM-specific struct hw_pci

2015-10-02 Thread Phil Edworthy
is based on commit <499733e0cc1a00523c5056a690f65dea7b9da140> "PCI: generic: Remove dependency on ARM-specific struct hw_pci". Signed-off-by: Phil Edworthy --- drivers/pci/host/pcie-rcar.c | 76 1 file changed, 48 insertions(+), 28 de

[PATCH 0/4] PCI: rcar: Add support for ARM64 and multiple instances

2015-10-02 Thread Phil Edworthy
. Phil Edworthy (4): PCI: rcar-pcie: Make PCI aware of the IO resources PCI: rcar-pcie: Remove dependency on ARM-specific struct hw_pci PCI: rcar-pcie: Set root bus nr to that provided in DT PCI: rcar-pcie: Fix IO offset for multiple instances drivers/pci/host/pcie-rcar.c | 86

[PATCH 1/4] PCI: rcar-pcie: Make PCI aware of the IO resources

2015-10-02 Thread Phil Edworthy
Signed-off-by: Phil Edworthy --- drivers/pci/host/pcie-rcar.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c index 7678fe0..27e2c20 100644 --- a/drivers/pci/host/pcie-rcar.c +++ b/drivers/pci/host/pcie-rcar.c

[PATCH 0/4] PCI: rcar: Add support for ARM64 and multiple instances

2015-10-02 Thread Phil Edworthy
. Phil Edworthy (4): PCI: rcar-pcie: Make PCI aware of the IO resources PCI: rcar-pcie: Remove dependency on ARM-specific struct hw_pci PCI: rcar-pcie: Set root bus nr to that provided in DT PCI: rcar-pcie: Fix IO offset for multiple instances drivers/pci/host/pcie-rcar.c | 86

[PATCH 1/4] PCI: rcar-pcie: Make PCI aware of the IO resources

2015-10-02 Thread Phil Edworthy
Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- drivers/pci/host/pcie-rcar.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c index 7678fe0..27e2c20 100644 --- a/drivers/pci/host/pcie-rcar.c

[PATCH 2/4] PCI: rcar-pcie: Remove dependency on ARM-specific struct hw_pci

2015-10-02 Thread Phil Edworthy
is based on commit <499733e0cc1a00523c5056a690f65dea7b9da140> "PCI: generic: Remove dependency on ARM-specific struct hw_pci". Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- drivers/pci/host/pcie-rcar.c | 76 1 file

[PATCH 3/4] PCI: rcar-pcie: Set root bus nr to that provided in DT

2015-10-02 Thread Phil Edworthy
On ARM64, setting the root bus number to -1 causes probe failure. Moreover, we should use the bus number specified in the DT as we could have multiple PCIe controllers with different bus ranges. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- drivers/pci/host/pcie-rcar.c | 2

[PATCH 4/4] PCI: rcar-pcie: Fix IO offset for multiple instances

2015-10-02 Thread Phil Edworthy
Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- drivers/pci/host/pcie-rcar.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c index 8e583c2..f4fa6c5 100644 --- a/drivers/pci/host/pcie-rcar.c

Re: [PATCH v5 0/6] bcm2835: auxiliar device support for spi

2015-09-10 Thread Phil Elwell
-clock"; clocks = <_core>; #clock-cells = <0>; clock-div = <1>; clock-mult = <2>; }; }; Phil On 10/09/2015 16:57, Martin Sperl wrote: >> On 10.09.2015, at 17:48, Noralf Trønnes wrote: >> >> This looks in

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-09-10 Thread Phil Sutter
r netlink, but if you apply patch 1/3 from this thread, test_rhashtable.c starts generating many insert failures during the multiple thread test. Cheers, Phil -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.ke

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-09-10 Thread Phil Sutter
r netlink, but if you apply patch 1/3 from this thread, test_rhashtable.c starts generating many insert failures during the multiple thread test. Cheers, Phil -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.ke

Re: [PATCH v5 0/6] bcm2835: auxiliar device support for spi

2015-09-10 Thread Phil Elwell
-clock"; clocks = <_core>; #clock-cells = <0>; clock-div = <1>; clock-mult = <2>; }; }; Phil On 10/09/2015 16:57, Martin Sperl wrote: >> On 10.09.2015, at 17:48, Noralf Trønnes <nor...@tronnes.org> wrote: >

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-09-01 Thread Phil Sutter
On Tue, Sep 01, 2015 at 09:50:19PM +0800, Herbert Xu wrote: > On Tue, Sep 01, 2015 at 03:43:11PM +0200, Phil Sutter wrote: > > > > Hmm. Since memory allocation is first tried with GFP_ATOMIC set and upon > > failure retried in background, this seems like a situation which mi

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-09-01 Thread Phil Sutter
On Tue, Sep 01, 2015 at 09:00:57PM +0800, Herbert Xu wrote: > On Tue, Sep 01, 2015 at 02:46:48PM +0200, Phil Sutter wrote: > > > > This is not an inherent behaviour of the implementation but general > > agreement. The insertion may fail non-permanently (returning -EBUSY), &

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-09-01 Thread Phil Sutter
On Tue, Sep 01, 2015 at 07:43:00PM +0800, Herbert Xu wrote: > On Mon, Aug 31, 2015 at 01:00:12PM +0200, Phil Sutter wrote: > > > > The variable would be used to track if the worker has failed to allocate > > memory in background. > > > > Since the failing inse

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-09-01 Thread Phil Sutter
On Tue, Sep 01, 2015 at 07:43:00PM +0800, Herbert Xu wrote: > On Mon, Aug 31, 2015 at 01:00:12PM +0200, Phil Sutter wrote: > > > > The variable would be used to track if the worker has failed to allocate > > memory in background. > > > > Since the failing inse

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-09-01 Thread Phil Sutter
On Tue, Sep 01, 2015 at 09:50:19PM +0800, Herbert Xu wrote: > On Tue, Sep 01, 2015 at 03:43:11PM +0200, Phil Sutter wrote: > > > > Hmm. Since memory allocation is first tried with GFP_ATOMIC set and upon > > failure retried in background, this seems like a situation which mi

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-09-01 Thread Phil Sutter
On Tue, Sep 01, 2015 at 09:00:57PM +0800, Herbert Xu wrote: > On Tue, Sep 01, 2015 at 02:46:48PM +0200, Phil Sutter wrote: > > > > This is not an inherent behaviour of the implementation but general > > agreement. The insertion may fail non-permanently (returning -EBUSY), &

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-08-31 Thread Phil Sutter
On Sun, Aug 30, 2015 at 03:47:17PM +0800, Herbert Xu wrote: > Phil Sutter wrote: > > > > Should we introduce a new field to struct rhashtable to track the > > internal state? This might allow to clean up some rather obscure tests, > > e.g. whether a table resize is i

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-08-31 Thread Phil Sutter
On Sun, Aug 30, 2015 at 03:47:17PM +0800, Herbert Xu wrote: > Phil Sutter <p...@nwl.cc> wrote: > > > > Should we introduce a new field to struct rhashtable to track the > > internal state? This might allow to clean up some rather obscure tests, > > e.g. whet

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-08-29 Thread Phil Sutter
On Sat, Aug 29, 2015 at 12:43:03AM +0200, Thomas Graf wrote: > On 08/28/15 at 03:34pm, Phil Sutter wrote: > > Quite ugly, IMHO: rhashtable_insert_fast() may return -ENOMEM as > > non-permanent error, if allocation in GFP_ATOMIC failed. In this case, > > allocation in

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-08-29 Thread Phil Sutter
On Sat, Aug 29, 2015 at 12:43:03AM +0200, Thomas Graf wrote: On 08/28/15 at 03:34pm, Phil Sutter wrote: Quite ugly, IMHO: rhashtable_insert_fast() may return -ENOMEM as non-permanent error, if allocation in GFP_ATOMIC failed. In this case, allocation in GFP_KERNEL is retried

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-08-28 Thread Phil Sutter
On Fri, Aug 28, 2015 at 01:13:20PM +0200, Phil Sutter wrote: > On Fri, Aug 28, 2015 at 01:09:29PM +0200, Thomas Graf wrote: > > On 08/28/15 at 12:28pm, Phil Sutter wrote: > > > After adding cond_resched() calls to threadfunc(), a surprisingly high > > > rate of insert

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-08-28 Thread Phil Sutter
On Fri, Aug 28, 2015 at 01:09:29PM +0200, Thomas Graf wrote: > On 08/28/15 at 12:28pm, Phil Sutter wrote: > > After adding cond_resched() calls to threadfunc(), a surprisingly high > > rate of insert failures occurred probably due to table resizes getting a > > better chance

[PATCH 3/3] rhashtable-test: calculate max_entries value by default

2015-08-28 Thread Phil Sutter
the exact number of objects upon table init won't suffice as that value is being rounded down to the next power of two - anticipate this by rounding up to the next power of two in beforehand. Signed-off-by: Phil Sutter --- lib/test_rhashtable.c | 8 +--- 1 file changed, 5 insertions(+), 3

[PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-08-28 Thread Phil Sutter
-by: Phil Sutter --- lib/test_rhashtable.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/test_rhashtable.c b/lib/test_rhashtable.c index 63654e3..093cf84 100644 --- a/lib/test_rhashtable.c +++ b/lib/test_rhashtable.c @@ -244,7 +244,7 @@ static int thread_lookup_test

[PATCH 1/3] rhashtable-test: add cond_resched() to thread test

2015-08-28 Thread Phil Sutter
This should fix for soft lockup bugs triggered on slow systems. Signed-off-by: Phil Sutter --- lib/test_rhashtable.c | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/test_rhashtable.c b/lib/test_rhashtable.c index 8c1ad1c..63654e3 100644 --- a/lib/test_rhashtable.c +++ b/lib

[PATCH 1/3] rhashtable-test: add cond_resched() to thread test

2015-08-28 Thread Phil Sutter
This should fix for soft lockup bugs triggered on slow systems. Signed-off-by: Phil Sutter p...@nwl.cc --- lib/test_rhashtable.c | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/test_rhashtable.c b/lib/test_rhashtable.c index 8c1ad1c..63654e3 100644 --- a/lib/test_rhashtable.c +++ b

[PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-08-28 Thread Phil Sutter
-by: Phil Sutter p...@nwl.cc --- lib/test_rhashtable.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/test_rhashtable.c b/lib/test_rhashtable.c index 63654e3..093cf84 100644 --- a/lib/test_rhashtable.c +++ b/lib/test_rhashtable.c @@ -244,7 +244,7 @@ static int

[PATCH 3/3] rhashtable-test: calculate max_entries value by default

2015-08-28 Thread Phil Sutter
the exact number of objects upon table init won't suffice as that value is being rounded down to the next power of two - anticipate this by rounding up to the next power of two in beforehand. Signed-off-by: Phil Sutter p...@nwl.cc --- lib/test_rhashtable.c | 8 +--- 1 file changed, 5 insertions

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-08-28 Thread Phil Sutter
On Fri, Aug 28, 2015 at 01:09:29PM +0200, Thomas Graf wrote: On 08/28/15 at 12:28pm, Phil Sutter wrote: After adding cond_resched() calls to threadfunc(), a surprisingly high rate of insert failures occurred probably due to table resizes getting a better chance to run in background

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-08-28 Thread Phil Sutter
On Fri, Aug 28, 2015 at 01:13:20PM +0200, Phil Sutter wrote: On Fri, Aug 28, 2015 at 01:09:29PM +0200, Thomas Graf wrote: On 08/28/15 at 12:28pm, Phil Sutter wrote: After adding cond_resched() calls to threadfunc(), a surprisingly high rate of insert failures occurred probably due

Re: [rhashtable-test] EIP is at lock_is_held

2015-08-26 Thread Phil Sutter
Hi, (Full-quoting here due to added maling lists.) Looks like this is a problem of slow systems. I will try to reproduce and come up with a similar fix as in commit 685a015 ("rhashtable: Allow other tasks to be scheduled in large lookup loops"). Thanks for reporting, Phil On Mon, Au

Re: [rhashtable-test] EIP is at lock_is_held

2015-08-26 Thread Phil Sutter
Hi, (Full-quoting here due to added maling lists.) Looks like this is a problem of slow systems. I will try to reproduce and come up with a similar fix as in commit 685a015 (rhashtable: Allow other tasks to be scheduled in large lookup loops). Thanks for reporting, Phil On Mon, Aug 24, 2015

RE: [PATCH] PCI: PCI_RCAR_GEN2 and PCI_RCAR_GEN2_PCIE should depend on ARM

2015-08-17 Thread Phil Edworthy
s being modified. Please see http://lists.infradead.org/pipermail/linux-arm-kernel/2015-July/353421.html Of course, as a quick fix for the compile test failure, this is fine. Best regards Phil > > Signed-off-by: Geert Uytterhoeven > --- > drivers/pci/host/Kconfig | 6 -- > 1

RE: [PATCH] PCI: PCI_RCAR_GEN2 and PCI_RCAR_GEN2_PCIE should depend on ARM

2015-08-17 Thread Phil Edworthy
-kernel/2015-July/353421.html Of course, as a quick fix for the compile test failure, this is fine. Best regards Phil Signed-off-by: Geert Uytterhoeven geert+rene...@glider.be --- drivers/pci/host/Kconfig | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/pci

Re: [PATCH] rhashtable-test: extend to test concurrency

2015-08-16 Thread Phil Sutter
On Sun, Aug 16, 2015 at 08:12:35PM +0200, Florian Westphal wrote: > Phil Sutter wrote: > > After having tested insertion, lookup, table walk and removal, spawn a > > number of threads running operations on the same rhashtable. Each of > > them will: > > [..] >

Re: [PATCH] rhashtable-test: extend to test concurrency

2015-08-16 Thread Phil Sutter
On Sun, Aug 16, 2015 at 08:12:35PM +0200, Florian Westphal wrote: Phil Sutter p...@nwl.cc wrote: After having tested insertion, lookup, table walk and removal, spawn a number of threads running operations on the same rhashtable. Each of them will: [..] + if (down_interruptible

[PATCH] rhashtable-test: extend to test concurrency

2015-08-14 Thread Phil Sutter
a second on my local VM with two cores. Running 200 threads took about four seconds. If slow systems suffer too much from this though, the default could be lowered or even set to zero so this extended test does not run at all by default. Signed-off-by: Phil Sutter --- lib/test_rhashtable.c | 155

Re: kthreads: sporadic NULL pointer dereference in exit_creds()

2015-08-14 Thread Phil Sutter
Hi, I found the problem, it was a bug in my own code. For details see below: On Wed, Aug 12, 2015 at 05:09:31PM +0200, Phil Sutter wrote: [...] > Here is the reproducer code (kthread_test.c) I used: > > ---8<--

[PATCH] rhashtable-test: extend to test concurrency

2015-08-14 Thread Phil Sutter
a second on my local VM with two cores. Running 200 threads took about four seconds. If slow systems suffer too much from this though, the default could be lowered or even set to zero so this extended test does not run at all by default. Signed-off-by: Phil Sutter p...@nwl.cc --- lib

Re: kthreads: sporadic NULL pointer dereference in exit_creds()

2015-08-14 Thread Phil Sutter
Hi, I found the problem, it was a bug in my own code. For details see below: On Wed, Aug 12, 2015 at 05:09:31PM +0200, Phil Sutter wrote: [...] Here is the reproducer code (kthread_test.c) I used: ---8--- #include linux

kthreads: sporadic NULL pointer dereference in exit_creds()

2015-08-12 Thread Phil Sutter
top failed for thread %d: %d\n", __func__, i, err); } kfree(tsk); printk(KERN_INFO "%s: test run ended\n", __func__); return 0; } static void __exit exit_kthread_test(void) { } module_init(init_kthread_test); module_exit(exit_kthread_test); MODULE_LI

kthreads: sporadic NULL pointer dereference in exit_creds()

2015-08-12 Thread Phil Sutter
); return 0; } static void __exit exit_kthread_test(void) { } module_init(init_kthread_test); module_exit(exit_kthread_test); MODULE_LICENSE(GPL); ---8--- Cheers, Phil -- To unsubscribe from this list: send the line unsubscribe linux

Re: 4.1 regression in resizable hashtable tests

2015-07-17 Thread Phil Sutter
On Fri, Jul 17, 2015 at 12:26:36PM +0200, Phil Sutter wrote: > On Fri, Jul 17, 2015 at 10:04:56AM +0200, Thomas Graf wrote: > > On 07/02/15 at 10:09pm, Meelis Roos wrote: > > > [ 33.425061] Running rhashtable test nelem=8, max_size=65536, > > > shrinking=0 &

Re: 4.1 regression in resizable hashtable tests

2015-07-17 Thread Phil Sutter
34.896936] Traversal complete: counted=49993, nelems=5, > > entries=5, table-jumps=12 > > [ 34.897056] Test failed: Total count mismatch ^^^ > > I do see count mismatches as well due to the design of the walker > which restarts and thus sees certain entries

Re: 4.1 regression in resizable hashtable tests

2015-07-17 Thread Phil Sutter
mismatch ^^^ I do see count mismatches as well due to the design of the walker which restarts and thus sees certain entries multiple times. Do you have this commit as well? Author: Phil Sutter p...@nwl.cc Date: Mon Jul 6 15:51:20 2015 +0200 rhashtable: fix for resize events during

Re: 4.1 regression in resizable hashtable tests

2015-07-17 Thread Phil Sutter
On Fri, Jul 17, 2015 at 12:26:36PM +0200, Phil Sutter wrote: On Fri, Jul 17, 2015 at 10:04:56AM +0200, Thomas Graf wrote: On 07/02/15 at 10:09pm, Meelis Roos wrote: [ 33.425061] Running rhashtable test nelem=8, max_size=65536, shrinking=0 [ 33.425154] Test 00: [ 33.534470

RE: [PATCH v3] phy: rcar-gen2 usb: Add Host/Function switching for USB0

2015-07-13 Thread Phil Edworthy
Hi Sergei, On 13 July 2015 18:10, Sergei wrote: > On 07/13/2015 07:55 PM, Phil Edworthy wrote: > > >>>>>>> Instead of statically selecting the PHY connection to either the > >>>>>>> USBHS (Function) or PCI0 (Host) IP blocks, this change allow

RE: [PATCH v3] phy: rcar-gen2 usb: Add Host/Function switching for USB0

2015-07-13 Thread Phil Edworthy
Hi Sergei, On 13 July 2015 17:37, Sergei wrote: > On 07/13/2015 06:02 PM, Phil Edworthy wrote: > > >>>>> Instead of statically selecting the PHY connection to either the > >>>>> USBHS (Function) or PCI0 (Host) IP blocks, this change allows the >

RE: [PATCH v6] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS

2015-07-13 Thread Phil Edworthy
Hi Laurent, On 13 July 2015 16:51, Laurent wrote: > Hi Phil, > > Thank you for the patch. > > On Monday 13 July 2015 16:30:18 Phil Edworthy wrote: > > These changes allow a PHY driver to trigger a VBUS interrupt and > > to provide the value of VBUS. > > > &g

[PATCH v6] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS

2015-07-13 Thread Phil Edworthy
These changes allow a PHY driver to trigger a VBUS interrupt and to provide the value of VBUS. Signed-off-by: Phil Edworthy --- v6: - Rename vbus_indirect_value to vbus_active v5: - Avoid race when vbus_is_indirect may or may not be read before the phy has called vbus_session. In doing

RE: [PATCH v5] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS

2015-07-13 Thread Phil Edworthy
Hi Laurent, On 09 July 2015 02:03, Laurent wrote: > Hi Phil, > > On Wednesday 08 July 2015 08:08:27 Phil Edworthy wrote: > > On 08 July 2015 00:08, Laurent wrote: > > > On Tuesday 07 July 2015 12:52:43 Phil Edworthy wrote: > > > > These changes allow a PH

RE: [PATCH v3] phy: rcar-gen2 usb: Add Host/Function switching for USB0

2015-07-13 Thread Phil Edworthy
Hi Sergei, On 13 July 2015 11:17, Sergei wrote: > Hello. > > On 7/13/2015 12:04 PM, Phil Edworthy wrote: > > >>> Instead of statically selecting the PHY connection to either the > >>> USBHS (Function) or PCI0 (Host) IP blocks, this change allows the > >

RE: [PATCH v3] phy: rcar-gen2 usb: Add Host/Function switching for USB0

2015-07-13 Thread Phil Edworthy
Hi Sergei, On 10 July 2015 17:36, Sergei wrote: > Hello. > > On 07/07/2015 02:55 PM, Phil Edworthy wrote: > > > Instead of statically selecting the PHY connection to either the > > USBHS (Function) or PCI0 (Host) IP blocks, this change allows the > > dts to s

RE: [PATCH v3] phy: rcar-gen2 usb: Add Host/Function switching for USB0

2015-07-13 Thread Phil Edworthy
Hi Sergei, On 10 July 2015 17:36, Sergei wrote: Hello. On 07/07/2015 02:55 PM, Phil Edworthy wrote: Instead of statically selecting the PHY connection to either the USBHS (Function) or PCI0 (Host) IP blocks, this change allows the dts to specifiy gpio pins for the vbus and id signals

RE: [PATCH v3] phy: rcar-gen2 usb: Add Host/Function switching for USB0

2015-07-13 Thread Phil Edworthy
Hi Sergei, On 13 July 2015 11:17, Sergei wrote: Hello. On 7/13/2015 12:04 PM, Phil Edworthy wrote: Instead of statically selecting the PHY connection to either the USBHS (Function) or PCI0 (Host) IP blocks, this change allows the dts to specifiy gpio pins for the vbus and id signals

RE: [PATCH v3] phy: rcar-gen2 usb: Add Host/Function switching for USB0

2015-07-13 Thread Phil Edworthy
Hi Sergei, On 13 July 2015 18:10, Sergei wrote: On 07/13/2015 07:55 PM, Phil Edworthy wrote: Instead of statically selecting the PHY connection to either the USBHS (Function) or PCI0 (Host) IP blocks, this change allows the dts to specifiy gpio pins for the vbus and id signals

[PATCH v6] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS

2015-07-13 Thread Phil Edworthy
These changes allow a PHY driver to trigger a VBUS interrupt and to provide the value of VBUS. Signed-off-by: Phil Edworthy phil.edwor...@renesas.com --- v6: - Rename vbus_indirect_value to vbus_active v5: - Avoid race when vbus_is_indirect may or may not be read before the phy has

RE: [PATCH v6] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS

2015-07-13 Thread Phil Edworthy
Hi Laurent, On 13 July 2015 16:51, Laurent wrote: Hi Phil, Thank you for the patch. On Monday 13 July 2015 16:30:18 Phil Edworthy wrote: These changes allow a PHY driver to trigger a VBUS interrupt and to provide the value of VBUS. Signed-off-by: Phil Edworthy phil.edwor

RE: [PATCH v5] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS

2015-07-13 Thread Phil Edworthy
Hi Laurent, On 09 July 2015 02:03, Laurent wrote: Hi Phil, On Wednesday 08 July 2015 08:08:27 Phil Edworthy wrote: On 08 July 2015 00:08, Laurent wrote: On Tuesday 07 July 2015 12:52:43 Phil Edworthy wrote: These changes allow a PHY driver to trigger a VBUS interrupt

RE: [PATCH v3] phy: rcar-gen2 usb: Add Host/Function switching for USB0

2015-07-13 Thread Phil Edworthy
Hi Sergei, On 13 July 2015 17:37, Sergei wrote: On 07/13/2015 06:02 PM, Phil Edworthy wrote: Instead of statically selecting the PHY connection to either the USBHS (Function) or PCI0 (Host) IP blocks, this change allows the dts to specifiy gpio pins for the vbus and id signals

RE: [PATCH v5] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS

2015-07-08 Thread Phil Edworthy
Hi Laurent, On 08 July 2015 00:08, Laurent wrote: > Hi Phil, > > Thank you for the patch. > > On Tuesday 07 July 2015 12:52:43 Phil Edworthy wrote: > > These changes allow a PHY driver to trigger a VBUS interrupt and > > to provide the value of VBUS. > >

RE: [PATCH v5] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS

2015-07-08 Thread Phil Edworthy
Hi Laurent, On 08 July 2015 00:08, Laurent wrote: Hi Phil, Thank you for the patch. On Tuesday 07 July 2015 12:52:43 Phil Edworthy wrote: These changes allow a PHY driver to trigger a VBUS interrupt and to provide the value of VBUS. Signed-off-by: Phil Edworthy phil.edwor

[PATCH v4] ARM: shmobile: koelsch: make USB0 perform Host/Function switching

2015-07-07 Thread Phil Edworthy
Both USB Host (pci0) and Function (USBHS) drivers are enabled. The USB PHY driver determines which IP block should be connected based on vbus and id signals read via gpios. Note that switch SW5 and SW6 on Koelsch board needs to be set to position 3 for this to work. Signed-off-by: Phil Edworthy

[PATCH v3] phy: rcar-gen2 usb: Add Host/Function switching for USB0

2015-07-07 Thread Phil Edworthy
. Note: the R-Car USB PHY only allows this Host/Function switching on channel 0. This has been tested on a r8a7791 based Koelsch board, which uses a MAX3355 device to supply vbus power when needed. Signed-off-by: Phil Edworthy --- v3: - Do not call usb_gadget_vbus_disconnect will a NULL ptr

[PATCH v5] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS

2015-07-07 Thread Phil Edworthy
These changes allow a PHY driver to trigger a VBUS interrupt and to provide the value of VBUS. Signed-off-by: Phil Edworthy --- v5: - Avoid race when vbus_is_indirect may or may not be read before the phy has called vbus_session. In doing so, the changes have also been isolated

RE: [PATCH v3] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS

2015-07-07 Thread Phil Edworthy
Hi Laurent, On 06 July 2015 09:20, Laurent wrote: > Hi Phil, > > Thank you for the patch. Thanks for your review! > On Thursday 02 July 2015 11:26:33 Phil Edworthy wrote: > > These changes allow a PHY driver to trigger a VBUS interrupt and > > to provide the value of

RE: [PATCH v3] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS

2015-07-07 Thread Phil Edworthy
Hi Shimoda-san, On 06 July 2015 08:28, Shimoda-san wrote: > Hi Phil-san, > > > Sent: Thursday, July 02, 2015 7:27 PM > > > > These changes allow a PHY driver to trigger a VBUS interrupt and > > to provide the value of VBUS. > > > > Signed-off-by: P

RE: [PATCH v2] phy: rcar-gen2 usb: Add Host/Function switching for USB0

2015-07-07 Thread Phil Edworthy
Hi Shimoda-san, On 06 July 2015 08:18, Shimoda-san wrote: > Hi Phil-san, > > Thank you very much for the patch! > > > Sent: Thursday, July 02, 2015 5:06 PM > < snip > > > +/* VBUS change IRQ handler */ > > +static irqreturn_t gpio_vbus_irq(int

RE: [PATCH v3] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS

2015-07-07 Thread Phil Edworthy
Hi Laurent, On 06 July 2015 09:20, Laurent wrote: Hi Phil, Thank you for the patch. Thanks for your review! On Thursday 02 July 2015 11:26:33 Phil Edworthy wrote: These changes allow a PHY driver to trigger a VBUS interrupt and to provide the value of VBUS. Signed-off-by: Phil

RE: [PATCH v3] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS

2015-07-07 Thread Phil Edworthy
Hi Shimoda-san, On 06 July 2015 08:28, Shimoda-san wrote: Hi Phil-san, Sent: Thursday, July 02, 2015 7:27 PM These changes allow a PHY driver to trigger a VBUS interrupt and to provide the value of VBUS. Signed-off-by: Phil Edworthy phil.edwor...@renesas.com Thank you

RE: [PATCH v2] phy: rcar-gen2 usb: Add Host/Function switching for USB0

2015-07-07 Thread Phil Edworthy
Hi Shimoda-san, On 06 July 2015 08:18, Shimoda-san wrote: Hi Phil-san, Thank you very much for the patch! Sent: Thursday, July 02, 2015 5:06 PM snip +/* VBUS change IRQ handler */ +static irqreturn_t gpio_vbus_irq(int irq, void *data) +{ + struct rcar_gen2_channel *channel

[PATCH v3] phy: rcar-gen2 usb: Add Host/Function switching for USB0

2015-07-07 Thread Phil Edworthy
. Note: the R-Car USB PHY only allows this Host/Function switching on channel 0. This has been tested on a r8a7791 based Koelsch board, which uses a MAX3355 device to supply vbus power when needed. Signed-off-by: Phil Edworthy phil.edwor...@renesas.com --- v3: - Do not call

[PATCH v4] ARM: shmobile: koelsch: make USB0 perform Host/Function switching

2015-07-07 Thread Phil Edworthy
Both USB Host (pci0) and Function (USBHS) drivers are enabled. The USB PHY driver determines which IP block should be connected based on vbus and id signals read via gpios. Note that switch SW5 and SW6 on Koelsch board needs to be set to position 3 for this to work. Signed-off-by: Phil Edworthy

[PATCH v5] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS

2015-07-07 Thread Phil Edworthy
These changes allow a PHY driver to trigger a VBUS interrupt and to provide the value of VBUS. Signed-off-by: Phil Edworthy phil.edwor...@renesas.com --- v5: - Avoid race when vbus_is_indirect may or may not be read before the phy has called vbus_session. In doing so, the changes have

Re: [PATCH] rhashtable: fix for resize events during table walk

2015-07-06 Thread Phil Sutter
On Mon, Jul 06, 2015 at 09:30:40PM +0800, Herbert Xu wrote: > On Mon, Jul 06, 2015 at 02:01:42PM +0200, Phil Sutter wrote: > > diff --git a/lib/rhashtable.c b/lib/rhashtable.c > > index a60a6d3..e36b94b 100644 > > --- a/lib/rhashtable.c > > +++ b/lib/rhashtable.c &

[PATCH v2] rhashtable: fix for resize events during table walk

2015-07-06 Thread Phil Sutter
) although not explicitly tested. Fixes: eddee5ba ("rhashtable: Fix walker behaviour during rehash") Signed-off-by: Phil Sutter --- Changes since v1: - Use simplified solution suggested by Herbert Xu. --- lib/rhashtable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH] rhashtable: fix for resize events during table walk

2015-07-06 Thread Phil Sutter
) although not explicitly tested. Fixes: eddee5ba ("rhashtable: Fix walker behaviour during rehash") Signed-off-by: Phil Sutter --- lib/rhashtable.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/rhashtable.c b/lib/rhashtable.c index a60a6d3..e36b94b 100644 --

[PATCH] rhashtable: fix for resize events during table walk

2015-07-06 Thread Phil Sutter
not explicitly tested. Fixes: eddee5ba (rhashtable: Fix walker behaviour during rehash) Signed-off-by: Phil Sutter p...@nwl.cc --- lib/rhashtable.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/rhashtable.c b/lib/rhashtable.c index a60a6d3..e36b94b 100644 --- a/lib

[PATCH v2] rhashtable: fix for resize events during table walk

2015-07-06 Thread Phil Sutter
not explicitly tested. Fixes: eddee5ba (rhashtable: Fix walker behaviour during rehash) Signed-off-by: Phil Sutter p...@nwl.cc --- Changes since v1: - Use simplified solution suggested by Herbert Xu. --- lib/rhashtable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib

Re: [PATCH] rhashtable: fix for resize events during table walk

2015-07-06 Thread Phil Sutter
On Mon, Jul 06, 2015 at 09:30:40PM +0800, Herbert Xu wrote: On Mon, Jul 06, 2015 at 02:01:42PM +0200, Phil Sutter wrote: diff --git a/lib/rhashtable.c b/lib/rhashtable.c index a60a6d3..e36b94b 100644 --- a/lib/rhashtable.c +++ b/lib/rhashtable.c @@ -585,6 +585,7 @@ void

RE: [PATCH 2/3] phy: rcar-gen2 usb: Add Host/Function switching for USB0

2015-07-02 Thread Phil Edworthy
Hi Kishon, On 02 July 2015 09:22, Kishon wrote: > Hi, > > On Monday 22 June 2015 08:12 PM, Phil Edworthy wrote: > > Instead of statically selecting the PHY connection to either the > > USBHS (Function) or PCI0 (Host) IP blocks, this change allows the > > dts to spec

RE: [PATCH v2] arm: koelsch: make USB0 perform Host/Function switching

2015-07-02 Thread Phil Edworthy
Hi Sergei. On 02 July 2015 12:32, Sergei wrote: > Hello. > > On 7/2/2015 11:14 AM, Phil Edworthy wrote: > > > Both USB Host (pci0) and Function (USBHS) drivers are enabled. > > The USB PHY driver determines which IP block should be connected > > based on vbus

RE: [PATCH v2] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS

2015-07-02 Thread Phil Edworthy
Hi Sergei, On 02 July 2015 12:17, Sergei wrote: > To: Phil Edworthy; Yoshihiro Shimoda > Hello. > > On 7/2/2015 10:36 AM, Phil Edworthy wrote: > > > These changes allow a PHY driver to trigger a VBUS interrupt and > > to provide the value of VBUS. > &g

[PATCH v3] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS

2015-07-02 Thread Phil Edworthy
These changes allow a PHY driver to trigger a VBUS interrupt and to provide the value of VBUS. Signed-off-by: Phil Edworthy --- v3: - Changed how indirect vbus is plumbed in. - Removed unnecessary (void) on call to otg_set_peripheral. - Moved code that connects to bus through transceiver

RE: [PATCH v2] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS

2015-07-02 Thread Phil Edworthy
Hi Laurent, On 02 July 2015 09:15, Laurent wrote: > Hi Phil, > > (CC'ing Morimoto-san) > > Thank you for the patch. > > On Thursday 02 July 2015 08:36:42 Phil Edworthy wrote: > > These changes allow a PHY driver to trigger a VBUS interrupt and > > to provide

[PATCH v2] arm: koelsch: make USB0 perform Host/Function switching

2015-07-02 Thread Phil Edworthy
Both USB Host (pci0) and Function (USBHS) drivers are enabled. The USB PHY driver determines which IP block should be connected based on vbus and id signals read via gpios. Note that switch SW5 and SW6 on Koelsch board needs to be set to position 3 for this to work. --- Not for upstream until

[PATCH v2] phy: rcar-gen2 usb: Add Host/Function switching for USB0

2015-07-02 Thread Phil Edworthy
. Note: the R-Car USB PHY only allows this Host/Function switching on channel 0. This has been tested on a r8a7791 based Koelsch board, which uses a MAX3355 device to supply vbus power when needed. Signed-off-by: Phil Edworthy --- Tested with patch "usb: renesas_usbhs: Allow an OTG PHY d

[PATCH v2] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS

2015-07-02 Thread Phil Edworthy
These changes allow a PHY driver to trigger a VBUS interrupt and to provide the value of VBUS. Signed-off-by: Phil Edworthy --- v2: - vbus variables changed from int to bool. - dev_info() changed to dev_err() --- drivers/usb/renesas_usbhs/common.h | 2 ++ drivers/usb/renesas_usbhs

[PATCH v2] phy: rcar-gen2 usb: Add Host/Function switching for USB0

2015-07-02 Thread Phil Edworthy
. Note: the R-Car USB PHY only allows this Host/Function switching on channel 0. This has been tested on a r8a7791 based Koelsch board, which uses a MAX3355 device to supply vbus power when needed. Signed-off-by: Phil Edworthy phil.edwor...@renesas.com --- Tested with patch usb: renesas_usbhs: Allow

[PATCH v2] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS

2015-07-02 Thread Phil Edworthy
These changes allow a PHY driver to trigger a VBUS interrupt and to provide the value of VBUS. Signed-off-by: Phil Edworthy phil.edwor...@renesas.com --- v2: - vbus variables changed from int to bool. - dev_info() changed to dev_err() --- drivers/usb/renesas_usbhs/common.h | 2

[PATCH v2] arm: koelsch: make USB0 perform Host/Function switching

2015-07-02 Thread Phil Edworthy
Both USB Host (pci0) and Function (USBHS) drivers are enabled. The USB PHY driver determines which IP block should be connected based on vbus and id signals read via gpios. Note that switch SW5 and SW6 on Koelsch board needs to be set to position 3 for this to work. --- Not for upstream until

RE: [PATCH v2] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS

2015-07-02 Thread Phil Edworthy
Hi Laurent, On 02 July 2015 09:15, Laurent wrote: Hi Phil, (CC'ing Morimoto-san) Thank you for the patch. On Thursday 02 July 2015 08:36:42 Phil Edworthy wrote: These changes allow a PHY driver to trigger a VBUS interrupt and to provide the value of VBUS. Signed-off-by: Phil

[PATCH v3] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS

2015-07-02 Thread Phil Edworthy
These changes allow a PHY driver to trigger a VBUS interrupt and to provide the value of VBUS. Signed-off-by: Phil Edworthy phil.edwor...@renesas.com --- v3: - Changed how indirect vbus is plumbed in. - Removed unnecessary (void) on call to otg_set_peripheral. - Moved code that connects

RE: [PATCH v2] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS

2015-07-02 Thread Phil Edworthy
Hi Sergei, On 02 July 2015 12:17, Sergei wrote: To: Phil Edworthy; Yoshihiro Shimoda Hello. On 7/2/2015 10:36 AM, Phil Edworthy wrote: These changes allow a PHY driver to trigger a VBUS interrupt and to provide the value of VBUS. Signed-off-by: Phil Edworthy phil.edwor

RE: [PATCH v2] arm: koelsch: make USB0 perform Host/Function switching

2015-07-02 Thread Phil Edworthy
Hi Sergei. On 02 July 2015 12:32, Sergei wrote: Hello. On 7/2/2015 11:14 AM, Phil Edworthy wrote: Both USB Host (pci0) and Function (USBHS) drivers are enabled. The USB PHY driver determines which IP block should be connected based on vbus and id signals read via gpios. Note

RE: [PATCH 2/3] phy: rcar-gen2 usb: Add Host/Function switching for USB0

2015-07-02 Thread Phil Edworthy
Hi Kishon, On 02 July 2015 09:22, Kishon wrote: Hi, On Monday 22 June 2015 08:12 PM, Phil Edworthy wrote: Instead of statically selecting the PHY connection to either the USBHS (Function) or PCI0 (Host) IP blocks, this change allows the dts to specifiy gpio pins for the vbus and id

<    5   6   7   8   9   10   11   12   13   >