Hi Linus, On Sun, Dec 30, 2018 at 8:57 PM Linus Walleij <linus.walleij@xxxxxxxxxx> wrote: > > On Sat, Dec 29, 2018 at 1:57 PM Martin Blumenstingl > <martin.blumenstingl@xxxxxxxxxxxxxx> wrote: > > > However, while reviewing the .dts files for the 32-bit Amlogic Meson > > boards I found that the cd-gpios are specified incorrectly in the .dts. > > Documentation/devicetree/bindings/mmc/mmc.txt states: "[...] using the > > "cd-inverted" property means, that the CD line is active high, i.e. it > > is high, when a card is inserted". > > This is not the case on all currently supported 32-bit Meson boards, so > > this switches the cd-gpios > > - from GPIO_ACTIVE_HIGH with the "cd-inverted" property being set > > - to GPIO_ACTIVE_LOW with the "cd-inverted" property being absent > > > > This fix also works even if the following two commits are reverted: > > - 89a5e15bcba87d ("gpio/mmc/of: Respect polarity in the device tree") > > - 81c85ec15a1946 ("gpio: OF: Parse MMC-specific CD and WP properties") > > Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx> thank you for reviewing my series! > Thanks for looking into this, I think fixing the device trees is > orthogonal to fixing the issue I created, let's fix both! I fully agree. if I still have time I'll look into a patch for the MMC core later today, otherwise I'll try to do it tomorrow Regards Martin