[lkml]   [2019]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 3/3] mmc: sdhci-tegra: drop ->get_ro() implementation
On Tue, Jan 15, 2019 at 05:28:37PM +0100, Thomas Petazzoni wrote:
> The SDHCI core is know properly checking for the state of a WP GPIO,
> so there is no longer any need for the sdhci-tegra code to implement
> ->get_ro() using mmc_gpio_get_ro().
> Signed-off-by: Thomas Petazzoni <>
> ---
> Note: this patch has only been compiled tested, as I don't have the
> hardware to test it.
> ---
> drivers/mmc/host/sdhci-tegra.c | 9 ---------
> 1 file changed, 9 deletions(-)

So, if I apply this on top of next-20180116 I do get a BUG from
bio_split() on line 1833 in block/bio.c. However, that BUG also exists
without these patches.

More importantly, read-only detection with this applied still works on
for example Jetson TK1:

[ 28.547261] mmc1: new high speed SDHC card at address 59b4
[ 28.558814] mmcblk1: mmc1:59b4 SDC 14.7 GiB (ro)


Tested-by: Thierry Reding <>


Acked-by: Thierry Reding <>
[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2019-01-16 14:23    [W:0.658 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site