| 2c40c787 | 13-Jul-2022 |
Andy Shevchenko <[email protected]> |
dmaengine: hsu: Use GENMASK() consistently
For the masks replace chain of BIT() macros by GENMASK(). While at it, explicitly include bits.h.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.
dmaengine: hsu: Use GENMASK() consistently
For the masks replace chain of BIT() macros by GENMASK(). While at it, explicitly include bits.h.
Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
show more ...
|
| 17b3cf42 | 18-Mar-2016 |
Andy Shevchenko <[email protected]> |
dmaengine: hsu: set maximum allowed segment size for DMA
This tells, for example, IOMMU what the maximum size of a segment the DMA controller can send.
Signed-off-by: Andy Shevchenko <andriy.shevch
dmaengine: hsu: set maximum allowed segment size for DMA
This tells, for example, IOMMU what the maximum size of a segment the DMA controller can send.
Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
show more ...
|
| c36a0176 | 18-Mar-2016 |
Andy Shevchenko <[email protected]> |
dmaengine: hsu: don't check direction of timeouted channel
The timeout capability is only available on the so called DMA write channels, i.e. associated with UART Rx FIFO. It means we don't need to
dmaengine: hsu: don't check direction of timeouted channel
The timeout capability is only available on the so called DMA write channels, i.e. associated with UART Rx FIFO. It means we don't need to check the direction of the channel to handle timeouts.
Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
show more ...
|
| 4f4bc0ab | 18-Mar-2016 |
Andy Shevchenko <[email protected]> |
dmaengine: hsu: correct use of channel status register
There is a typo in documentation regarding to descriptor empty bit (DESCE) which is set to 1 when descriptor is empty. Thus, status register at
dmaengine: hsu: correct use of channel status register
There is a typo in documentation regarding to descriptor empty bit (DESCE) which is set to 1 when descriptor is empty. Thus, status register at the end of a transfer usually returns all DESCE bits set and thus it will never be zero.
Moreover, there are 2 bits (CDESC) that encode current descriptor, on which interrupt has been asserted. In case when we have few descriptors programmed we might have non-zero value.
Remove DESCE and CDESC bits from DMA channel status register (HSU_CH_SR) when reading it.
Fixes: 2b49e0c56741 ("dmaengine: append hsu DMA driver") Cc: [email protected] Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
show more ...
|
| a197f3c7 | 18-Mar-2016 |
Andy Shevchenko <[email protected]> |
dmaengine: hsu: correct residue calculation of active descriptor
The commit f0579c8ceaf1 ("dmaengine: hsu: speed up residue calculation") speeded up calculation of the queued descriptor but broke th
dmaengine: hsu: correct residue calculation of active descriptor
The commit f0579c8ceaf1 ("dmaengine: hsu: speed up residue calculation") speeded up calculation of the queued descriptor but broke the initial residue value for active descriptor.
In accordance with documentation the hardware descriptor is updated each time DMA transfered some bytes. It means we have to calculate a sum of lengths of non-submitted hardware descriptors and whatever current values in the hardware. Do this straightforward.
Fixes: f0579c8ceaf1 ("dmaengine: hsu: speed up residue calculation") Cc: [email protected] Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
show more ...
|
| 4c97ad99 | 13-Oct-2015 |
Heikki Krogerus <[email protected]> |
dmaengine: hsu: remove platform data
There are no platforms where it's not possible to calculate the number of channels based on IO space length, and since that is the only purpose for struct hsu_dm
dmaengine: hsu: remove platform data
There are no platforms where it's not possible to calculate the number of channels based on IO space length, and since that is the only purpose for struct hsu_dma_platform_data, removing it.
Suggested-by: Andy Shevchenko <[email protected]> Signed-off-by: Heikki Krogerus <[email protected]> Acked-by: Vinod Koul <[email protected]> Acked-by: Andy Shevchenko <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|