The card detect pin of the SD card slot needs to be a GPIO input. But command
gpio status GPIO41
shows that it is output.
Switching to input is the task of the MMC driver. Other drivers have a call
gpio_request_by_name(dev, "cd-gpios", 0, &priv->cd_gpio, GPIOD_IS_IN);
This is missing in drivers/mmc/snps_dw_mmc.c.
The card detect pin of the SD card slot needs to be a GPIO input. But command
gpio status GPIO41
shows that it is output.
Switching to input is the task of the MMC driver. Other drivers have a call
gpio_ request_ by_name( dev, "cd-gpios", 0, &priv->cd_gpio, GPIOD_IS_IN);
This is missing in drivers/ mmc/snps_ dw_mmc. c.