diff options
author | Jérôme Pouiller <jerome.pouiller@silabs.com> | 2022-01-13 11:54:57 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-01-25 18:19:40 +0300 |
commit | 7a1fa8a4363b0cb3610a0808e98eb2d35f262398 (patch) | |
tree | 928a7beddb0a99ff1c78feeeb39790f7b8aa321f /drivers/staging/wfx/hwio.c | |
parent | a8589360f515f6332f9c5b7da6c728641f9d5b63 (diff) | |
download | linux-7a1fa8a4363b0cb3610a0808e98eb2d35f262398.tar.xz |
staging: wfx: fix comment correctness
Using DMA with stack allocated buffers is not supported, whatever the
value of CONFIG_VMAP_STACK.
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20220113085524.1110708-5-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wfx/hwio.c')
-rw-r--r-- | drivers/staging/wfx/hwio.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/staging/wfx/hwio.c b/drivers/staging/wfx/hwio.c index 30eb888830d2..393bcb1e2f4e 100644 --- a/drivers/staging/wfx/hwio.c +++ b/drivers/staging/wfx/hwio.c @@ -14,18 +14,6 @@ #include "bus.h" #include "traces.h" -/* - * Internal helpers. - * - * About CONFIG_VMAP_STACK: - * When CONFIG_VMAP_STACK is enabled, it is not possible to run DMA on stack - * allocated data. Functions below that work with registers (aka functions - * ending with "32") automatically reallocate buffers with kmalloc. However, - * functions that work with arbitrary length buffers let's caller to handle - * memory location. In doubt, enable CONFIG_DEBUG_SG to detect badly located - * buffer. - */ - static int read32(struct wfx_dev *wdev, int reg, u32 *val) { int ret; |