Re: Onboard SD card doesn't work anymore after the 'mmc-v5.4-2' updates
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2019-10-28 08:50:00
Also in:
linux-mmc
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2019-10-28 08:50:00
Also in:
linux-mmc
On Fri, 2019-10-25 at 23:39 -0700, Christoph Hellwig wrote:
On Fri, Oct 25, 2019 at 05:28:45PM -0500, Rob Herring wrote:quoted
This doesn't work?: if (IS_ENABLED(CONFIG_PPC) || of_dma_is_coherent(dev-quoted
of_node))value |= ESDHC_DMA_SNOOP; else value &= ~ESDHC_DMA_SNOOP; While I said use the compatibles, using the kconfig symbol is easier than sorting out which compatibles are PPC SoCs. Though if that's already done elsewhere in the driver, you could set a flag and use that here. I'd be surprised if this was the only difference between ARM and PPC SoCs for this block.I think the right thing is a Kconfig variable that the architectures selects which says if OF is by default coherent or incoherent, and then use that in of_dma_is_coherent.
That too. We could also define properties for both ways so we can override the default either way. Cheers, Ben.