Skip to contentSkip to conversation

ehci-ppc4xx: Prepare for usage of readl()/writel() accessors

PATCH New Alexey Brodkin 3 participants 3 messages Apr 17, 2017 – Apr 19, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ehci-ppc4xx: Prepare for usage of readl()/writel() accessors

We used to have opencoded ehci_readl()/writel() which required no external functions to be called.

Now with attempt to switch to generic readl()/writel() accessors
we see a missing declaration of those accessors in ehci-ppc4xx.
Something like that happens if applied
http://patchwork.ozlabs.org/patch/726714/:
---------------->8---------------
CC drivers/usb/host/ehci-ppc4xx.o
drivers/usb/host/ehci-ppc4xx.c: In function 'ehci_hcd_init':
drivers/usb/host/ehci-ppc4xx.c:23:3: warning: implicit declaration of function 'readl' [-Wimplicit-function-declaration]
HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase)));
^
---------------->8---------------

Signed-off-by Alexey Brodkin <abrodkin at synopsys.com>
Cc Tom Rini <trini at konsulko.com>
Cc Marek Vasut <marex at denx.de>
Cc Stefan Roese <sr at denx.de>
---
 drivers/usb/host/ehci-ppc4xx.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/host/ehci-ppc4xx.c +1 -0
index 9aee3ff786cb..9d235776428e 100644
@@ -8,6 +8,7 @@
  */
 #include <common.h>
 #include <usb.h>
+#include <asm/io.h>
 
 #include "ehci.h"
 
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 ehci-ppc4xx: Prepare for usage of readl()/writel() accessors

Quoted 29 lines · Alexey Brodkin

We used to have opencoded ehci_readl()/writel() which required no external functions to be called.

Now with attempt to switch to generic readl()/writel() accessors
we see a missing declaration of those accessors in ehci-ppc4xx.
Something like that happens if applied
http://patchwork.ozlabs.org/patch/726714/:
---------------->8---------------
CC drivers/usb/host/ehci-ppc4xx.o
drivers/usb/host/ehci-ppc4xx.c: In function 'ehci_hcd_init':
drivers/usb/host/ehci-ppc4xx.c:23:3: warning: implicit declaration of function 'readl' [-Wimplicit-function-declaration]

   HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase)));
   ^

---------------->8---------------

Signed-off-by Alexey Brodkin <abrodkin at synopsys.com>
Cc Tom Rini <trini at konsulko.com>
Cc Marek Vasut <marex at denx.de>
Cc Stefan Roese <sr at denx.de>
---
 drivers/usb/host/ehci-ppc4xx.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/host/ehci-ppc4xx.c +0 -0
index 9aee3ff786cb..9d235776428e 100644

drivers/usb/host/ehci-ppc4xx.c line 14

Quoted 7 lines
drivers/usb/host/ehci-ppc4xx.c +1 -0
@@ -8,6 +8,7 @@
  */
 #include <common.h>
 #include <usb.h>
+#include <asm/io.h>
 
 #include "ehci.h"
 

Alexey, thanks for looking into this:

Reviewed-by Stefan Roese <sr at denx.de>

Thanks,
Stefan

Applied
#2 lore raw

PATCH 1/1 ehci-ppc4xx: Prepare for usage of readl()/writel() accessors

Quoted 36 lines · Stefan Roese
Quoted 35 lines · Alexey Brodkin

We used to have opencoded ehci_readl()/writel() which required no external functions to be called.

Now with attempt to switch to generic readl()/writel() accessors we see a missing declaration of those accessors in ehci-ppc4xx. Something like that happens if applied
http://patchwork.ozlabs.org/patch/726714/:
---------------->8---------------
CC drivers/usb/host/ehci-ppc4xx.o
drivers/usb/host/ehci-ppc4xx.c: In function 'ehci_hcd_init':
drivers/usb/host/ehci-ppc4xx.c:23:3: warning: implicit declaration of function 'readl' [-Wimplicit-function-declaration]

   HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase)));
   ^

---------------->8---------------

Signed-off-by Alexey Brodkin <abrodkin at synopsys.com>
Cc Tom Rini <trini at konsulko.com>
Cc Marek Vasut <marex at denx.de>
Cc Stefan Roese <sr at denx.de>
---
 drivers/usb/host/ehci-ppc4xx.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/host/ehci-ppc4xx.c +1 -0
index 9aee3ff786cb..9d235776428e 100644
@@ -8,6 +8,7 @@
  */
 #include <common.h>
 #include <usb.h>
+#include <asm/io.h>
 
Quoted 7 lines

drivers/usb/host/ehci-ppc4xx.c line 14

Quoted 3 lines
drivers/usb/host/ehci-ppc4xx.c +0 -0
 #include "ehci.h"
 

Alexey, thanks for looking into this:

Reviewed-by Stefan Roese <sr at denx.de>

Applied, thanks.

Signature · 2 lines
Best regards,
Marek Vasut