Re: [PATCH v3 03/15] phy: renesas: rcar-gen3-usb2: detect usb_x1 clock

2019-05-15 Thread Kuninori Morimoto
Hi > @@ -110,6 +115,7 @@ struct rcar_gen3_chan { > bool extcon_host; > bool is_otg_channel; > bool uses_otg_pins; > + bool uses_usb_x1; > }; It seems we can start to think about bit-field around here ? Thank you for your help !! Best regards --- Kuninori Morimoto

Re: [PATCH v3 11/15] usb: renesas_usbhs: Add support for RZ/A2

2019-05-15 Thread Kuninori Morimoto
t; + return 0; > +} phy_put() will do nothing if priv->phy was NULL. We can remove if() here ? Thank you for your help !! Best regards --- Kuninori Morimoto

[PATCH resend] usb: ehci-sh: convert to SPDX identifiers

2018-09-06 Thread Kuninori Morimoto
From: Kuninori Morimoto This patch updates license to use SPDX-License-Identifier instead of verbose license text. Signed-off-by: Kuninori Morimoto --- - 2weeks passed. resend this patch again include/linux/platform_data/ehci-sh.h | 16 ++-- 1 file changed, 2 insertions(+), 14

Re: [PATCH v3 3/3] usb: renesas_usbhs: Add multiple clocks management

2018-09-05 Thread Kuninori Morimoto
return; (snip) > + /* disable clks if exist */ > + if (priv->num_clks) > + clk_bulk_disable_unprepare(priv->num_clks, priv->clks); I think clk_bulk_xxx() will do nothing if priv->num_clks was 0. priv->num_clks check is not neede, I think. Best regards --- Kuninori Morimoto

[PATCH v2] usb: ehci-sh: convert to SPDX identifiers

2018-08-05 Thread Kuninori Morimoto
From: Kuninori Morimoto This patch updates license to use SPDX-License-Identifier instead of verbose license text. Signed-off-by: Kuninori Morimoto --- v1 -> v2 - add changlog include/linux/platform_data/ehci-sh.h | 16 ++-- 1 file changed, 2 insertions(+), 14 deleti

Re: [PATCH] usb: ehci-sh: convert to SPDX identifiers

2018-08-02 Thread Kuninori Morimoto
Hi Greg > > From: Kuninori Morimoto > > > > Signed-off-by: Kuninori Morimoto > > --- > > include/linux/platform_data/ehci-sh.h | 14 +- > > 1 file changed, 1 insertion(+), 13 deletions(-) > > I can not take patches without any chang

[PATCH] usb: ehci-sh: convert to SPDX identifiers

2018-08-01 Thread Kuninori Morimoto
From: Kuninori Morimoto Signed-off-by: Kuninori Morimoto --- include/linux/platform_data/ehci-sh.h | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/include/linux/platform_data/ehci-sh.h b/include/linux/platform_data/ehci-sh.h index 5c15a73..d8397df 100644

[PATCH] usb: renesas_usbhs: Kconfig: convert to SPDX identifiers

2018-07-30 Thread Kuninori Morimoto
From: Kuninori Morimoto By default all files without license information are under the default license of the kernel, which is GPL version 2. Signed-off-by: Kuninori Morimoto --- drivers/usb/renesas_usbhs/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/renesas_usbhs

[PATCH] renesas_usbhs: use renesas_usbhs_get_info()

2017-11-07 Thread Kuninori Morimoto
From: Kuninori Morimoto We already have renesas_usbhs_get_info() macro. Let's use it. Signed-off-by: Kuninori Morimoto --- Shimoda-san can you please check this patch ? drivers/usb/renesas_usbhs/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver

Re: [PATCH v3 0/3] usb: renesas_usbhs: More compat strings

2015-12-10 Thread Kuninori Morimoto
ommon.c | 9 + > 2 files changed, 24 insertions(+), 5 deletions(-) For all patches Acked-by: Kuninori Morimoto -- 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 v2 1/2] usb: renesas_usbhs: add fallback compatibility strings

2015-12-09 Thread Kuninori Morimoto
Hi Simon Thank you for your patch > Add fallback compatibility strings for R-Car Gen2 and Gen3. > This is in keeping with the fallback scheme being adopted wherever > appropriate for drivers for Renesas SoCs. > > Also add SoC names. > > Signed-off-by: Simon Horman > --- (snip) > Required pro

Re: [PATCH 1/2] usb: renesas_usbhs: add fallback compatibility string

2015-12-08 Thread Kuninori Morimoto
Hi Simon > > > (As Sergei noted elsewhere, "renesas,rcar-usbhs" is consistent > > > with what I documented elsewhere in the patch) > > > > "renesas,rcar-usbhs" is better, > > but I guess you want to have "renesas,rcar-gen2-usbhs" ? > > > > My understanding is these > > > > * renesas,usbhs-r8

Re: [PATCH 1/2] usb: renesas_usbhs: add fallback compatibility string

2015-12-08 Thread Kuninori Morimoto
Hi Simon > (As Sergei noted elsewhere, "renesas,rcar-usbhs" is consistent > with what I documented elsewhere in the patch) "renesas,rcar-usbhs" is better, but I guess you want to have "renesas,rcar-gen2-usbhs" ? My understanding is these * renesas,usbhs-r8a77xx# SoC specific * renes

Re: [PATCH 1/2] usb: renesas_usbhs: add fallback compatibility string

2015-12-08 Thread Kuninori Morimoto
Hi Simon > > > Add fallback compatibility string. > > > This is in keeping with the fallback scheme being adopted wherever > > > appropriate for drivers for Renesas SoCs. > > > > > > Signed-off-by: Simon Horman > > > --- > > (snip) > > > + { > > > + .compatible = "renesas,usbhs", > > >

Re: [PATCH 1/2] usb: renesas_usbhs: add fallback compatibility string

2015-12-07 Thread Kuninori Morimoto
Hi Simon > Add fallback compatibility string. > This is in keeping with the fallback scheme being adopted wherever > appropriate for drivers for Renesas SoCs. > > Signed-off-by: Simon Horman > --- (snip) > + { > + .compatible = "renesas,usbhs", > + .data = (void *)US

Re: [PATCH] usb: renesas_usbhs: Add support for R-Car H3

2015-09-18 Thread Kuninori Morimoto
Hi Shimoda-san > This patch adds a compatible string to support for R-Car H3. > > Since the HS-USB controller of R-Car H3 is almost the same specification > with R-Car Gen2 (these have 16 pipes and usb-dmac), this patch > sets the "type" of renesas_usbhs_driver_param to USBHS_TYPE_RCAR_GEN2. >

[PATCH] usb: renesas_usbhs: tidyup usbhs_for_each_dfifo macro

2015-04-13 Thread Kuninori Morimoto
From: Kuninori Morimoto Current usbhs_for_each_dfifo macro will read out-of-array's memory after last loop operation. It was not good C language operation, and the binary which was compiled by (at least) gcc 4.8.1 is broken. This patch is based on 925403f425a4a9c503f2fc295652647b1eb10d82

[PATCH][RFC] usb: renesas_usbhs: tidyup usbhs_for_each_dfifo macro

2015-04-02 Thread Kuninori Morimoto
From: Kuninori Morimoto Current usbhs_for_each_dfifo macro will read out-of-array's memory after last loop operation. It was not good C language operation, and the kernel which was compiled by (at least) gcc 4.8.1 will be broken. This patch is based on 925403f425a4a9c503f2fc295652647b1eb

Re: [PATCH 0/2] usb: renesas_usbhs: add support for requesting DT DMA

2015-01-21 Thread Kuninori Morimoto
Hi shimoda-san > This patch series is based on Felipe's usb.git / testing/next branch. > (commit id = 05cf6e00b8ff2b80c8b2d1e69f07cdd6c830efe0) > > Yoshihiro Shimoda (2): > usb: renesas_usbhs: add usbhsf_dma_init_pdev() function > usb: renesas_usbhs: add support for requesting DT DMA > > .

Re: [PATCH v2 2/4] usb: renesas_usbhs: gadget: fix the behavior of pullup

2014-10-29 Thread Kuninori Morimoto
> #define USBHSG_STATUS_SELF_POWERED (1 << 3) > + > + unsignedsoftconnect:1; > }; We can re-use USBHSG_STATUS_xxx instead of new variable ? renesas_usb driver has usbhsg_status_xxx() macro. Best regards --- Kuninori Morimoto -- To unsubscribe f

Re: [PATCH 1/4] usb: renesas_usbhs: gadget: fix NULL pointer dereference in ep_disable()

2014-09-10 Thread Kuninori Morimoto
uep_to_pipe(uep); > > + if (!uep || !uep->pipe) > + return -EINVAL; > + > usbhsg_pipe_disable(uep); > usbhs_pipe_free(pipe); If uep can be NULL, we need care about usbhsg_uep_to_pipe(uep) too. and, "uep->pipe" is same as "pipe" ?

Re: [PATCH v2 0/2] usb: renesas_usbhs: Add device tree support for R-Car H2 and M2

2014-08-04 Thread Kuninori Morimoto
+) > create mode 100644 Documentation/devicetree/bindings/usb/renesas_usbhs.txt For all patches Acked-by: Kuninori Morimoto Best regards --- Kuninori Morimoto -- 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/2] usb: renesas_usbhs: Add device tree support for R-Car H2 and M2

2014-08-03 Thread Kuninori Morimoto
;enable-gpio", 0, NULL); > + if (gpio > 0) > + dparam->enable_gpio = gpio; (snip) > +static const struct of_device_id usbhs_of_match[] = { > + { .compatible = "renesas,usbhs-r8a7790"}, > + { .compatible = "renesas,usbhs-r8a7791"}, > + { },

Re: [PATCH v2 0/2] ARM: shmobile: lager: USBHS callback elimination

2014-07-10 Thread Kuninori Morimoto
drivers/usb/renesas_usbhs/rcar2.h For all patches Acked-by: Kuninori Morimoto -- 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 0/2] usb: renesas_usbhs: gadget: fix for g_zero

2014-07-09 Thread Kuninori Morimoto
gt; re-connecting > > drivers/usb/renesas_usbhs/mod_gadget.c |2 ++ > drivers/usb/renesas_usbhs/pipe.c | 11 +++ > drivers/usb/renesas_usbhs/pipe.h |1 + > 3 files changed, 14 insertions(+) For all patches Acked-by: Kuninori Morimoto -- To unsubs

Re: [PATCH 1/2] usb: renesas_usbhs: add R-Car Gen. 2 init and power control

2014-07-08 Thread Kuninori Morimoto
be() using memcpy() for getting info->xxx) I guess struct usbhs_priv is good place, and you can use usbhs_pdev_to_priv() for this purpose ? Best regards --- Kuninori Morimoto -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to major

Re: [PATCH] usb: renesas: gadget: fixup: complete STATUS stage after receiving

2014-06-18 Thread Kuninori Morimoto
ping ? > From: Kuninori Morimoto > > Current usbhs gadget driver didn't complete STATUS stage after receiving. > It wasn't problem for us before, because some USB class doesn't use > DATA OUT stage in control transfer. > But, it is required on some device. >

Re: [PATCH] usb: renesas: gadget: fixup: complete STATUS stage after receiving

2014-06-02 Thread Kuninori Morimoto
Hi Sergei > > + /* > > +* Transmission end > > +*/ > > + if (*is_done) { > > + if (usbhs_pipe_is_dcp(pipe)) > > Why not collapse these into single *if*? That would decrease the > indentation level... This is same style with TX case -- To unsubscribe from this list: s

[PATCH] usb: renesas: gadget: fixup: complete STATUS stage after receiving

2014-06-01 Thread Kuninori Morimoto
From: Kuninori Morimoto Current usbhs gadget driver didn't complete STATUS stage after receiving. It wasn't problem for us before, because some USB class doesn't use DATA OUT stage in control transfer. But, it is required on some device. Signed-off-by: Yoshihiro Shimoda Signed-o

Re: [PATCH 2/2] usb: renesas_usbhs: remove original filter from usbhsf_dma_init()

2013-12-12 Thread Kuninori Morimoto
Hi Felipe > > + chan = dma_request_slave_channel_compat(mask, > > + shdma_chan_filter, (void *)id, dev, name); > > this adds a build warning: > > drivers/usb/renesas_usbhs/fifo.c:1012:24: warning: cast to pointer from > integer of different size [-Wint-to-pointer-cas

[PATCH 2/2] usb: renesas_usbhs: remove original filter from usbhsf_dma_init()

2013-12-10 Thread Kuninori Morimoto
From: Kuninori Morimoto Remove original filter from usbhsf_dma_init(), and use SH-DMA suitable filter. Signed-off-by: Kuninori Morimoto --- drivers/usb/renesas_usbhs/fifo.c | 76 +++--- drivers/usb/renesas_usbhs/fifo.h |3 -- 2 files changed, 39

[PATCH 1/2] usb: renesas_usbhs: fifo: request DMAEngine once

2013-12-10 Thread Kuninori Morimoto
From: Kuninori Morimoto DMAEngine uses IRQ if dma_request_channel() was called, and it is using devm_request_irq() today, OTOH, dma_request_channel() will be called when each USB connection happened on this driver. This means same IRQ will be requested many times whenever each USB connected, and

[PATCH 0/2] usb: renesas_usbhs: DMAEngine cleanup

2013-12-10 Thread Kuninori Morimoto
Hi Felipe again # my previous email didn't include USB-ML These patches cleanup DMAEngine port on renesas_usbhs. #1 is bugfix patch #2 is new feature patch Kuninori Morimoto (2): usb: renesas_usbhs: fifo: request DMAEngine once usb: renesas_usbhs: remove original filter

Re: [PATCH 0/3] Add USBHS support to Lager (take 2)

2013-10-08 Thread Kuninori Morimoto
eate mode 100644 drivers/usb/phy/phy-rcar-gen2-usb.c > create mode 100644 include/linux/platform_data/usb-rcar-gen2-phy.h For all patches Acked-by: Kuninori Morimoto # I think we can implement usb_phy_xxx() method # in renesas_usbhs driver someday. Best regards --- Kuninori M

Re: [PATCH 1/3] usb: phy: Add RCAR Gen2 USB phy

2013-10-08 Thread Kuninori Morimoto
callbacks. Thus, looks like the phy driver can't really > auto-suspend and doesn't really support runtime PM. > > I think that handling clocks in the init/shutdown is a bit cleaner. > It gives us more control over the phy power, where pm_runtime_xxx will > do nothing if

Re: [PATCH 3/3] arm: shmobile: lager: Add USBHS support

2013-10-08 Thread Kuninori Morimoto
7;ll still need it later to properly configure the channel. > Besides, is saves us some bits leaving all the unused callbacks and > device structures out if we do not register the device when the driver > is disabled. Ahh, I see. Sorry for my noise Best regards --- Kuninori Mo

Re: [PATCH 3/3] arm: shmobile: lager: Add USBHS support

2013-10-07 Thread Kuninori Morimoto
Hi Valentine > This adds USBHS PHY and registers USBHS device if the driver is enabled. > > Signed-off-by: Valentine Barshak > --- (snip) > +/* USBHS */ > +#if IS_ENABLED(CONFIG_USB_RENESAS_USBHS_UDC) > +static const struct resource usbhs_resources[] __initconst = { > + DEFINE_RES_MEM(0xe65

Re: [PATCH 1/3] usb: phy: Add RCAR Gen2 USB phy

2013-10-07 Thread Kuninori Morimoto
Hi Valentine Thank you for your patch > +/* Setup USB channels */ > +static void __rcar_gen2_usb_phy_setup(struct rcar_gen2_usb_phy_priv *priv) > +{ > + u32 val; > + > + clk_prepare_enable(priv->clk); > + > + /* Set USB channels in the USBHS UGCTRL2 register */ > + val = ioread32

Re: [PATCH 2/3] arm: shmobile: r8a7790: Add USBHS clock support

2013-10-07 Thread Kuninori Morimoto
Hi Valentine > @@ -296,6 +298,8 @@ static struct clk_lookup lookups[] = { > CLKDEV_DEV_ID("ee22.mmcif", &mstp_clks[MSTP305]), > CLKDEV_DEV_ID("sh_mmcif.1", &mstp_clks[MSTP305]), > CLKDEV_DEV_ID("sh_cmt.0", &mstp_clks[MSTP124]), > + CLKDEV_DEV_ID("renesas_usbhs", &mstp_cl

[PATCH] usb: renesas_usbhs: tidyup original usbhsx_for_each_xxx macro

2013-07-11 Thread Kuninori Morimoto
d-off-by: Kuninori Morimoto --- drivers/usb/renesas_usbhs/mod_gadget.c |6 +++--- drivers/usb/renesas_usbhs/mod_host.c |6 +++--- drivers/usb/renesas_usbhs/pipe.h |6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/usb/renesas_usbhs/mod_gadget

[PATCH] usb: renesas_usbhs: gadget: remove extra check on udc_stop

2013-07-08 Thread Kuninori Morimoto
: Kuninori Morimoto --- drivers/usb/renesas_usbhs/mod_gadget.c |4 1 file changed, 4 deletions(-) diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c index ed4949f..805940c 100644 --- a/drivers/usb/renesas_usbhs/mod_gadget.c +++ b/drivers/usb

Re: [PATCH v8 2/3] ARM: shmobile: r8a7778: add USB support

2013-06-04 Thread Kuninori Morimoto
rry. This mention (= phy and ohci/ehci registration in one function) was my fault. Your style is correct I think. Best regards --- Kuninori Morimoto -- 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 v8 2/3] ARM: shmobile: r8a7778: add USB support

2013-06-03 Thread Kuninori Morimoto
I just copied your approach from the R8A7779 code. Ahh, yes, indeed Best regards --- Kuninori Morimoto -- 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 v8 2/3] ARM: shmobile: r8a7778: add USB support

2013-06-02 Thread Kuninori Morimoto
ly if Soc/platform calls r8a7778_init_late(). but, usb phy isn't registered without r8a7778_add_usb_phy_device(). The ohci/ehci resource will be used vainly if platform doesn't have USB ohci/ehci and phy should be registered in same time/function. Best regards --- Kun

Re: [PATCH v2 0/9] Reorganize R8A7779/Marzen USB code

2013-04-18 Thread Kuninori Morimoto
> used or not > > >>> on BOCK-W board? PHY initialization seems to work with either > > >>> settings... > > >> I can ask it to HW team if you want me. > > > > Yes, ask them please. > > Now, I'm asking it to HW team > Plea

Re: [PATCH v2 0/9] Reorganize R8A7779/Marzen USB code

2013-04-16 Thread Kuninori Morimoto
W board? PHY initialization seems to work with either > >>> settings... > >> I can ask it to HW team if you want me. > > Yes, ask them please. Now, I'm asking it to HW team Please wait Best regards --- Kuninori Morimoto -- 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 v2 0/9] Reorganize R8A7779/Marzen USB code

2013-04-09 Thread Kuninori Morimoto
sed or not > on BOCK-W board? PHY initialization seems to work with either settings... I can ask it to HW team if you want me. But our local BSP is using "No ferrite bead" settings... Best regards --- Kuninori Morimoto -- To unsubscribe from this list: send the line "unsubscribe l

Re: [PATCH v2 0/9] Reorganize R8A7779/Marzen USB code

2013-04-08 Thread Kuninori Morimoto
rcar-phy: remove EHCI internal buffer setup > [5/9] ARM: shmobile: R8A7779: remove USB PHY 2nd memory resource > [6/9] rcar-phy: correct base address > [7/9] rcar-phy: add platform data > [8/9] ARM: shmobile: Marzen: pass platform data to USB PHY device > [9/9] rcar-phy: handle platf

Re: [PATCH 0/8] Reorganize R8A7779/Marzen USB code

2013-04-04 Thread Kuninori Morimoto
> so > maybe the patchset can be merged thru Simon's tree with Felipe's and Alan > Stern's ACKs. I guess you already got request about patch style from Simon. When you send v2 patch, could you please add "this patch is tested on bard" on each patch's co

[PATCH] usb: renesas_usbhs: fixup sparse errors for common.c

2013-03-31 Thread Kuninori Morimoto
: Kuninori Morimoto --- >> Felipe Does this solve "error" issue ? # I guess common.c still has "warning" though... arch/arm/mach-shmobile/board-armadillo800eva.c |8 ++-- arch/arm/mach-shmobile/board-kzm9g.c |8 ++-- arch/arm/mach-shmobile/boar

Re: Renesas sparse errors

2013-03-31 Thread Kuninori Morimoto
Hi Felipe > > On Wed, Mar 27, 2013 at 06:21:19PM -0700, Kuninori Morimoto wrote: > > > > linux/drivers/usb/renesas_usbhs/common.c:313:17: error: incompatible > > > > types in conditional expression (different base types) > > > > linux/driver

Re: Renesas sparse errors

2013-03-27 Thread Kuninori Morimoto
which branch or commit are you using ? - which compiler are you using ? Best regards --- Kuninori Morimoto -- 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: Add EHCI and OHCI for Renesas R-Mobile SoC (r8a7740)

2013-03-20 Thread Kuninori Morimoto
REN | MEMEN; > >> >> + AHB_WRITE(hci, data, OHCI_CMND_STS); > >> >> + AHB_WRITE(hci, data, EHCI_CMND_STS); > >> >> + > >> >> + /* enable pci interrupt */ > >> >> + data = __raw_readl(hci->base + PCI_INT_ENABLE); > >> >> + data |= USBH_PMEEN | USBH_INTBEN | USBH_INTAEN; > >> >> + AHB_WRITE(hci, data, PCI_INT_ENABLE); (snip) > > ohci-rmobile.c -> ohci->sh.c > > ohci-common.c -> ohci-r8a7740.c > > > > Thanks for your comment. > OK, I will rename and update patches. Could you please teach me current status of this patch ? Best regards --- Kuninori Morimoto -- 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 v3] usb: phy: add R-Car USB phy driver

2013-03-14 Thread Kuninori Morimoto
on(dev); if (err < 0) return err; } ... hcd->regs = devm_ioremap_resource(&dev->dev, res_mem); if (IS_ERR(hcd->regs)) { err = PTR_ERR(hcd->regs); goto err_put_hcd; } # init() here ? if (pdata->init) err = pdata->init(dev, hcd->regs); Best regards --- Kuninori Morimoto -- 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 v3] usb: phy: add R-Car USB phy driver

2013-03-13 Thread Kuninori Morimoto
his driver even... I'm not sure what is the best solution. But current rcar_usb_phy is expecting above (strange) mapping, and initialize method is came from datasheet Best regards --- Kuninori Morimoto -- 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 v6] usb: phy: add R-Car USB phy driver

2013-03-13 Thread Kuninori Morimoto
ite32(0x, (reg0 + USBPCTRL0)); > > Why change this register at all at shutdown? Sorry, I didn't mention about these settings value on this patch. This driver is using the fixed value for particular applications at this point, because of prototype driver at that point. This me

Re: [PATCH] USB: Add EHCI and OHCI for Renesas R-Mobile SoC (r8a7740)

2013-02-13 Thread Kuninori Morimoto
| 4 + drivers/usb/host/Makefile |1 + drivers/usb/host/ehci-hcd.c |5 + drivers/usb/host/ehci-rmobile.c | 384 + drivers/usb/host/ohci-hcd.c | 21 +- drivers/usb/host/ohci-rmobile.c | 377 drivers/usb/host/rmobile-common.c | 145 ++ drivers/usb/host/rmobile-common.h | 53 + include/linux/usb/rmobile.h | 254 Best regards --- Kuninori Morimoto -- 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: Add EHCI and OHCI for Renesas R-Mobile SoC (r8a7740)

2013-02-13 Thread Kuninori Morimoto
ci, data, OHCI_CMND_STS); > + AHB_WRITE(hci, data, EHCI_CMND_STS); > + > + /* enable pci interrupt */ > + data = __raw_readl(hci->base + PCI_INT_ENABLE); > + data |= USBH_PMEEN | USBH_INTBEN | USBH_INTAEN; > + AHB_WRITE(hci, data, PCI_INT_ENABLE); Are these

Re: [PATCH v4 03/11] usb: dwc3: gadget: introduce and use enable/disable irq methods

2013-02-12 Thread Kuninori Morimoto
on't be freed. OK, I see Sorry for my noise Best regards --- Kuninori Morimoto -- 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 v4 03/11] usb: dwc3: gadget: introduce and use enable/disable irq methods

2013-02-12 Thread Kuninori Morimoto
free_endpoints(dwc); > > @@ -2514,13 +2530,7 @@ err0: > > void dwc3_gadget_exit(struct dwc3 *dwc) > { > - int irq; > - > usb_del_gadget_udc(&dwc->gadget); > - irq = platform_get_irq(to_platform_device(dwc->dev), 0); > - > - dwc3_writel(dwc->regs, DWC3_DEVTEN, 0x00); > - free_irq(irq, dwc); > > dwc3_gadget_free_endpoints(dwc); > > -- > 1.8.1.rc1.5.g7e0651a > > -- > 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 Best regards --- Kuninori Morimoto -- 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

[PATCH 2/2] usb: renesas_usbhs: gadget: usbhsg_ep_disable() care pipe settings

2012-12-10 Thread Kuninori Morimoto
Current usbhsg_ep_disable() didn't care uep->pipe and pipe->mod_private variable which is used on usbhsg_ep_enable(). It breaks renesas_usbhs gadget when resume. This patch fixes it. Signed-off-by: Kuninori Morimoto --- drivers/usb/renesas_usbhs/mod_gadget.c | 11 --- 1 f

[PATCH 1/2] usb: renesas_usbhs: gadget: remove usbhsg_uep_init()

2012-12-10 Thread Kuninori Morimoto
Current driver always initialized uep->pipe to NULL on usbhsg_try_start(). But it breaks relationship with usb_ep_ops :: enable/disable functions when suspend/resume. This patch solved this issue by initializing uep->pipe on probe() Signed-off-by: Kuninori Morimoto --- drivers/usb/renesas

[PATCH 0/2] usb: renesas_usbhs: fixup gadget suspned/resume issue

2012-12-10 Thread Kuninori Morimoto
Hi felipe, Greg Cc Simon These are renesas_usbhs gadget suspned/resume fixup patches. Without these patches, renesas_usbhs gadget resume will break. Kuninori Morimoto (2): usb: renesas_usbhs: gadget: remove usbhsg_uep_init() usb: renesas_usbhs: gadget: usbhsg_ep_disable() care pipe

Re: [PATCH] usb: renesas_usbhs: mod_host: fixup usbhsh_ureq_free() timing

2012-12-10 Thread Kuninori Morimoto
Hi Felipe > > usbhsh_ureq_free() free ureq which includes ubshs_pkt. > > But current driver used usbhs_pkt after freed ureq. > > This patch fixup this bug. > > Special thanks to Chen > > > > Reported-by: Chen Gang > > Signed-off-by: Kuninori Morimot

[PATCH] usb: renesas_usbhs: mod_host: fixup usbhsh_ureq_free() timing

2012-12-09 Thread Kuninori Morimoto
usbhsh_ureq_free() free ureq which includes ubshs_pkt. But current driver used usbhs_pkt after freed ureq. This patch fixup this bug. Special thanks to Chen Reported-by: Chen Gang Signed-off-by: Kuninori Morimoto --- drivers/usb/renesas_usbhs/mod_host.c |3 ++- 1 file changed, 2 insertions

Re: [Suggestion] drivers/usb/renesas_usbhs: pkt is still in use, after it was already free.

2012-12-09 Thread Kuninori Morimoto
gt; I prefer the relative member to provide relative patch. > if can not find relative member, I should try (although it seems not a > good idea) Thank you for your review, and nice catch ! I think this is bug, and I didn't notice it. Best regards --- Kuninori Morimoto -- To

[PATCH 2/3 v2] usb: renesas_usbhs: use transfer counter if IN direction bulk pipe

2012-11-06 Thread Kuninori Morimoto
ge address mapping. Thus, it is difficult to calculate transfer counter setting address. This patch use fixed table for it. Signed-off-by: Kuninori Morimoto --- >> Felipe This patch is based on felipe/gadget branch. But you will get conflict when you merged with feli

[PATCH 3/3] usb: renesas_usbhs: host: add endpoint user counter

2012-11-06 Thread Kuninori Morimoto
created strange driver behavior. But it can re-use this attached pipe if multi urb was queued. This patch implements it. Signed-off-by: Kuninori Morimoto --- drivers/usb/renesas_usbhs/mod_host.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a

[PATCH 2/3] usb: renesas_usbhs: use transfer counter if IN direction bulk pipe

2012-11-06 Thread Kuninori Morimoto
ge address mapping. Thus, it is difficult to calculate transfer counter setting address. This patch use fixed table for it. Signed-off-by: Kuninori Morimoto --- drivers/usb/renesas_usbhs/fifo.c |4 ++ drivers/usb/renesas_usbhs/pipe.c | 101 ++ d

[PATCH 1/3] usb: renesas_usbhs: remove debug information from usbhsh_hub_status_data()

2012-11-06 Thread Kuninori Morimoto
Because usbhsh_hub_status_data() will be called many times, there are too many obstructive/useless debug informations if driver has #define DEBUG. Thus, other important dev_dbg() information will hide. This patch removed obstructive/useless dev_dbg(). Signed-off-by: Kuninori Morimoto

[PATCH 0/3] usb: renesas_usbhs: fixup patches for host

2012-11-06 Thread Kuninori Morimoto
Hi Felipe, GregKH These pathces fixup renesas_usbhs host side strange behavior for v3.8 kernel. based on felipe/master branch Kuninori Morimoto (3): usb: renesas_usbhs: remove debug information from usbhsh_hub_status_data() usb: renesas_usbhs: use transfer counter if IN direction

[PATCH] USB: rcar-phy: fixup implicit declaration of function 'iowrite32'

2012-11-04 Thread Kuninori Morimoto
f function\ 'iowrite32' [-Werror=implicit-function-declaration] drivers/usb/phy/rcar-phy.c:83:4: error: implicit declaration of function\ 'ioread32' [-Werror=implicit-function-declaration] Signed-off-by: Kuninori Morimoto --- >> Felipe Sorry for late

[PATCH v6] usb: phy: add R-Car USB phy driver

2012-10-31 Thread Kuninori Morimoto
This patch adds Renesas R-Car USB phy driver. It supports R8A7779 chip at this point. R-Car has some USB controllers, but has only one phy-initializer. So, this driver is counting users. Signed-off-by: Kuninori Morimoto --- v5 -> v6 - used if (priv->counter++ == 0) - used if (priv-&g

[PATCH 4/4] usb: renesas_usbhs: add DMAEngine support on mod_host

2012-10-29 Thread Kuninori Morimoto
This patch enabled dma mapping, and used dma transfer handler on mod_host Signed-off-by: Kuninori Morimoto --- drivers/usb/renesas_usbhs/mod_host.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/usb/renesas_usbhs/mod_host.c b/drivers/usb

[PATCH 3/4] usb: renesas_usbhs: fixup unreadable macro

2012-10-29 Thread Kuninori Morimoto
mod.h has irq_bempsts/irq_brdysts to keep each irq status, but it was difficult to find where they were used on renesas_usbhs driver by using "grep irq_" command, since it used irq_##status macro. This patch fixup them Signed-off-by: Kuninori Morimoto --- drivers/usb/renesas_us

[PATCH 2/4] usb: renesas_usbhs: use devm_request_irq()

2012-10-29 Thread Kuninori Morimoto
This patch uses devm_request_irq() instead of request_irq(), and removed free_irq() from driver Signed-off-by: Kuninori Morimoto --- drivers/usb/renesas_usbhs/mod.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/renesas_usbhs/mod.c b/drivers/usb

[PATCH 1/4 v5] usb: phy: add R-Car USB phy driver

2012-10-29 Thread Kuninori Morimoto
This patch adds Renesas R-Car USB phy driver. It supports R8A7779 chip at this point. R-Car has some USB controllers, but has only one phy-initializer. So, this driver is counting users. Signed-off-by: Kuninori Morimoto --- drivers/usb/phy/Kconfig| 12 +++ drivers/usb/phy/Makefile

[PATCH 0/4] resend: renesas usb patches

2012-10-29 Thread Kuninori Morimoto
Hi felipe These are resend patches for renesas usb drivers. Kuninori Morimoto (4): usb: phy: add R-Car USB phy driver usb: renesas_usbhs: use devm_request_irq() usb: renesas_usbhs: fixup unreadable macro usb: renesas_usbhs: add DMAEngine support on mod_host drivers/usb

Re: [PATCH] usb: renesas_usbhs: add DMAEngine support on mod_host

2012-10-18 Thread Kuninori Morimoto
Hi Felipe > > This patch enabled dma mapping, and used dma transfer handler > > on mod_host > > > > Signed-off-by: Kuninori Morimoto > > --- > > Felipe > > > > I sent some patches before, and I guess it will go to v3.8 branch. >

[PATCH] usb: renesas_usbhs: fixup dma transfer stall

2012-10-16 Thread Kuninori Morimoto
renesas_usbhs driver can switch DMA/PIO transfer by using handler, and each handler have push/pop direction. But unfortunately, current dma push handler didn't a path which calls usbhs_pipe_enable(). Thus, dma transfer never happened. this patch fixes it. Signed-off-by: Kuninori Mor

[PATCH] usb: renesas_usbhs: fixup: avoid NULL access on error case pipe detach

2012-10-16 Thread Kuninori Morimoto
If renesas_usbhs or DMAEngine interrupt didn't happen by a certain cause, urb->ep will be NULL by usb time out. Then, host mode will access to it and crash kernel. This patch fixes it. Signed-off-by: Kuninori Morimoto --- drivers/usb/renesas_usbhs/mod_host.c |5 + 1 file ch

[PATCH v2] usb: renesas_usbhs: fixup __usbhs_for_each_pipe 1st pos

2012-10-15 Thread Kuninori Morimoto
__usbhs_for_each_pipe() is the macro which moves around each pipe, but it has a bug which didn't care about 1st pipe's position. Because of this bug, it moves around pipe0, pipe2, pipe3 ... even though it requested pipe1, pipe2, pipe3... This patch modifies it. Signed-off-by: Kuninor

[PATCH v2] usb: renesas_usbhs: gadget: add usb_gadget_ops :: pullup support

2012-10-15 Thread Kuninori Morimoto
This patch adds usbhs_sys_function_pullup() to control D+ line for USB function, and enabled pullup support on mod_gadget. Signed-off-by: Kuninori Morimoto --- v1 -> v2 - add explain on log drivers/usb/renesas_usbhs/common.c |5 + drivers/usb/renesas_usbhs/common.h |

Re: [PATCH] usb: renesas_usbhs: fixup interrupt status clear method

2012-10-15 Thread Kuninori Morimoto
Hi Felipe > On Thu, Oct 11, 2012 at 09:49:38PM -0700, Kuninori Morimoto wrote: > > When interrupt happened, renesas_usbhs driver gets irq status > > by usbhs_status_get_each_irq(), and cleared all status by using 0. > > But, this method is incorrect, > > since extra in

Re: [PATCH] usb: renesas_usbhs: return -EINVAL if scatter/gather type DMA

2012-10-15 Thread Kuninori Morimoto
Hi Felipe Thank you for checking patch > On Wed, Oct 10, 2012 at 07:18:45PM -0700, Kuninori Morimoto wrote: > > renesas_usbhs can't handle scatter/gather type DMA. > > Thus, return -EINVAL is better than WARNING() on mod_gadget > > > > Signed-off-by: Kuninor

[PATCH] usb: renesas_usbhs: fixup unreadable macro

2012-10-12 Thread Kuninori Morimoto
mod.h has irq_bempsts/irq_brdysts to keep each irq status, but it was difficult to find where they were used on renesas_usbhs driver by using "grep irq_" command, since it used irq_##status macro. This patch fixup them Signed-off-by: Kuninori Morimoto --- drivers/usb/renesas_us

[PATCH] usb: renesas_usbhs: fixup interrupt status clear method

2012-10-11 Thread Kuninori Morimoto
When interrupt happened, renesas_usbhs driver gets irq status by usbhs_status_get_each_irq(), and cleared all status by using 0. But, this method is incorrect, since extra interrupt might occur between them. This patch cleared corresponding bits only Signed-off-by: Kuninori Morimoto --- drivers

[PATCH] usb: renesas_usbhs: gadget: add usb_gadget_ops :: pullup support

2012-10-11 Thread Kuninori Morimoto
Signed-off-by: Kuninori Morimoto --- drivers/usb/renesas_usbhs/common.c |5 + drivers/usb/renesas_usbhs/common.h |1 + drivers/usb/renesas_usbhs/mod_gadget.c | 11 +++ 3 files changed, 17 insertions(+) diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb

[PATCH] usb: renesas_usbhs: fixup __usbhs_for_each_pipe 1st pos

2012-10-11 Thread Kuninori Morimoto
1st pos of __usbhs_for_each_pipe() was wrong. Each pipe were pipe0, pipe2, pipe3 ... This patch modifies it. Signed-off-by: Kuninori Morimoto --- drivers/usb/renesas_usbhs/pipe.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/renesas_usbhs/pipe.h b/drivers

[PATCH] usb: renesas_usbhs: return -EINVAL if scatter/gather type DMA

2012-10-10 Thread Kuninori Morimoto
renesas_usbhs can't handle scatter/gather type DMA. Thus, return -EINVAL is better than WARNING() on mod_gadget Signed-off-by: Kuninori Morimoto --- drivers/usb/renesas_usbhs/mod_gadget.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/renesas_

[PATCH] usb: renesas_usbhs: add DMAEngine support on mod_host

2012-10-10 Thread Kuninori Morimoto
This patch enabled dma mapping, and used dma transfer handler on mod_host Signed-off-by: Kuninori Morimoto --- Felipe I sent some patches before, and I guess it will go to v3.8 branch. please let me know if you want me to resend these. drivers/usb/renesas_usbhs/mod_host.c | 17

[PATCH] usb: renesas_usbhs: use devm_request_irq()

2012-10-02 Thread Kuninori Morimoto
This patch uses devm_request_irq() instead of request_irq(), and removed free_irq() from driver Signed-off-by: Kuninori Morimoto --- drivers/usb/renesas_usbhs/mod.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/renesas_usbhs/mod.c b/drivers/usb

[PATCH v5] usb: phy: add R-Car USB phy driver

2012-09-13 Thread Kuninori Morimoto
This patch adds Renesas R-Car USB phy driver. It supports R8A7779 chip at this point. R-Car has some USB controllers, but has only one phy-initializer. So, this driver is counting users. Signed-off-by: Kuninori Morimoto --- v4 -> v5 - removed LITTLE/BIG define - use if (val == (ACT |

Re: [PATCH v4] usb: phy: add R-Car USB phy driver

2012-09-12 Thread Kuninori Morimoto
Dear Simon > On Mon, Sep 10, 2012 at 07:06:48PM -0700, Kuninori Morimoto wrote: > > This patch adds Renesas R-Car USB phy driver. > > It supports R8A7779 chip at this point. > > > > R-Car has some USB controllers, but has only one phy-initializer. > >

[PATCH v4] usb: phy: add R-Car USB phy driver

2012-09-10 Thread Kuninori Morimoto
This patch adds Renesas R-Car USB phy driver. It supports R8A7779 chip at this point. R-Car has some USB controllers, but has only one phy-initializer. So, this driver is counting users. Signed-off-by: Kuninori Morimoto --- v3 -> v4 - rcar_usb_phy_shutdown() became static - used p

[PATCH v2] usb: renesas_usbhs: convert to devm_xxx()

2012-09-10 Thread Kuninori Morimoto
Signed-off-by: Kuninori Morimoto --- v1 -> v2 - used devm_request_and_ioremap() drivers/usb/renesas_usbhs/common.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c index 681d

Re: [PATCH v3] usb: phy: add R-Car USB phy driver

2012-09-10 Thread Kuninori Morimoto
000 === EHCI -- 0x0094 PHY 0x009C PHY -- EHCI 0x0400 == ... 0x0800 -- PHY 0x0900 -- This driver couldn't probe if it used "request_mem_regio

[PATCH] usb: renesas_usbhs: convert to devm_xxx()

2012-09-10 Thread Kuninori Morimoto
Signed-off-by: Kuninori Morimoto --- drivers/usb/renesas_usbhs/common.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c index 681da06..d56e1f6 100644 --- a/drivers/usb/renesas_usbhs

[PATCH v3] usb: phy: add R-Car USB phy driver

2012-09-06 Thread Kuninori Morimoto
This patch adds Renesas R-Car USB phy driver. It supports R8A7779 chip at this point. R-Car has some USB controllers, but has only one phy-initializer. So, this driver is counting users. Signed-off-by: Kuninori Morimoto --- v2 -> v3 - remove /* spin lock */ /* spin unlocked */ - fixup mu

[PATCH v2] usb: phy: add R-Car USB phy driver

2012-09-05 Thread Kuninori Morimoto
This patch adds Renesas R-Car USB phy driver. It supports R8A7779 chip at this point. R-Car has some USB controllers, but has only one phy-initializer. So, this driver is counting users. Signed-off-by: Kuninori Morimoto --- v1 -> v2 - enable usb_phy_xxx() - used subsys_initcall() drivers/

  1   2   >