-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Hans de Goede
authored and
Ulf Hansson
committed
Apr 2, 2015
1 parent
2391b34
commit 81f8a7b
Showing
2 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
mmc-card / eMMC bindings | ||
------------------------ | ||
|
||
This documents describes the devicetree bindings for a mmc-host controller | ||
child node describing a mmc-card / an eMMC, see "Use of Function subnodes" | ||
in mmc.txt | ||
|
||
Required properties: | ||
-compatible : Must be "mmc-card" | ||
-reg : Must be <0> | ||
|
||
Optional properties: | ||
-broken-hpi : Use this to indicate that the mmc-card has a broken hpi | ||
implementation, and that hpi should not be used | ||
|
||
Example: | ||
|
||
&mmc2 { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&mmc2_pins_a>; | ||
vmmc-supply = <®_vcc3v3>; | ||
bus-width = <8>; | ||
non-removable; | ||
status = "okay"; | ||
|
||
mmccard: mmccard@0 { | ||
reg = <0>; | ||
compatible = "mmc-card"; | ||
broken-hpi; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters