MLK-14662 mmc: debugfs: add runtime pm when cat ios or clock file node
authorHaibo Chen <haibo.chen@nxp.com>
Mon, 17 Apr 2017 09:43:00 +0000 (17:43 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:22:01 +0000 (15:22 -0500)
commite62eb96153028c6528658a7915091d065cedf798
tree5b2653ad2fac1afde67ac3f1ca6a84455fbb5b89
parent48cde402f741eabd891712cd41dc13d90cfac8ed
MLK-14662 mmc: debugfs: add runtime pm when cat ios or clock file node

MMC core code add 'MMC_CAP_RUNTIME_RESUME', postpone the real card
resume operation from bus_resume to bus_runtime_resume. So after
system resume, for non-removable-card, it still not really resume.
At this point, if user cat the ios or clock node, only get zero
data although the mmc/sd card is still present.

This patch add mmc_get_card() to make sure card really resume back
when user cat ios or clock debugfs file node, then user can get the
correct information.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
drivers/mmc/core/debugfs.c