Public bug reported:

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.

** Affects: u-boot (Ubuntu)
     Importance: Low
     Assignee: Heinrich Schuchardt (xypron)
         Status: Confirmed


** Tags: foundations-todo

** Description changed:

  The card detect pin of the SD card slot needs to be a GPIO input. But
  command
  
-     gpio status GPIO41
+     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,
+     gpio_request_by_name(dev, "cd-gpios", 0, &priv->cd_gpio,
  GPIOD_IS_IN);
  
  This is missing in drivers/mmc/snps_dw_mmc.c.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2069410

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/u-boot/+bug/2069410/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to