]> git.baikalelectronics.ru Git - kernel.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)
commit0099d5ef87fc6bf4f18264b0bce5cafd77ac550a
tree769acd7c4f6ea8f659dea84f4aa9704dfe893723
parent9fa09e924c1f401079e79d311f5e8001ce55793e
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