aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/broadcom-wl/patches/913-avoid-dbe-on-ifs_ctl-readw-hack.patch
blob: 412bce92c83b423a33e190882dd868bf5e182c89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/driver/linux_osl.c
+++ b/driver/linux_osl.c
@@ -723,6 +723,9 @@ osl_readl(volatile uint32 *r)
 uint16
 osl_readw(volatile uint16 *r)
 {
+	uint32 addr = (uintptr)r & 0xffff3fff;
+	if (addr == 0xa8000688)	/* ifs_ctl */
+		readl(r);
 	return (readw(r));
 }
 
class="gi">+ static struct gpio_chip gemini_gpio_chip = { .label = "Gemini", .direction_input = gemini_gpio_direction_input, .get = gemini_gpio_get, .direction_output = gemini_gpio_direction_output, .set = gemini_gpio_set, + .to_irq = gemini_gpio_to_irq, .base = 0, .ngpio = GPIO_PORT_NUM * 32, };