[PATCH V3] i2c: i2c-qcom-geni: Add shutdown callback for i2c

2020-09-07 Thread Roja Rani Yarubandi
ing data can be used to call geni_se_tx_dma_unprep and geni_se_rx_dma_unprep functions. Fixes: 37692de5d523 ("i2c: i2c-qcom-geni: Add bus driver for the Qualcomm GENI I2C controller") Signed-off-by: Roja Rani Yarubandi --- Changes in V2: - As per Stephen's comments added seperate functi

[PATCH V2 2/2] i2c: i2c-qcom-geni: Add shutdown callback for i2c

2020-08-21 Thread Roja Rani Yarubandi
shutdown callback to i2c driver to unmap DMA mappings during system "reboot" or "shutdown". Signed-off-by: Roja Rani Yarubandi --- Changes in V2: - As per Stephen's comments added seperate function for stop transfer, fixed minor nitpicks. drivers/i2c/busses/

[PATCH V2 0/2] Implement Shutdown callback for i2c

2020-08-21 Thread Roja Rani Yarubandi
Store DMA mapping data in geni_i2c_dev struct. Implement Shutdown callback for geni i2c driver. Changes in V2: - Changed commit text. - As per Stephen's comments added separate function for stop transfer. Roja Rani Yarubandi (2): i2c: i2c-qcom-geni: Store DMA mapping data in geni_i2c_dev

[PATCH V2 1/2] i2c: i2c-qcom-geni: Store DMA mapping data in geni_i2c_dev struct

2020-08-21 Thread Roja Rani Yarubandi
Store DMA mapping data in geni_i2c_dev struct to enhance DMA mapping data scope. For example during shutdown callback to unmap DMA mapping, this stored DMA mapping data can be used to call geni_se_tx_dma_unprep and geni_se_rx_dma_unprep functions. Signed-off-by: Roja Rani Yarubandi --- Changes

[PATCH 0/2] Implement Shutdown callback for i2c

2020-08-17 Thread Roja Rani Yarubandi
Add tx_dma, rx_dma and xfer_len in geni_i2c_dev struct. Implement Shutdown callback for geni i2c driver. Roja Rani Yarubandi (2): i2c: i2c-qcom-geni: Add tx_dma, rx_dma and xfer_len to geni_i2c_dev struct i2c: i2c-qcom-geni: Add shutdown callback for i2c drivers/i2c/busses/i2c-qcom

[PATCH 1/2] i2c: i2c-qcom-geni: Add tx_dma, rx_dma and xfer_len to geni_i2c_dev struct

2020-08-17 Thread Roja Rani Yarubandi
Adding tx_dma, rx_dma and xfer length in geni_i2c_dev struct to store DMA mapping data to enhance its scope. For example during shutdown callback to unmap DMA mapping, these new struct members can be used as part of geni_se_tx_dma_unprep and geni_se_rx_dma_unprep calls. Signed-off-by: Roja Rani

[PATCH 2/2] i2c: i2c-qcom-geni: Add shutdown callback for i2c

2020-08-17 Thread Roja Rani Yarubandi
shutdown callback to i2c driver to unmap DMA mappings during system "reboot" or "shutdown". Signed-off-by: Roja Rani Yarubandi --- drivers/i2c/busses/i2c-qcom-geni.c | 36 ++ include/linux/qcom-geni-se.h | 5 + 2 files changed, 41 inser