File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -2985,7 +2985,7 @@ static int imx9_dmapreflight(struct sdio_dev_s *dev,
2985
2985
/* DMA must be possible to the buffer and it must be word (4 bytes) aligned
2986
2986
*/
2987
2987
2988
- if (buffer != priv -> rxbuffer && ((uintptr_t )buffer & 3 ) != 0 )
2988
+ if (((uintptr_t )buffer & 3 ) != 0 )
2989
2989
{
2990
2990
mcerr ("non word aligned buffer:%p\n" , buffer );
2991
2991
return - EFAULT ;
@@ -3039,11 +3039,12 @@ static int imx9_dmarecvsetup(struct sdio_dev_s *dev,
3039
3039
struct imx9_dev_s * priv = (struct imx9_dev_s * )dev ;
3040
3040
DEBUGASSERT (priv != NULL && buffer != NULL && buflen > 0 );
3041
3041
3042
- #if defined(CONFIG_ARCH_HAVE_SDIO_PREFLIGHT )
3043
- /* Normaly imx9_dmapreflight is called prior to imx9_dmarecvsetup
3044
- * except for the case where the CSR read is done at initalization
3042
+ #if defined(CONFIG_ARCH_HAVE_SDIO_PREFLIGHT ) && \
3043
+ !defined(CONFIG_ARM64_DCACHE_DISABLE )
3044
+ /* Normally imx9_dmapreflight is called prior to imx9_dmarecvsetup
3045
+ * except for the case where the CSR read is done at initialization.
3045
3046
*
3046
- * With a total read size of less then priv->rxbuffer we can
3047
+ * With a total read size of less then priv->rxbuffer we can
3047
3048
* handle the unaligned case herein, using the rxbuffer.
3048
3049
*
3049
3050
* Any other case is a fault.
You can’t perform that action at this time.
0 commit comments