diff options
Diffstat (limited to 'drivers/video/pm2fb.c')
-rw-r--r-- | drivers/video/pm2fb.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/video/pm2fb.c b/drivers/video/pm2fb.c index 9db1f2e1dadf..5591dfb22b18 100644 --- a/drivers/video/pm2fb.c +++ b/drivers/video/pm2fb.c | |||
@@ -193,8 +193,8 @@ static inline void pm2v_RDAC_WR(struct pm2fb_par *p, s32 idx, u32 v) | |||
193 | #else | 193 | #else |
194 | static inline void WAIT_FIFO(struct pm2fb_par *p, u32 a) | 194 | static inline void WAIT_FIFO(struct pm2fb_par *p, u32 a) |
195 | { | 195 | { |
196 | while (pm2_RD(p, PM2R_IN_FIFO_SPACE) < a); | 196 | while (pm2_RD(p, PM2R_IN_FIFO_SPACE) < a) |
197 | mb(); | 197 | cpu_relax(); |
198 | } | 198 | } |
199 | #endif | 199 | #endif |
200 | 200 | ||
@@ -328,7 +328,7 @@ static void reset_card(struct pm2fb_par *p) | |||
328 | pm2_WR(p, PM2R_RESET_STATUS, 0); | 328 | pm2_WR(p, PM2R_RESET_STATUS, 0); |
329 | mb(); | 329 | mb(); |
330 | while (pm2_RD(p, PM2R_RESET_STATUS) & PM2F_BEING_RESET) | 330 | while (pm2_RD(p, PM2R_RESET_STATUS) & PM2F_BEING_RESET) |
331 | ; | 331 | cpu_relax(); |
332 | mb(); | 332 | mb(); |
333 | #ifdef CONFIG_FB_PM2_FIFO_DISCONNECT | 333 | #ifdef CONFIG_FB_PM2_FIFO_DISCONNECT |
334 | DPRINTK("FIFO disconnect enabled\n"); | 334 | DPRINTK("FIFO disconnect enabled\n"); |
@@ -1041,8 +1041,7 @@ static int pm2fb_sync(struct fb_info *info) | |||
1041 | mb(); | 1041 | mb(); |
1042 | do { | 1042 | do { |
1043 | while (pm2_RD(par, PM2R_OUT_FIFO_WORDS) == 0) | 1043 | while (pm2_RD(par, PM2R_OUT_FIFO_WORDS) == 0) |
1044 | udelay(10); | 1044 | cpu_relax(); |
1045 | rmb(); | ||
1046 | } while (pm2_RD(par, PM2R_OUT_FIFO) != PM2TAG(PM2R_SYNC)); | 1045 | } while (pm2_RD(par, PM2R_OUT_FIFO) != PM2TAG(PM2R_SYNC)); |
1047 | 1046 | ||
1048 | return 0; | 1047 | return 0; |