Skip to content
Commit 74755c1f authored by Ian Roberts's avatar Ian Roberts Committed by Jaehoon Chung
Browse files

mmc: sdhci: introduce adma_write_desc() hook to struct sdhci_ops



Add this hook so that it can be overridden with driver specific
implementations. We also let the original sdhci_adma_write_desc()
accept &desc so that the function can set its new value. Then export
the function so that it could be reused by driver's specific
implementations.

The above is a port of Linux kernel commit 54552e4948cbf

In addition, allow drivers to allocate their own ADMA descriptor
tables if additional space is required.

Finally, fix the assignment of adma_addr to fix compiler warning
on 64-bit platforms that still use 32-bit DMA addressing.

Co-developed-by: default avatarNathan Barrett-Morrison <nathan.morrison@timesys.com>
Signed-off-by: default avatarNathan Barrett-Morrison <nathan.morrison@timesys.com>
Co-developed-by: default avatarGreg Malysa <greg.malysa@timesys.com>
Signed-off-by: default avatarGreg Malysa <greg.malysa@timesys.com>
Signed-off-by: default avatarIan Roberts <ian.roberts@timesys.com>
parent d097f9e1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment