Skip to content

Commit

Permalink
HACK: geni: Disable DMA operations
Browse files Browse the repository at this point in the history
Fail DMA operations int he geni serial engine core, as this causes I2C
operations to timeout, preventing the keyboard from probing.

This needs to be investigated further.

Signed-off-by: AArch64 Laptops <aarch64laptops@gmail.com>
  • Loading branch information
AArch64 Laptops committed Feb 22, 2019
1 parent 67efbfa commit 7922b8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/soc/qcom/qcom-geni-se.c
Expand Up @@ -623,6 +623,8 @@ int geni_se_tx_dma_prep(struct geni_se *se, void *buf, size_t len,
struct geni_wrapper *wrapper = se->wrapper;
u32 val;

return -EIO;

*iova = dma_map_single(wrapper->dev, buf, len, DMA_TO_DEVICE);
if (dma_mapping_error(wrapper->dev, *iova))
return -EIO;
Expand Down Expand Up @@ -656,6 +658,8 @@ int geni_se_rx_dma_prep(struct geni_se *se, void *buf, size_t len,
struct geni_wrapper *wrapper = se->wrapper;
u32 val;

return -EIO;

*iova = dma_map_single(wrapper->dev, buf, len, DMA_FROM_DEVICE);
if (dma_mapping_error(wrapper->dev, *iova))
return -EIO;
Expand Down

0 comments on commit 7922b8b

Please sign in to comment.