diff for duplicates of <539EE0D7.8000103@renesas.com> diff --git a/a/1.txt b/N1/1.txt index d9fb920..d587102 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -11,7 +11,7 @@ Hi, I am submitting the firmware to upstream. It is not merged to linux-firmware.git yet, but you can get it from the marc.info / linux-usb ML: -http://marc.info/?l=linux-usb&m\x140263419006318&w=2 +http://marc.info/?l=linux-usb&m=140263419006318&w=2 >>> +/*** Register Offset ***/ +#define RCAR_USB3_INT_ENA 0x224 /* >>> Interrupt Enable */ +#define RCAR_USB3_DL_CTRL 0x250 /* FW @@ -63,14 +63,14 @@ http://marc.info/?l=linux-usb&m\x140263419006318&w=2 >>> RCAR_USB3_DL_CTRL); + temp |= RCAR_USB3_DL_CTRL_FW_SET_DATA0; + >>> writel(temp, regs + RCAR_USB3_DL_CTRL); + + for (time = 0; time >>> < timeout; time++) { + val = readl(regs + RCAR_USB3_DL_CTRL); ->>> + if ((val & RCAR_USB3_DL_CTRL_FW_SET_DATA0) = 0) + break; + ->>> udelay(1); + } + if (time = timeout) { + retval = +>>> + if ((val & RCAR_USB3_DL_CTRL_FW_SET_DATA0) == 0) + break; + +>>> udelay(1); + } + if (time == timeout) { + retval = >>> -ETIMEDOUT; + break; + } + } + + temp = readl(regs + >>> RCAR_USB3_DL_CTRL); + temp &= ~RCAR_USB3_DL_CTRL_ENABLE; + >>> writel(temp, regs + RCAR_USB3_DL_CTRL); + + for (time = 0; time >>> < timeout; time++) { + val = readl(regs + RCAR_USB3_DL_CTRL); + >>> if (val & RCAR_USB3_DL_CTRL_FW_SUCCESS) { + retval = 0; + ->>> break; + } + udelay(1); + } + if (time = timeout) + retval = +>>> break; + } + udelay(1); + } + if (time == timeout) + retval = >>> -ETIMEDOUT; + + release_firmware(fw); + + return retval; +} + >>> +/* This function needs to initialize a "phy" of usb before */ >> diff --git a/a/content_digest b/N1/content_digest index 9d269e1..0c778ae 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -3,7 +3,7 @@ "ref\0539B3E17.6050607@codethink.co.uk\0" "From\0Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>\0" "Subject\0Re: [PATCH v6 1/1] usb: host: xhci-plat: add support for the R-Car H2 and M2 xHCI controllers\0" - "Date\0Mon, 16 Jun 2014 12:19:35 +0000\0" + "Date\0Mon, 16 Jun 2014 21:19:35 +0900\0" "To\0Ben Dooks <ben.dooks@codethink.co.uk>\0" "Cc\0balbi@ti.com <balbi@ti.com>" mathias.nyman@intel.com <mathias.nyman@intel.com> @@ -30,7 +30,7 @@ "\n" "I am submitting the firmware to upstream. It is not merged to linux-firmware.git yet,\n" "but you can get it from the marc.info / linux-usb ML:\n" - "http://marc.info/?l=linux-usb&m\0240263419006318&w=2\n" + "http://marc.info/?l=linux-usb&m=140263419006318&w=2\n" "\n" ">>> +/*** Register Offset ***/ +#define RCAR_USB3_INT_ENA\t0x224\t/* \n" ">>> Interrupt Enable */ +#define RCAR_USB3_DL_CTRL\t0x250\t/* FW \n" @@ -82,14 +82,14 @@ ">>> RCAR_USB3_DL_CTRL); +\t\ttemp |= RCAR_USB3_DL_CTRL_FW_SET_DATA0; + \n" ">>> writel(temp, regs + RCAR_USB3_DL_CTRL); + +\t\tfor (time = 0; time \n" ">>> < timeout; time++) { +\t\t\tval = readl(regs + RCAR_USB3_DL_CTRL);\n" - ">>> + if ((val & RCAR_USB3_DL_CTRL_FW_SET_DATA0) = 0) +\t\t\t\tbreak; + \n" - ">>> udelay(1); +\t\t} +\t\tif (time = timeout) { +\t\t\tretval = \n" + ">>> + if ((val & RCAR_USB3_DL_CTRL_FW_SET_DATA0) == 0) +\t\t\t\tbreak; + \n" + ">>> udelay(1); +\t\t} +\t\tif (time == timeout) { +\t\t\tretval = \n" ">>> -ETIMEDOUT; +\t\t\tbreak; +\t\t} +\t} + +\ttemp = readl(regs + \n" ">>> RCAR_USB3_DL_CTRL); +\ttemp &= ~RCAR_USB3_DL_CTRL_ENABLE; + \n" ">>> writel(temp, regs + RCAR_USB3_DL_CTRL); + +\tfor (time = 0; time\n" ">>> < timeout; time++) { +\t\tval = readl(regs + RCAR_USB3_DL_CTRL); + \n" ">>> if (val & RCAR_USB3_DL_CTRL_FW_SUCCESS) { +\t\t\tretval = 0; + \n" - ">>> break; +\t\t} +\t\tudelay(1); +\t} +\tif (time = timeout) +\t\tretval = \n" + ">>> break; +\t\t} +\t\tudelay(1); +\t} +\tif (time == timeout) +\t\tretval = \n" ">>> -ETIMEDOUT; + +\trelease_firmware(fw); + +\treturn retval; +} +\n" ">>> +/* This function needs to initialize a \"phy\" of usb before */\n" ">>\n" @@ -105,4 +105,4 @@ "Best regards,\n" Yoshihiro Shimoda -b165e1a9b54df773be5af5fe06b09eca04c8e885eb3d3733be586fe5aa26e96c +19bcfac48113cec6c55e7b4cc3a1f41afec69e3dca657bd4f0b914771a9976e5
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.