staging: fsl-mc:Added support for atomic portals
authorJ. German Rivera <German.Rivera@freescale.com>
Sat, 17 Oct 2015 20:33:14 +0000 (15:33 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Oct 2015 03:54:46 +0000 (20:54 -0700)
commit3f95ad21855f750fe0428853214754f414b82daf
treefea8b03ef5d723ab9951bb59fcda714bacc6508e
parent140305e77aa449b492af0fdd2c0d51b07a3315b2
staging: fsl-mc:Added support for atomic portals

Refactored mc_send_command() to support two flavors of polling:
- preemptible (for non-atomic portals), which was already supported.
  It calls usleep_range() between polling iterations.
- non-preemptible (for atomic portals), which is needed when
  mc_send_command() is called with interrupts disabled.
  It calls udelay() between polling iterations.

Signed-off-by: J. German Rivera <German.Rivera@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/mc-sys.c
drivers/staging/fsl-mc/include/mc-sys.h