On the StarFive VisionFive 2 the card detect GPIO is not set to input

Bug #2069410 reported by Heinrich Schuchardt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
u-boot (Ubuntu)
Confirmed
Low
Heinrich Schuchardt

Bug Description

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.

This leads to showing errors

    Card did not respond to voltage select! : -110

if not SD-Card is inserted.

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.

description: updated
Revision history for this message
Heinrich Schuchardt (xypron) wrote :

Patch sent upstream. Waiting for review.

[PATCH 1/1] mmc: consider cd-gpios in Synopsys DesignWare driver
https://lore<email address hidden>/

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.