diff options
author | Eddie James <eajames@linux.ibm.com> | 2020-05-05 19:58:21 +0300 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2021-11-01 09:42:39 +0300 |
commit | 0892202b4d0ca7e21a570863db5f7568075af66f (patch) | |
tree | 51cbdd0975db7609e5359ed6e41369041fb9ee87 /include | |
parent | e1e34783f4332ff79a97e94b6578e7a7b990238e (diff) | |
download | linux-0892202b4d0ca7e21a570863db5f7568075af66f.tar.xz |
soc: aspeed: xdma: Add reset ioctl
Users of the XDMA engine need a way to reset it if something goes wrong.
Problems on the host side, or user error, such as incorrect host
address, may result in the DMA operation never completing and no way to
determine what went wrong. Therefore, add an ioctl to reset the engine
so that users can recover in this situation.
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Acked-by: Andrew Jeffery <andrew@aj.id.au>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/1588697905-23444-5-git-send-email-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/aspeed-xdma.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/aspeed-xdma.h b/include/uapi/linux/aspeed-xdma.h index 2efaa6067c39..3a3646fd1e9e 100644 --- a/include/uapi/linux/aspeed-xdma.h +++ b/include/uapi/linux/aspeed-xdma.h @@ -4,8 +4,12 @@ #ifndef _UAPI_LINUX_ASPEED_XDMA_H_ #define _UAPI_LINUX_ASPEED_XDMA_H_ +#include <linux/ioctl.h> #include <linux/types.h> +#define __ASPEED_XDMA_IOCTL_MAGIC 0xb7 +#define ASPEED_XDMA_IOCTL_RESET _IO(__ASPEED_XDMA_IOCTL_MAGIC, 0) + /* * aspeed_xdma_direction * |