* [PATCH v2 0/2] usb: renesas_usbhs: Add support for R-Car E2 @ 2015-05-18 11:04 Yoshihiro Shimoda 2015-05-18 11:04 ` [PATCH v2 1/2] usb: renesas_usbhs: Change USBHS_TYPE_R8A779x to USBHS_TYPE_RCAR_GEN2 Yoshihiro Shimoda 2015-05-18 11:04 ` [PATCH v2 2/2] usb: renesas_usbhs: Add support for R-Car E2 Yoshihiro Shimoda 0 siblings, 2 replies; 8+ messages in thread From: Yoshihiro Shimoda @ 2015-05-18 11:04 UTC (permalink / raw) To: gregkh, balbi, robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak Cc: linux-usb, linux-sh, devicetree, Yoshihiro Shimoda This patch set is based on Felipe's usb.git / testing/next branch. (commit id = 1c14905ef951fb968c8da90e4e64be02c309a2ae) This patch set adds support for R-Car E2. This patch set also changes the SoC types "USBHS_TYPE_R8A779[01]" to USBHS_TYPE_RCAR_GEN2. Changes from v1: - Use USBHS_TYPE_RCAR_GEN2 instead of USBHS_TYPE_R8A779[014]. - Add "Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>" in patch 2 (This is for the DT binding part). Yoshihiro Shimoda (2): usb: renesas_usbhs: Change USBHS_TYPE_R8A779x to USBHS_TYPE_RCAR_GEN2 usb: renesas_usbhs: Add support for R-Car E2 .../devicetree/bindings/usb/renesas_usbhs.txt | 1 + drivers/usb/renesas_usbhs/common.c | 19 ++++++++----------- include/linux/usb/renesas_usbhs.h | 3 +-- 3 files changed, 10 insertions(+), 13 deletions(-) -- 1.9.1 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2 1/2] usb: renesas_usbhs: Change USBHS_TYPE_R8A779x to USBHS_TYPE_RCAR_GEN2 2015-05-18 11:04 [PATCH v2 0/2] usb: renesas_usbhs: Add support for R-Car E2 Yoshihiro Shimoda @ 2015-05-18 11:04 ` Yoshihiro Shimoda [not found] ` <1431947055-4324-2-git-send-email-yoshihiro.shimoda.uh-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org> 2015-05-19 1:34 ` Simon Horman 2015-05-18 11:04 ` [PATCH v2 2/2] usb: renesas_usbhs: Add support for R-Car E2 Yoshihiro Shimoda 1 sibling, 2 replies; 8+ messages in thread From: Yoshihiro Shimoda @ 2015-05-18 11:04 UTC (permalink / raw) To: gregkh, balbi, robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak Cc: linux-usb, linux-sh, devicetree, Yoshihiro Shimoda Since the HSUSB controllers of R-Car Gen2 are the same specification (they have 16 pipes and usb-dmac), this patch changes USBHS_TYPE_R8A7790 and USBHS_TYPE_R8A7791 to USBHS_TYPE_RCAR_GEN2. Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> --- drivers/usb/renesas_usbhs/common.c | 15 ++++----------- include/linux/usb/renesas_usbhs.h | 3 +-- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c index 0f7e850..b56bb9d 100644 --- a/drivers/usb/renesas_usbhs/common.c +++ b/drivers/usb/renesas_usbhs/common.c @@ -466,11 +466,11 @@ static int usbhsc_drvcllbck_notify_hotplug(struct platform_device *pdev) static const struct of_device_id usbhs_of_match[] = { { .compatible = "renesas,usbhs-r8a7790", - .data = (void *)USBHS_TYPE_R8A7790, + .data = (void *)USBHS_TYPE_RCAR_GEN2, }, { .compatible = "renesas,usbhs-r8a7791", - .data = (void *)USBHS_TYPE_R8A7791, + .data = (void *)USBHS_TYPE_RCAR_GEN2, }, { }, }; @@ -497,14 +497,8 @@ static struct renesas_usbhs_platform_info *usbhs_parse_dt(struct device *dev) if (gpio > 0) dparam->enable_gpio = gpio; - switch (dparam->type) { - case USBHS_TYPE_R8A7790: - case USBHS_TYPE_R8A7791: + if (dparam->type == USBHS_TYPE_RCAR_GEN2) dparam->has_usb_dmac = 1; - break; - default: - break; - } return info; } @@ -559,8 +553,7 @@ static int usbhs_probe(struct platform_device *pdev) sizeof(struct renesas_usbhs_driver_param)); switch (priv->dparam.type) { - case USBHS_TYPE_R8A7790: - case USBHS_TYPE_R8A7791: + case USBHS_TYPE_RCAR_GEN2: priv->pfunc = usbhs_rcar2_ops; if (!priv->dparam.pipe_type) { priv->dparam.pipe_type = usbhsc_new_pipe_type; diff --git a/include/linux/usb/renesas_usbhs.h b/include/linux/usb/renesas_usbhs.h index f06529c..3dd5a78 100644 --- a/include/linux/usb/renesas_usbhs.h +++ b/include/linux/usb/renesas_usbhs.h @@ -169,8 +169,7 @@ struct renesas_usbhs_driver_param { #define USBHS_USB_DMAC_XFER_SIZE 32 /* hardcode the xfer size */ }; -#define USBHS_TYPE_R8A7790 1 -#define USBHS_TYPE_R8A7791 2 +#define USBHS_TYPE_RCAR_GEN2 1 /* * option: -- 1.9.1 ^ permalink raw reply related [flat|nested] 8+ messages in thread
[parent not found: <1431947055-4324-2-git-send-email-yoshihiro.shimoda.uh-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>]
* Re: [PATCH v2 1/2] usb: renesas_usbhs: Change USBHS_TYPE_R8A779x to USBHS_TYPE_RCAR_GEN2 [not found] ` <1431947055-4324-2-git-send-email-yoshihiro.shimoda.uh-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org> @ 2015-05-18 11:55 ` Geert Uytterhoeven 0 siblings, 0 replies; 8+ messages in thread From: Geert Uytterhoeven @ 2015-05-18 11:55 UTC (permalink / raw) To: Yoshihiro Shimoda Cc: Greg KH, Felipe Balbi, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, USB list, Linux-sh list, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Mon, May 18, 2015 at 1:04 PM, Yoshihiro Shimoda <yoshihiro.shimoda.uh-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org> wrote: > Since the HSUSB controllers of R-Car Gen2 are the same specification > (they have 16 pipes and usb-dmac), this patch changes USBHS_TYPE_R8A7790 > and USBHS_TYPE_R8A7791 to USBHS_TYPE_RCAR_GEN2. > > Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org> Acked-by: Geert Uytterhoeven <geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org> Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/2] usb: renesas_usbhs: Change USBHS_TYPE_R8A779x to USBHS_TYPE_RCAR_GEN2 2015-05-18 11:04 ` [PATCH v2 1/2] usb: renesas_usbhs: Change USBHS_TYPE_R8A779x to USBHS_TYPE_RCAR_GEN2 Yoshihiro Shimoda [not found] ` <1431947055-4324-2-git-send-email-yoshihiro.shimoda.uh-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org> @ 2015-05-19 1:34 ` Simon Horman 1 sibling, 0 replies; 8+ messages in thread From: Simon Horman @ 2015-05-19 1:34 UTC (permalink / raw) To: Yoshihiro Shimoda Cc: gregkh, balbi, robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak, linux-usb, linux-sh, devicetree On Mon, May 18, 2015 at 08:04:14PM +0900, Yoshihiro Shimoda wrote: > Since the HSUSB controllers of R-Car Gen2 are the same specification > (they have 16 pipes and usb-dmac), this patch changes USBHS_TYPE_R8A7790 > and USBHS_TYPE_R8A7791 to USBHS_TYPE_RCAR_GEN2. > > Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Acked-by: Simon Horman <horms+renesas@verge.net.au> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2 2/2] usb: renesas_usbhs: Add support for R-Car E2 2015-05-18 11:04 [PATCH v2 0/2] usb: renesas_usbhs: Add support for R-Car E2 Yoshihiro Shimoda 2015-05-18 11:04 ` [PATCH v2 1/2] usb: renesas_usbhs: Change USBHS_TYPE_R8A779x to USBHS_TYPE_RCAR_GEN2 Yoshihiro Shimoda @ 2015-05-18 11:04 ` Yoshihiro Shimoda 2015-05-18 11:55 ` Geert Uytterhoeven 2015-05-19 1:34 ` Simon Horman 1 sibling, 2 replies; 8+ messages in thread From: Yoshihiro Shimoda @ 2015-05-18 11:04 UTC (permalink / raw) To: gregkh, balbi, robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak Cc: linux-usb, linux-sh, devicetree, Yoshihiro Shimoda This patch adds a compatible string to support for R-Car E2. Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>" in patch 2 --- Remarks: Geert's Acked-by is for the DT binding part (renesas_usbhs.txt). Documentation/devicetree/bindings/usb/renesas_usbhs.txt | 1 + drivers/usb/renesas_usbhs/common.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/renesas_usbhs.txt b/Documentation/devicetree/bindings/usb/renesas_usbhs.txt index ddbe304..64a4ca6 100644 --- a/Documentation/devicetree/bindings/usb/renesas_usbhs.txt +++ b/Documentation/devicetree/bindings/usb/renesas_usbhs.txt @@ -4,6 +4,7 @@ Required properties: - compatible: Must contain one of the following: - "renesas,usbhs-r8a7790" - "renesas,usbhs-r8a7791" + - "renesas,usbhs-r8a7794" - reg: Base address and length of the register for the USBHS - interrupts: Interrupt specifier for the USBHS - clocks: A list of phandle + clock specifier pairs diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c index b56bb9d..e8bf408 100644 --- a/drivers/usb/renesas_usbhs/common.c +++ b/drivers/usb/renesas_usbhs/common.c @@ -472,6 +472,10 @@ static const struct of_device_id usbhs_of_match[] = { .compatible = "renesas,usbhs-r8a7791", .data = (void *)USBHS_TYPE_RCAR_GEN2, }, + { + .compatible = "renesas,usbhs-r8a7794", + .data = (void *)USBHS_TYPE_RCAR_GEN2, + }, { }, }; MODULE_DEVICE_TABLE(of, usbhs_of_match); -- 1.9.1 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v2 2/2] usb: renesas_usbhs: Add support for R-Car E2 2015-05-18 11:04 ` [PATCH v2 2/2] usb: renesas_usbhs: Add support for R-Car E2 Yoshihiro Shimoda @ 2015-05-18 11:55 ` Geert Uytterhoeven [not found] ` <CAMuHMdWysVJU8Kk-cDB1rOSzO8B6bGvVBbQsdEoQq0sN-AwdOQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2015-05-19 1:34 ` Simon Horman 1 sibling, 1 reply; 8+ messages in thread From: Geert Uytterhoeven @ 2015-05-18 11:55 UTC (permalink / raw) To: Yoshihiro Shimoda Cc: Greg KH, Felipe Balbi, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, USB list, Linux-sh list, devicetree@vger.kernel.org On Mon, May 18, 2015 at 1:04 PM, Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> wrote: > This patch adds a compatible string to support for R-Car E2. > > Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> > Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>" in patch 2 > --- > Remarks: Geert's Acked-by is for the DT binding part (renesas_usbhs.txt). For the remaining part: Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <CAMuHMdWysVJU8Kk-cDB1rOSzO8B6bGvVBbQsdEoQq0sN-AwdOQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* RE: [PATCH v2 2/2] usb: renesas_usbhs: Add support for R-Car E2 [not found] ` <CAMuHMdWysVJU8Kk-cDB1rOSzO8B6bGvVBbQsdEoQq0sN-AwdOQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2015-05-26 1:56 ` Yoshihiro Shimoda 0 siblings, 0 replies; 8+ messages in thread From: Yoshihiro Shimoda @ 2015-05-26 1:56 UTC (permalink / raw) To: Felipe Balbi Cc: Greg KH, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, USB list, Linux-sh list, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Geert Uytterhoeven Hi Felipe, > Sent: Monday, May 18, 2015 8:56 PM > > On Mon, May 18, 2015 at 1:04 PM, Yoshihiro Shimoda > <yoshihiro.shimoda.uh@renesas.com> wrote: > > This patch adds a compatible string to support for R-Car E2. > > > > Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> > > Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>" in patch 2 > > --- > > Remarks: Geert's Acked-by is for the DT binding part (renesas_usbhs.txt). > > For the remaining part: > Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Would you apply this patch set to your testing/next branch? I confirmed that this patch set could be applied on the latest testing/next branch. (commit id = 672bfdaa310004368a0d493478e2a40f2f2f914f) Best regards, Yoshihiro Shimoda > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 2/2] usb: renesas_usbhs: Add support for R-Car E2 2015-05-18 11:04 ` [PATCH v2 2/2] usb: renesas_usbhs: Add support for R-Car E2 Yoshihiro Shimoda 2015-05-18 11:55 ` Geert Uytterhoeven @ 2015-05-19 1:34 ` Simon Horman 1 sibling, 0 replies; 8+ messages in thread From: Simon Horman @ 2015-05-19 1:34 UTC (permalink / raw) To: Yoshihiro Shimoda Cc: gregkh, balbi, robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak, linux-usb, linux-sh, devicetree On Mon, May 18, 2015 at 08:04:15PM +0900, Yoshihiro Shimoda wrote: > This patch adds a compatible string to support for R-Car E2. > > Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> > Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>" in patch 2 Acked-by: Simon Horman <horms+renesas@verge.net.au> ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-05-26 1:56 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-18 11:04 [PATCH v2 0/2] usb: renesas_usbhs: Add support for R-Car E2 Yoshihiro Shimoda
2015-05-18 11:04 ` [PATCH v2 1/2] usb: renesas_usbhs: Change USBHS_TYPE_R8A779x to USBHS_TYPE_RCAR_GEN2 Yoshihiro Shimoda
[not found] ` <1431947055-4324-2-git-send-email-yoshihiro.shimoda.uh-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2015-05-18 11:55 ` Geert Uytterhoeven
2015-05-19 1:34 ` Simon Horman
2015-05-18 11:04 ` [PATCH v2 2/2] usb: renesas_usbhs: Add support for R-Car E2 Yoshihiro Shimoda
2015-05-18 11:55 ` Geert Uytterhoeven
[not found] ` <CAMuHMdWysVJU8Kk-cDB1rOSzO8B6bGvVBbQsdEoQq0sN-AwdOQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-26 1:56 ` Yoshihiro Shimoda
2015-05-19 1:34 ` Simon Horman
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).