/* Drain any stale responses */
for (;;) {
- val = readl(®s->status);
+ val = readl(®s->mail0_status);
if (val & BCM2835_MBOX_STATUS_RD_EMPTY)
break;
if (get_timer(0) >= endtime) {
/* Wait for space to send */
for (;;) {
- val = readl(®s->status);
+ val = readl(®s->mail1_status);
if (!(val & BCM2835_MBOX_STATUS_WR_FULL))
break;
if (get_timer(0) >= endtime) {
/* Wait for the response */
for (;;) {
- val = readl(®s->status);
+ val = readl(®s->mail0_status);
if (!(val & BCM2835_MBOX_STATUS_RD_EMPTY))
break;
if (get_timer(0) >= endtime) {