mmc: fsl_esdhc: Fix wp_enable issue
authorYe Li <ye.li@nxp.com>
Mon, 7 Jan 2019 09:10:27 +0000 (09:10 +0000)
committerPeng Fan <peng.fan@nxp.com>
Fri, 3 May 2019 12:04:30 +0000 (20:04 +0800)
commitda8e1f3cd413423563ee37f915944b76f9b862db
tree1cfd4948fba91c27c4d565f33f7db83b9c9e020e
parent72a89e0da5ac6a4ab929b15a2b656f04f50767f6
mmc: fsl_esdhc: Fix wp_enable issue

The wp-gpios property is used for gpio, if this is set, the WP pin is muxed
to gpio function, can't be used as internal WP checking. However the codes
remain to use internal WP checking.

This patch changes to examine the "fsl,wp-controller" for enabling internal WP
checking, and "wp-gpios" for muxing to gpio.

Signed-off-by: Ye Li <ye.li@nxp.com>
drivers/mmc/fsl_esdhc.c