Comment 26 for bug 111089

Revision history for this message
Domenico Urbano (domurb) wrote :

The suggested commands:

sudo setpci -s 07:05.1 0xCA=0x57 # Write Enable
sudo setpci -s 07:05.1 0xCB=0x02 # (MMC Disable)
sudo setpci -s 07:05.1 0xCA=0x00 # (Write Disable)

Worked perfectly for my HP Pavillon dv6385ea.

@Gurkan Gur: i think that your script is wrong, as it would do something to the FireWire controller. This will be better:

#!/bin/bash
modprobe -r sdhci
setpci -s `lspci | grep "SD\/SDIO\/MMC\/MS\/MSPro" | awk '{print $1}'` 0xCA=0x57
setpci -s `lspci | grep "SD\/SDIO\/MMC\/MS\/MSPro" | awk '{print $1}'` 0xCB=0x02
# setpci -s `lspci | grep "SD\/SDIO\/MMC\/MS\/MSPro" | awk '{print $1}'` 0xCA=0x00
modprobe sdhci