freebsd-dev/sys/arm/ti
Ian Lepore c5727c468f Revert to this driver's historic behavior: assume an sd card is writable
if the fdt data doesn't provide a gpio pin for reading the write protect
switch and also doesn't contain a "wp-disable" property.

In r311735 the long-bitrotted code in this driver for using the non-
standard fdt "mmchs-wp-gpio-pin" property was replaced with new common
support code for handling write-protect and card-detect gpio pins.  The
old code never found a property with that name, and the logic was to
assume that no gpio pin meant that the card was not write protected.

The new common code behaves differently.  If there is no fdt data saying
what to do about sensing write protect, the value in the standard SDHCI
PRESENT_STATE register is used.  On this hardware, if there is no signal
for write protect muxed into the sd controller then that bit in the
register indicates write protect.

The real problem here is the fdt data, which should contain "wp-disable"
properties for eMMC and micro-sd slots where write protect is not even
an option in the hardware, but we are not in control of that data, it
comes from linux.  So we have to make the same flawed assumption in our
driver that the corresponding linux driver has: no info means no protect.

Reported by:	several users on the arm@ list
Pointy hat:	me, for not testing enough before committing r311735
2017-02-22 03:49:46 +00:00
..
am335x Remake support for SMP kernel on UP cpu: 2017-02-02 06:14:44 +00:00
cpsw Be a little more pedantic here, the TRM says the hardware is supposed to 2017-01-22 17:24:00 +00:00
omap4 Remake support for SMP kernel on UP cpu: 2017-02-02 06:14:44 +00:00
twl ARM: Remove unused includes. 2016-10-09 10:25:47 +00:00
usb Move the pandaboard initialization from the probe to the attach method. 2016-11-19 13:11:03 +00:00
aintc.c Change the TI aintc driver name to "ti_aintc" to avoid the conflict with 2016-11-15 19:09:36 +00:00
files.ti Start to remove the old pre-INTRNG code from the arm platforms. These have 2016-11-08 12:15:57 +00:00
std.ti Split CPU_CORTEXA into CPU_CORTEXA8, for the Cortex-A8, and CPU_CORTEXA_MP, 2016-10-04 12:25:44 +00:00
ti_adc.c Use the correct OF_getencprop over OF_getprop + fdt32_to_cpu to read 2016-11-14 12:03:08 +00:00
ti_adcreg.h Add evdev support to TI ADC/touchscreen driver 2016-09-11 19:08:21 +00:00
ti_adcvar.h Modularize evdev 2016-10-02 03:20:31 +00:00
ti_cpuid.c Don't attempt to get the chip revision if it's not a supported TI chip 2016-11-19 15:35:10 +00:00
ti_cpuid.h The only remaining offender that used ti_chip() without checking for 2016-11-19 15:43:22 +00:00
ti_edma3.c Stop including fdt_common.h from the arm code when it's unneeded. 2016-11-14 11:41:22 +00:00
ti_edma3.h
ti_gpio_if.m Rework the Ti GPIO code to allow for both the OMAP4 and AM335X attachments 2014-10-18 17:51:34 +00:00
ti_gpio.c Fix ti_gpio_detach() to avoid crashing if something goes wrong. 2016-11-15 18:57:25 +00:00
ti_gpio.h Start to remove the old pre-INTRNG code from the arm platforms. These have 2016-11-08 12:15:57 +00:00
ti_hwmods.c Stop including fdt_common.h from the arm code when it's unneeded. 2016-11-14 11:41:22 +00:00
ti_hwmods.h Add a routine to return the hardware instance/unit number from ti,hwmods, 2015-08-12 17:23:15 +00:00
ti_i2c.c sys/arm: Minor spelling fixes. 2016-05-04 15:48:59 +00:00
ti_i2c.h
ti_machdep.c All armv6 platforms have the same implementation of platform_lastaddr. 2016-12-16 10:31:13 +00:00
ti_mbox.c Stop including fdt_common.h from the arm code when it's unneeded. 2016-11-14 11:41:22 +00:00
ti_mbox.h
ti_pinmux.c Resolv the remaining conflicting symbols between omap4 and am335x, and 2016-11-19 01:51:56 +00:00
ti_pinmux.h Switch TI platform support code from using FreeBSD's custom-baked DTS 2015-05-22 03:16:18 +00:00
ti_prcm.c ARM: Remove unused includes. 2016-10-09 10:25:47 +00:00
ti_prcm.h Add the SPI driver for am335x. 2016-03-29 19:11:04 +00:00
ti_pruss.c Stop including fdt_common.h from the arm code when it's unneeded. 2016-11-14 11:41:22 +00:00
ti_pruss.h ti_pruss: pass the correct IRQ to userland. 2015-05-20 06:23:01 +00:00
ti_scm.c Move including fdt_pinctrl.h after openfirm.h to get th edefinition of 2016-11-14 11:52:22 +00:00
ti_scm.h Switch TI platform support code from using FreeBSD's custom-baked DTS 2015-05-22 03:16:18 +00:00
ti_sdhci.c Revert to this driver's historic behavior: assume an sd card is writable 2017-02-22 03:49:46 +00:00
ti_sdma.c Stop including fdt_common.h from the arm code when it's unneeded. 2016-11-14 11:41:22 +00:00
ti_sdma.h
ti_sdmareg.h
ti_smc.h
ti_smc.S Fix the order of includes so machine/asm.h is first. 2016-11-07 11:56:18 +00:00
ti_spi.c ofw_spi: Parse property for the SPI mode and CS polarity. 2016-12-18 14:54:20 +00:00
ti_spireg.h Add the SPI driver for am335x. 2016-03-29 19:11:04 +00:00
ti_spivar.h Add the SPI driver for am335x. 2016-03-29 19:11:04 +00:00
ti_wdt.c Stop including fdt_common.h from the arm code when it's unneeded. 2016-11-14 11:41:22 +00:00
ti_wdt.h Add a driver for the TI watchdog. 2014-10-18 16:59:21 +00:00
tivar.h