Hi Linus, On Mon, Nov 12, 2018 at 03:12:31PM +0100, Linus Walleij wrote: > Modifty the JZ4740 driver to retrieve card detect and write > protect GPIO pins from GPIO descriptors instead of hard-coded > global numbers. Augment the only board file using this in the > process and cut down on passed in platform data. > > Preserve the code setting the caps2 flags for CD and WP > as active low or high since the slot GPIO code currently > ignores the gpiolib polarity inversion semantice and uses > the raw accessors to read the GPIO lines, but set the right > polarity flags in the descriptor table for jz4740. > > Cc: Paul Cercueil <paul@xxxxxxxxxxxxxxx> > Cc: linux-mips@xxxxxxxxxxxxxx > Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Acked-by: Paul Burton <paul.burton@xxxxxxxx> Thanks, Paul > --- > .../mips/include/asm/mach-jz4740/jz4740_mmc.h | 2 -- > arch/mips/jz4740/board-qi_lb60.c | 12 ++++++++--- > drivers/mmc/host/jz4740_mmc.c | 20 +++++++++---------- > 3 files changed, 19 insertions(+), 15 deletions(-)