Fixes checkpatch warning:
WARNING: function definition argument 'struct dwc2_hsotg *' should also
have an identifier name
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/debug.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/us
Show the core params and hardware params.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/debugfs.c | 127 +
1 file changed, 127 insertions(+)
diff --git a/drivers/usb/dwc2/debugfs.c b/drivers/usb/dwc2/debugfs.c
Wei Xu <xuw...@hisilicon.com>
Cc: Guodong Xu <guodong...@linaro.org>
Cc: Amit Pundir <amit.pun...@linaro.org>
Cc: Rob Herring <robh...@kernel.org>
Cc: John Youn <johny...@synopsys.com>
Cc: Douglas Anderson <diand...@chromium.org>
Cc: Chen Yu <cheny...@huawei.com
op the usb
speed when low/full-speed are attached, and bump back to high
speed when they are removed.
Cc: Wei Xu <xuw...@hisilicon.com>
Cc: Guodong Xu <guodong...@linaro.org>
Cc: Amit Pundir <amit.pun...@linaro.org>
Cc: Rob Herring <robh...@kernel.org>
Cc: John Youn <johny..
From: Nicholas Mc Guire <hof...@osadl.org>
For boolean variables true/false is preferred over 1/0 for readability.
[johnyoun: minor rebase]
Signed-off-by: Nicholas Mc Guire <hof...@osadl.org>
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/hcd.c | 10
is isn't the best solution, but it seems to work
well for me.
Feedback would be greatly appreciated!
Cc: Wei Xu <xuw...@hisilicon.com>
Cc: Guodong Xu <guodong...@linaro.org>
Cc: Amit Pundir <amit.pun...@linaro.org>
Cc: Rob Herring <robh...@kernel.org>
Cc: John Youn <johny...@syno
Remove debugging prints to show params.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/params.c | 56 ---
1 file changed, 56 deletions(-)
diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c
index 0e7f0f
g/lkml/2017/1/11/377
Fixes: commit 2938fc63e0c2 ("usb: dwc2: Properly account for the force mode
delays")
Signed-off-by: Nicholas Mc Guire <hof...@osadl.org>
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/core.c | 2 +-
1 file changed, 1 insertion(+), 1
Fix lines over 80 characters.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/core.h | 13 +
drivers/usb/dwc2/gadget.c | 14 +-
drivers/usb/dwc2/hcd.c | 4 ++--
drivers/usb/dwc2/hcd_intr.c | 13 +++--
drivers/usb/dwc2/pa
base]
Signed-off-by: Nicholas Mc Guire <hof...@osadl.org>
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/hcd.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c
index de24c3e8f5c7..6d399
Show the value of dr_mode via a debufs file.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/debugfs.c | 29 +
1 file changed, 29 insertions(+)
diff --git a/drivers/usb/dwc2/debugfs.c b/drivers/usb/dwc2/debugfs.c
index 57747b0df595..794b95
Further reduce the set of parameters set by platforms. Many of them are
unnecessary as they should be reported by hardware. They should only
need to be overridden if there is a problem.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/params.c | 11 ---
Group the members by global, host, and gadget params. Formatting and
organizational change only.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/core.h | 51 ++---
1 file changed, 23 insertions(+), 28 deletions(-)
diff
Update the param types to appropriately sized ints and bools.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/core.h | 52 -
1 file changed, 26 insertions(+), 26 deletions(-)
diff --git a/drivers/usb/dwc2/core.h b/drive
Fix the formatting of logical statements to end the line with the
logical operator.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/core_intr.c | 5 ++---
drivers/usb/dwc2/hcd_ddma.c | 8
drivers/usb/dwc2/hcd_queue.c | 5 ++---
3 files changed, 8 insertions(
Remove the platform-specific static param structs and set only those
params that are necessary for each platform.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/params.c | 262 +++---
1 file changed, 108 insertions(+), 154 del
Check that core parameters have valid values and adjust them if they
aren't.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/params.c | 185 ++
1 file changed, 185 insertions(+)
diff --git a/drivers/usb/dwc2/params.c b/d
Check these parameters only for true or false. There is no need to check
for greater or less than 0.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/core.c | 4 +-
drivers/usb/dwc2/core.h | 5 --
drivers/usb/dwc2/core_intr.c | 2 +-
drivers/usb/dwc2/ga
() with kcalloc().
* Concatenate multi-line strings.
* Use the BIT() macro.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/core.c | 22 +-
drivers/usb/dwc2/core.h | 69 ++---
drivers/usb/dwc2/core_intr.c | 6 +-
drivers/usb/dwc2/debug.h | 4 +-
drivers/us
Fix misaligned and over 80-character comments.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/core.h | 19 ++-
drivers/usb/dwc2/gadget.c | 43 +++
drivers/usb/dwc2/hcd.c | 2 +-
drivers/usb/dwc2/hcd_
After setting the default core parameter values, read in the device
properties and modify core parameter values if needed.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/params.c | 35 +++
1 file changed, 35 insertions(+)
diff
The otg_ver parameter only controls the SRP pulsing method and defaults
to the 1.3 behavior. It is unused and can be removed.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/core.c | 5 -
drivers/usb/dwc2/core.h | 9 -
drivers/usb/dwc2/hcd.c
The function returns void so a return is unnecessary.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/hcd_queue.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/usb/dwc2/hcd_queue.c b/drivers/usb/dwc2/hcd_queue.c
index faf45dfbf652..b1fc9fed6ebe
ter
commit.
This allows us to change only those parameters that won't work with
default settings. It also allows us to use non-int parameters.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/core.h | 4 -
drivers/usb/dwc2/params.c | 990 ---
The indent should be only one tab.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/gadget.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c
index 09fadc26023f..559c01e591dc 100644
--- a/d
Take the sizeof '*req' instead of 'struct dwc2_hsotg_req'.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/gadget.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c
index 559c01e591dc..b45752
On 1/17/2017 12:13 AM, Felipe Balbi wrote:
>
> Hi,
>
> Heiner Kallweit writes:
>> Am 16.01.2017 um 15:05 schrieb Felipe Balbi:
>>>
>>> Hi,
>>>
>>> Heiner Kallweit writes:
Set the iomem parameters in the usb_hcd to fix this misleading
message
2_conn_id_status_change+0x130/0x250
>>> [ 86.335254] [] process_one_work+0x118/0x370
>>> [ 86.341035] [] worker_thread+0x48/0x498
>>> [ 86.346473] [] kthread+0xd0/0xe8
>>> [ 86.351299] [] ret_from_fork+0x10/0x50
>>>
>>> This seems to be
0);
> - hsotg->bus_suspended = 0;
> + hsotg->bus_suspended = false;
> spin_unlock_irqrestore(>lock, flags);
> }
>
> @@ -5000,7 +5000,7 @@ int dwc2_hcd_init(struct dwc2_hsotg *hsotg, int irq)
> hsotg->dev->dma_mask == NULL) {
> dev_warn(
000, 4);
> + msleep(20);
> spin_lock_irqsave(>lock, flags);
> }
>
> @@ -3691,7 +3691,7 @@ static int dwc2_hcd_hub_control(struct dwc2_hsotg
> *hsotg, u16 typereq,
> }
>
> /* Clear reset bit in 10ms
rs/usb/dwc2/core.c
> +++ b/drivers/usb/dwc2/core.c
> @@ -455,7 +455,7 @@ void dwc2_clear_force_mode(struct dwc2_hsotg *hsotg)
> dwc2_writel(gusbcfg, hsotg->regs + GUSBCFG);
>
> if (dwc2_iddig_filter_enabled(hsotg))
> - usleep_range(10, 11);
>
peed = NULL;
>
> dev_vdbg(hsotg->dev, "%s, urb %p\n", fn_name, urb);
> dev_vdbg(hsotg->dev, " Device address: %d\n",
>
+Felipe
Acked-by: John Youn <johny...@synopsys.com>
John
--
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
On 1/12/2017 7:41 AM, Amelie DELAUNAY wrote:
> Hi all,
> Sorry, I did not see Pengcheng Li patch which is exactly the same:
>
On 1/11/2017 11:51 PM, Felipe Balbi wrote:
>
> Hi,
>
> Baolin Wang writes:
>>> Baolin Wang writes:
When dwc3 controller acts as host role with attaching slow speed device
(like mouse or keypad). Then if we plugged out the slow speed
On 1/12/2017 12:07 AM, Felipe Balbi wrote:
>
> Hi,
>
> John Youn <john.y...@synopsys.com> writes:
>> On 1/11/2017 4:22 PM, John Stultz wrote:
>>> Just wanted to resend my patches for dwc2 controller on the
>>> HiKey board for consideration for th
exclude my patchset[1] to add extcon support to
> dwc2, which John Youn suspects a pending rework of the dwc2 fifo
> init logic might make unnecssary.
>
> thanks
> -john
>
> [1]
> https://urldefense.proofpoint.com/v2/url?u=https-3A__lkml.org_lkml_2016_12_6_69=Dg
On 1/11/2017 3:10 PM, John Stultz wrote:
> On Wed, Jan 11, 2017 at 2:58 PM, John Youn <john.y...@synopsys.com> wrote:
>> On 1/11/2017 2:39 PM, John Stultz wrote:
>>> On Wed, Jan 11, 2017 at 2:08 PM, John Youn <john.y...@synopsys.com> wrote:
>>>> On 1/3/20
On 1/11/2017 2:39 PM, John Stultz wrote:
> On Wed, Jan 11, 2017 at 2:08 PM, John Youn <john.y...@synopsys.com> wrote:
>> On 1/3/2017 11:52 AM, John Stultz wrote:
>>> Hope everyone had a happy new years!
>>>
>>> I just wanted to send out my curren
xtcon support to dwc2,
> which John Youn suspects a pending rework of the dwc2 fifo init
> logic might make unnecssary.
>
> Any feedback would be greatly appreciated!
>
Hi John,
Do you need these in 4.10-rc or is 4.11 ok?
John
--
To unsubscribe from this list: send the line
On 1/10/2017 3:03 PM, Christian Lamparter wrote:
> On Tuesday, January 10, 2017 1:46:56 PM CET John Youn wrote:
>> On 12/19/2016 6:49 AM, Christian Lamparter wrote:
>>> (Lot's of old stuff, that doesn't matter anymore)
>
> Hello John,
>
>> This should be fi
On 12/19/2016 6:49 AM, Christian Lamparter wrote:
> Hello John, hello Felipe
>
> On Monday, November 28, 2016 7:32:20 PM CET John Youn wrote:
>> On 11/22/2016 12:51 PM, Christian Lamparter wrote:
>>> On Monday, November 21, 2016 7:32:30 PM CET John Youn wrote:
&g
On 1/10/2017 3:24 AM, Sergei Shtylyov wrote:
> On 01/10/2017 05:24 AM, John Youn wrote:
>
>> Update the param types to appropriately sized ints and bools.
>>
>> Signed-off-by: John Youn <johny...@synopsys.com>
>>
Check these parameters only for true or false. There is no need to check
for greater or less than 0.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/core.c | 4 +-
drivers/usb/dwc2/core.h | 5 --
drivers/usb/dwc2/core_intr.c | 2 +-
drivers/usb/dwc2/ga
Show the value of dr_mode via a debufs file.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/debugfs.c | 29 +
1 file changed, 29 insertions(+)
diff --git a/drivers/usb/dwc2/debugfs.c b/drivers/usb/dwc2/debugfs.c
index 57747b0df595..794b95
Remove debugging prints to show params.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/params.c | 56 ---
1 file changed, 56 deletions(-)
diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c
index 0e7f0f
Show the core params and hardware params.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/debugfs.c | 127 +
1 file changed, 127 insertions(+)
diff --git a/drivers/usb/dwc2/debugfs.c b/drivers/usb/dwc2/debugfs.c
Group the members by global, host, and gadget params. Formatting and
organizational change only.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/core.h | 51 ++---
1 file changed, 23 insertions(+), 28 deletions(-)
diff
* Remove braces for one-line statements
* Add missing braces where another arm in if-statement uses braces
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/gadget.c | 10 --
drivers/usb/dwc2/platform.c | 12 ++--
2 files changed, 10 insertions(
Further reduce the set of parameters set by platforms. Many of them are
unnecessary as they should be reported by hardware. They should only
need to be overridden if there is a problem.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/params.c | 11 ---
Remove the platform-specific static param structs and set only those
params that are necessary for each platform.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/params.c | 262 +++---
1 file changed, 108 insertions(+), 154 del
The function returns void so a return is unnecessary.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/hcd_queue.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/usb/dwc2/hcd_queue.c b/drivers/usb/dwc2/hcd_queue.c
index faf45dfbf652..b1fc9fed6ebe
Update the param types to appropriately sized ints and bools.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/core.h | 52 -
1 file changed, 26 insertions(+), 26 deletions(-)
diff --git a/drivers/usb/dwc2/core.h b/drive
The otg_ver parameter only controls the SRP pulsing method and defaults
to the 1.3 behavior. It is unused and can be removed.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/core.c | 5 -
drivers/usb/dwc2/core.h | 9 -
drivers/usb/dwc2/hcd.c
Check that core parameters have valid values and adjust them if they
aren't.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/params.c | 185 ++
1 file changed, 185 insertions(+)
diff --git a/drivers/usb/dwc2/params.c b/d
After setting the default core parameter values, read in the device
properties and modify core parameter values if needed.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/params.c | 35 +++
1 file changed, 35 insertions(+)
diff
ter
commit.
This allows us to change only those parameters that won't work with
default settings. It also allows us to use non-int parameters.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/core.h | 4 -
drivers/usb/dwc2/params.c | 990 ---
Take the sizeof '*req' instead of 'struct dwc2_hsotg_req'.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/gadget.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c
index d3fe990f6539..f2c8ef
Fix lines over 80 characters.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/core.h | 13 +
drivers/usb/dwc2/gadget.c | 14 +-
drivers/usb/dwc2/hcd.c | 4 ++--
drivers/usb/dwc2/hcd_intr.c | 13 +++--
drivers/usb/dwc2/pa
The indent should be only one tab.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/gadget.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c
index 227f27dbadd0..d3fe990f6539 100644
--- a/d
Fix misaligned and over 80-character comments.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/core.h | 19 ++-
drivers/usb/dwc2/gadget.c | 43 +++
drivers/usb/dwc2/hcd.c | 2 +-
drivers/usb/dwc2/hcd_
Fix the formatting of logical statements to end the line with the
logical operator.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/core_intr.c | 5 ++---
drivers/usb/dwc2/hcd_ddma.c | 8
drivers/usb/dwc2/hcd_queue.c | 5 ++---
3 files changed, 8 insertions(
rc.info/?l=linux-usb=148046010906392=2
John Youn (21):
usb: dwc2: Cleanup some checkpatch issues
usb: dwc2: Add identifier in prototypes
usb: dwc2: Fix comment alignment and format
usb: dwc2: Fix logical continuations
usb: dwc2: Fix brace usage
usb: dwc2: Fix lines over 80 characters
usb:
Fixes checkpatch warning:
WARNING: function definition argument 'struct dwc2_hsotg *' should also
have an identifier name
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/debug.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/us
() with kcalloc().
* Concatenate multi-line strings.
* Use the BIT() macro.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/core.c | 22 +-
drivers/usb/dwc2/core.h | 69 ++---
drivers/usb/dwc2/core_intr.c | 6 +-
drivers/usb/dwc2/debug.h | 4 +-
drivers/us
Chen Yu suggested this patch to avoid suspending if we're
in device mode, and it avoids the problem.
Cc: Wei Xu <xuw...@hisilicon.com>
Cc: Guodong Xu <guodong...@linaro.org>
Cc: Amit Pundir <amit.pun...@linaro.org>
Cc: Rob Herring <robh...@kernel.org>
Cc: John Youn <j
t two parameters cannot be passed successfully with wrong data
format. This is found the data transferring broken on 96boards Hikey.
This patch is to change all parameters to u32 type, and verified on
Hikey board the DT parameters can pass successfully.
[johnyoun: minor rebase]
Signed-off-by: Leo Yan
Hi Felipe,
These are a few dwc2 fixes from the list that are missing in your
tree. Can you queue for the next -rc?
Thanks,
John
John Stultz (1):
usb: dwc2: Avoid suspending if we're in gadget mode
Leo Yan (1):
usb: dwc2: use u32 for DT binding parameters
Vardan Mikayelyan (1):
usb:
From: Vardan Mikayelyan <mvar...@synopsys.com>
Remove DMA memory free from EP disable flow by replacing
dma_alloc_coherent with dmam_alloc_coherent.
Cc: John Stultz <john.stu...@linaro.org>
Signed-off-by: Vardan Mikayelyan <mvar...@synopsys.com>
Signed-off-by: John Youn <
On 1/6/2017 1:52 PM, John Stultz wrote:
> On Fri, Jan 6, 2017 at 4:45 AM, Leo Yan wrote:
>> Commit 05ee799f2021 ("usb: dwc2: Move gadget settings into core_params")
>> changes to type u16 for DT binding "g-rx-fifo-size" and
>> "g-np-tx-fifo-size" but use type u32 for
t two parameters cannot be passed successfully with wrong data
format. This is found the data transferring broken on 96boards Hikey.
This patch is to change all parameters to u32 type, and verified on
Hikey board the DT parameters can pass successfully.
[johnyoun: minor rebase]
Signed-off-by: Leo Yan
On 1/6/2017 3:10 PM, John Stultz wrote:
> On Thu, Jan 5, 2017 at 6:01 PM, John Youn <john.y...@synopsys.com> wrote:
>> From: Vardan Mikayelyan <mvar...@synopsys.com>
>>
>> Remove DMA memory free from EP disable flow by replacing
>> dma_alloc_coherent with dma
From: Vardan Mikayelyan <mvar...@synopsys.com>
Remove DMA memory free from EP disable flow by replacing
dma_alloc_coherent with dmam_alloc_coherent.
Cc: John Stultz <john.stu...@linaro.org>
Signed-off-by: Vardan Mikayelyan <mvar...@synopsys.com>
Signed-off-by: John Youn <
On 12/28/2016 5:29 PM, John Youn wrote:
>
>
>> Janusz Dziedzic <janusz.dzied...@gmail.com> writes:
>>>>>> On some platfroms(like x86 platform), when one core is running the
>> USB gadget
>>>>>> irq thread handler by dwc3_thread_interrup
rd for consideration for the 4.11
>> merge window.
>>
>> This does exclude my patchset[1] to add extcon support to dwc2,
>> which John Youn suspects a pending rework of the dwc2 fifo init
>> logic might make unnecssary.
>
> John/Vardan: Just as a heads up, al
> -Original Message-
> From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb-
> ow...@vger.kernel.org] On Behalf Of Felipe Balbi
> Sent: Wednesday, December 28, 2016 8:19 AM
> To: Janusz Dziedzic
> Cc: Lu Baolu ; Baolin Wang
>
> -Original Message-
> From: Felipe Balbi [mailto:ba...@kernel.org]
> Sent: Tuesday, December 27, 2016 3:37 AM
> To: John Youn <john.y...@synopsys.com>; John Youn
> <john.y...@synopsys.com>; linux-usb@vger.kernel.org
> Subject: Re: [PATCH 0/9] usb: dwc2: Fi
> -Original Message-
> From: Felipe Balbi [mailto:ba...@kernel.org]
> Sent: Tuesday, December 27, 2016 3:33 AM
> To: John Youn <john.y...@synopsys.com>; linux-usb@vger.kernel.org
> Cc: John Youn <john.y...@synopsys.com>; Sriram Dash
> <sriram.d..
On 12/7/2016 7:06 PM, John Youn wrote:
> On 12/7/2016 4:44 AM, Felipe Balbi wrote:
>>
>> Hi,
>>
>> Roger Quadros <rog...@ti.com> writes:
>>>>> Roger Quadros <rog...@ti.com> writes:
>>>>>> DCFG.DEVSPD == 0x3 is no
On 12/13/2016 3:23 PM, John Stultz wrote:
> I've found trying to boot Linus' HEAD today on HiKey, I'm hitting the
> following WARNINGS/panics, which I bisected down to being introduced
> with 5f54c54b0ba8 ("Add DDMA chain pointers to dwc2_hsotg_ep
> structure").
>
> It seems the issue is calling
On 12/8/2016 4:25 PM, John Stultz wrote:
> On Thu, Dec 8, 2016 at 4:17 PM, John Youn <john.y...@synopsys.com> wrote:
>> On 12/8/2016 3:12 PM, John Stultz wrote:
>>> Hey John,
>>> In my testing I've come across another issue in the dwc2 driver.
>>>
>
On 12/8/2016 3:12 PM, John Stultz wrote:
> Hey John,
> In my testing I've come across another issue in the dwc2 driver.
>
> Basically when plugging in various cables in different orders, I'm
> occasionally seeing the following BUG splat:
>
> [ 86.215403] BUG: scheduling while atomic:
On 12/8/2016 2:43 PM, John Stultz wrote:
> On Tue, Dec 6, 2016 at 7:52 PM, John Youn <john.y...@synopsys.com> wrote:
>> On 12/6/2016 5:48 PM, John Stultz wrote:
>>> Hey John,
>>> Just wanted to send this by you, as it seems something is
>>> slightly off
On 12/7/2016 4:44 AM, Felipe Balbi wrote:
>
> Hi,
>
> Roger Quadros writes:
Roger Quadros writes:
> DCFG.DEVSPD == 0x3 is not valid and we need to set
> DCFG.DEVSPD to 0x1 for full speed mode.
seems like it has been made invalid somewhere
d host modes?
>
> I suspect this isn't the best solution, but it seems to work
> well for me.
>
The workaround seems fine, but still, this indicates that something
wrong is going on somwhere.
You can add my ack:
Acked-by: John Youn <johny...@synopsys.com>
Regards,
John
> Fe
On 12/6/2016 4:05 PM, John Stultz wrote:
> On Tue, Dec 6, 2016 at 3:17 PM, John Youn <john.y...@synopsys.com> wrote:
>> On 12/6/2016 12:06 AM, John Stultz wrote:
>>> This patch wires up extcon support to the dwc2 driver
>>> so that devices that use a modern gen
com>
> Cc: Guodong Xu <guodong...@linaro.org>
> Cc: Amit Pundir <amit.pun...@linaro.org>
> Cc: Rob Herring <robh...@kernel.org>
> Cc: John Youn <johny...@synopsys.com>
> Cc: Douglas Anderson <diand...@chromium.org>
> Cc: Chen Yu <cheny...@
On 12/6/2016 4:00 AM, Ayaka wrote:
> Hello John
> I still waiting them be merged, but I still can't find it at next-20161206.
>
Can you resubmit this fixing the checkpatch issues?
You can add my ack:
Acked-by: John Youn <johny...@synopsys.com>
Regards,
John
> εΎζη iPad
ev,
> MAX_DMA_DESC_NUM_GENERIC *
> sizeof(struct dwc2_dma_desc),
> - _ep->desc_list_dma, GFP_KERNEL);
> + _ep->desc_list_dma, GFP_ATOMIC);
> if (!hs_ep->desc_list) {
>
ong...@linaro.org>
>>> Cc: Amit Pundir <amit.pun...@linaro.org>
>>> Cc: Rob Herring <robh...@kernel.org>
>>> Cc: John Youn <johny...@synopsys.com>
>>> Cc: Douglas Anderson <diand...@chromium.org>
>>> Cc: Chen Yu <cheny..
On 11/30/2016 4:47 AM, Felipe Balbi wrote:
>
> Hi,
>
> Raviteja Garimella writes:
>> Hi Balbi,
>>
>> On Wed, Nov 30, 2016 at 4:10 PM, Felipe Balbi wrote:
>>>
>>> Hi,
>>>
>>> Raviteja Garimella writes:
Fix misaligned and over 80-character comments.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/core.h | 19 ++-
drivers/usb/dwc2/gadget.c | 43 +++
drivers/usb/dwc2/hcd.c | 2 +-
drivers/usb/dwc2/hcd_
Fix the formatting of logical statements to end the line with the
logical operator.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/core_intr.c | 5 ++---
drivers/usb/dwc2/hcd_ddma.c | 8
drivers/usb/dwc2/hcd_queue.c | 5 ++---
3 files changed, 8 insertions(
The indent should be only one tab.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/gadget.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c
index 4fc115e..01c87e8 100644
--- a/drivers/us
Fix lines over 80 characters.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/core.h | 13 +
drivers/usb/dwc2/gadget.c | 14 +-
drivers/usb/dwc2/hcd.c | 4 ++--
drivers/usb/dwc2/hcd_intr.c | 13 +++--
drivers/usb/dwc2/pa
Fixes checkpatch warning:
WARNING: function definition argument 'struct dwc2_hsotg *' should also
have an identifier name
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/debug.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/us
The function returns void so a return is unnecessary.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/hcd_queue.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/usb/dwc2/hcd_queue.c b/drivers/usb/dwc2/hcd_queue.c
index faf45df..b1fc9fe 100644
--- a/drive
for correctness.
Regards,
John
John Youn (9):
usb: dwc2: Cleanup some checkpatch issues
usb: dwc2: Add identifier in prototypes
usb: dwc2: Fix comment alignment and format
usb: dwc2: Fix logical continuations
usb: dwc2: Fix brace usage
usb: dwc2: Fix lines over 80 characters
usb: dwc2
Take the sizeof '*req' instead of 'struct dwc2_hsotg_req'.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/gadget.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c
index 01c87e8..d867cb5
* Remove braces for one-line statements
* Add missing braces where another arm in if-statement uses braces
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/gadget.c | 10 --
drivers/usb/dwc2/platform.c | 12 ++--
2 files changed, 10 insertions(
() with kcalloc().
* Concatenate multi-line strings.
* Use the BIT() macro.
Signed-off-by: John Youn <johny...@synopsys.com>
---
drivers/usb/dwc2/core.c | 22 +-
drivers/usb/dwc2/core.h | 69 ++---
drivers/usb/dwc2/core_intr.c | 6 +-
drivers/usb/dwc2/debug.h | 4 +-
drivers/us
101 - 200 of 968 matches
Mail list logo