mmc: Add support for marking hpi as broken through devicetree
authorHans de Goede <hdegoede@redhat.com>
Wed, 1 Apr 2015 15:26:23 +0000 (17:26 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 2 Apr 2015 08:59:10 +0000 (10:59 +0200)
commit81f8a7be6642b4c26ab681b2e0f4c4120a6de1b0
tree24868729a06b2b5fe678e7c9649c7e5a90cff9dc
parent2391b340ca5b7dd041a2bf86afe12bc004acb583
mmc: Add support for marking hpi as broken through devicetree

The eMMC on a tablet I've will stop working / communicating as soon as
the kernel executes:

mmc_switch(card, EXT_CSD_CMD_SET_NORMAL,
  EXT_CSD_HPI_MGMT, 1,
  card->ext_csd.generic_cmd6_time);

There seems to be no way to reliable identify eMMC-s which have a broken
hpi implementation, but at least for eMMC's which are soldered onto a board
we can work around this by specifying that hpi is broken in devicetree.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Documentation/devicetree/bindings/mmc/mmc-card.txt [new file with mode: 0644]
drivers/mmc/core/mmc.c