提交 05090fc9 编写于 作者: S Sergei Shtylylov 提交者: Greg Kroah-Hartman

[PATCH] USB: Au1xx0: replace casual readl() with au_readl() in the drivers

au_readl() does needed byteswapping, etc.

Cc: Takashi Iwai <tiwai@suse.de>
Cc: Jaroslav Kysela <perex@perex.cz>
Acked-by: NJordan Crouse <jordan.crouse@amd.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 de289fdf
...@@ -67,7 +67,7 @@ static void au1xxx_stop_hc(struct platform_device *dev) ...@@ -67,7 +67,7 @@ static void au1xxx_stop_hc(struct platform_device *dev)
": stopping Au1xxx OHCI USB Controller\n"); ": stopping Au1xxx OHCI USB Controller\n");
/* Disable clock */ /* Disable clock */
au_writel(readl((void *)USB_HOST_CONFIG) & ~USBH_ENABLE_CE, USB_HOST_CONFIG); au_writel(au_readl(USB_HOST_CONFIG) & ~USBH_ENABLE_CE, USB_HOST_CONFIG);
} }
......
...@@ -462,7 +462,7 @@ stop_dac(struct au1550_state *s) ...@@ -462,7 +462,7 @@ stop_dac(struct au1550_state *s)
/* Wait for Transmit Busy to show disabled. /* Wait for Transmit Busy to show disabled.
*/ */
do { do {
stat = readl((void *)PSC_AC97STAT); stat = au_readl(PSC_AC97STAT);
au_sync(); au_sync();
} while ((stat & PSC_AC97STAT_TB) != 0); } while ((stat & PSC_AC97STAT_TB) != 0);
...@@ -491,7 +491,7 @@ stop_adc(struct au1550_state *s) ...@@ -491,7 +491,7 @@ stop_adc(struct au1550_state *s)
/* Wait for Receive Busy to show disabled. /* Wait for Receive Busy to show disabled.
*/ */
do { do {
stat = readl((void *)PSC_AC97STAT); stat = au_readl(PSC_AC97STAT);
au_sync(); au_sync();
} while ((stat & PSC_AC97STAT_RB) != 0); } while ((stat & PSC_AC97STAT_RB) != 0);
...@@ -541,7 +541,7 @@ set_xmit_slots(int num_channels) ...@@ -541,7 +541,7 @@ set_xmit_slots(int num_channels)
/* Wait for Device ready. /* Wait for Device ready.
*/ */
do { do {
stat = readl((void *)PSC_AC97STAT); stat = au_readl(PSC_AC97STAT);
au_sync(); au_sync();
} while ((stat & PSC_AC97STAT_DR) == 0); } while ((stat & PSC_AC97STAT_DR) == 0);
} }
...@@ -573,7 +573,7 @@ set_recv_slots(int num_channels) ...@@ -573,7 +573,7 @@ set_recv_slots(int num_channels)
/* Wait for Device ready. /* Wait for Device ready.
*/ */
do { do {
stat = readl((void *)PSC_AC97STAT); stat = au_readl(PSC_AC97STAT);
au_sync(); au_sync();
} while ((stat & PSC_AC97STAT_DR) == 0); } while ((stat & PSC_AC97STAT_DR) == 0);
} }
...@@ -1995,7 +1995,7 @@ au1550_probe(void) ...@@ -1995,7 +1995,7 @@ au1550_probe(void)
/* Wait for PSC ready. /* Wait for PSC ready.
*/ */
do { do {
val = readl((void *)PSC_AC97STAT); val = au_readl(PSC_AC97STAT);
au_sync(); au_sync();
} while ((val & PSC_AC97STAT_SR) == 0); } while ((val & PSC_AC97STAT_SR) == 0);
...@@ -2018,7 +2018,7 @@ au1550_probe(void) ...@@ -2018,7 +2018,7 @@ au1550_probe(void)
/* Wait for Device ready. /* Wait for Device ready.
*/ */
do { do {
val = readl((void *)PSC_AC97STAT); val = au_readl(PSC_AC97STAT);
au_sync(); au_sync();
} while ((val & PSC_AC97STAT_DR) == 0); } while ((val & PSC_AC97STAT_DR) == 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册