]> asedeno.scripts.mit.edu Git - linux.git/commit
mailbox: bcm-pdc: streamline rx code
authorRob Rice <rob.rice@broadcom.com>
Mon, 14 Nov 2016 18:25:59 +0000 (13:25 -0500)
committerJassi Brar <jaswinder.singh@linaro.org>
Mon, 19 Dec 2016 14:40:20 +0000 (20:10 +0530)
commite004c7e7d3b873a671fecf04f197982806e380eb
tree769acd7c4f6ea8f659dea84f4aa9704dfe893723
parentab8d1b2d564f6649547b97e65806556c42f93a26
mailbox: bcm-pdc: streamline rx code

Remove the unnecessary rmb() from the receive path.

If the rx ring has multiple messages ready, avoid reading
last_rx_curr multiple times from the register.

Signed-off-by: Rob Rice <rob.rice@broadcom.com>
Reviewed-by: Andy Gospodarek <gospo@broadcom.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/bcm-pdc-mailbox.c