linux/drivers/mmc/core
Anson Huang 60feca8f59 mmc: core: cd_label must be last entry of mmc_gpio struct
commit bfd694d5e2 ("mmc: core: Add tunable delay
before detecting card after card is inserted") adds
"u32 cd_debounce_delay_ms" to the last of mmc_gpio
struct and cause "char cd_label[0]" NOT work as string
pointer of card detect label, when "cat /proc/interrupts",
the devname for card detect gpio is incorrect as below:

144:          0  gpio-mxc  22 Edge      ▒
161:          0  gpio-mxc   7 Edge      ▒

Move the cd_label field down to fix this, and drop the
zero from the array size to prevent future similar bugs,
the result is correct as below:

144:          0  gpio-mxc  22 Edge      2198000.mmc cd
161:          0  gpio-mxc   7 Edge      2190000.mmc cd

Fixes: bfd694d5e2 ("mmc: core: Add tunable delay before detecting card after card is inserted")
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Tested-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2018-07-03 07:12:35 +02:00
..
block.c MMC core: 2018-06-05 16:11:43 -07:00
block.h
bus.c
bus.h
card.h
core.c mmc: Throttle calls to MMC_SEND_STATUS during mmc_do_erase() 2018-05-29 12:24:26 +02:00
core.h
debugfs.c
host.c mmc: core: Move calls to ->prepare_hs400_tuning() closer to mmc code 2018-05-29 12:24:26 +02:00
host.h
Kconfig
Makefile
mmc.c mmc: core: Move calls to ->prepare_hs400_tuning() closer to mmc code 2018-05-29 12:24:26 +02:00
mmc_ops.c
mmc_ops.h
mmc_test.c
pwrseq.c
pwrseq.h
pwrseq_emmc.c
pwrseq_sd8787.c
pwrseq_simple.c
queue.c mmc: complete requests from ->timeout 2018-05-29 08:59:21 -06:00
queue.h
quirks.h
sd.c
sd.h
sd_ops.c
sd_ops.h
sdio.c
sdio_bus.c
sdio_bus.h
sdio_cis.c
sdio_cis.h
sdio_io.c
sdio_irq.c
sdio_ops.c
sdio_ops.h
sdio_uart.c tty: replace ->proc_fops with ->proc_show 2018-05-16 07:24:30 +02:00
slot-gpio.c mmc: core: cd_label must be last entry of mmc_gpio struct 2018-07-03 07:12:35 +02:00
slot-gpio.h