diff options
author | J. German Rivera <German.Rivera@freescale.com> | 2015-10-17 15:33:14 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-17 20:54:46 -0700 |
commit | 3f95ad21855f750fe0428853214754f414b82daf (patch) | |
tree | fea8b03ef5d723ab9951bb59fcda714bacc6508e /drivers/staging/fsl-mc/include | |
parent | 140305e77aa449b492af0fdd2c0d51b07a3315b2 (diff) | |
download | linux-3f95ad21855f750fe0428853214754f414b82daf.tar.bz2 |
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>
Diffstat (limited to 'drivers/staging/fsl-mc/include')
-rw-r--r-- | drivers/staging/fsl-mc/include/mc-sys.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/fsl-mc/include/mc-sys.h b/drivers/staging/fsl-mc/include/mc-sys.h index 7d44d8ceef9f..15e19af31115 100644 --- a/drivers/staging/fsl-mc/include/mc-sys.h +++ b/drivers/staging/fsl-mc/include/mc-sys.h @@ -40,6 +40,11 @@ #include <linux/io.h> #include <linux/dma-mapping.h> +/** + * Bit masks for a MC I/O object (struct fsl_mc_io) flags + */ +#define FSL_MC_IO_ATOMIC_CONTEXT_PORTAL 0x0001 + struct fsl_mc_resource; struct mc_command; |