From: Dmitry Torokhov Date: Tue, 22 Oct 2019 16:34:59 +0000 (-0700) Subject: Input: st1232 - note that the receive buffer is DMA-safe X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=833c2c083856ef3077b51c908ec401fa0a130d57;p=linux.git Input: st1232 - note that the receive buffer is DMA-safe The receiving buffer is allocated separately from the main driver data structure, and is naturally DMA-safe, so mark it as such when building I2C transfer message. Tested-by: Matthias Fend Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/st1232.c b/drivers/input/touchscreen/st1232.c index 0aee330731c91..a4a3b82ee69de 100644 --- a/drivers/input/touchscreen/st1232.c +++ b/drivers/input/touchscreen/st1232.c @@ -66,7 +66,7 @@ static int st1232_ts_read_data(struct st1232_ts_data *ts) }, { .addr = client->addr, - .flags = I2C_M_RD, + .flags = I2C_M_RD | I2C_M_DMA_SAFE, .len = ts->read_buf_len, .buf = ts->read_buf, }