fec8fe8069
Refreshed all patches Remove upstreamed patches. - 103-MIPS-ath79-fix-register-address-in-ath79_ddr_wb_flus.patch - 403-mtd_fix_cfi_cmdset_0002_status_check.patch - 001-4.11-01-mtd-m25p80-consider-max-message-size-in-m25p80_read.patch - 001-4.15-08-bcm63xx_enet-correct-clock-usage.patch - 001-4.15-09-bcm63xx_enet-do-not-write-to-random-DMA-channel-on-B.patch - 900-gen_stats-fix-netlink-stats-padding.patch Introduce a new backported patch to address ext4 breakage, introduced in 4.9.112 - backport-4.9/500-ext4-fix-check-to-prevent-initializing-reserved-inod.patch This patch has been slightly altered to compensate for a new helper function introduced in later kernels. Also add ARM64_SSBD symbol to ARM64 targets still running kernel 4.9 Compile-tested on: ar71xx, bcm2710 Runtime-tested on: ar71xx Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
From d9c8bc8c1408f3e8529db6e4e04017b4c579c342 Mon Sep 17 00:00:00 2001
|
|
From: Pawel Dembicki <paweldembicki@gmail.com>
|
|
Date: Sun, 18 Feb 2018 17:08:04 +0100
|
|
Subject: [PATCH] w1: gpio: fix problem with platfom data in w1-gpio
|
|
|
|
In devices, where fdt is used, is impossible to apply platform data
|
|
without proper fdt node.
|
|
|
|
This patch allow to use platform data in devices with fdt.
|
|
|
|
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
|
|
---
|
|
drivers/w1/masters/w1-gpio.c | 7 +++----
|
|
1 file changed, 3 insertions(+), 4 deletions(-)
|
|
|
|
--- a/drivers/w1/masters/w1-gpio.c
|
|
+++ b/drivers/w1/masters/w1-gpio.c
|
|
@@ -113,17 +113,16 @@ static int w1_gpio_probe_dt(struct platf
|
|
static int w1_gpio_probe(struct platform_device *pdev)
|
|
{
|
|
struct w1_bus_master *master;
|
|
- struct w1_gpio_platform_data *pdata;
|
|
+ struct w1_gpio_platform_data *pdata = dev_get_platdata(&pdev->dev);
|
|
int err;
|
|
|
|
- if (of_have_populated_dt()) {
|
|
+ if (of_have_populated_dt() && !pdata) {
|
|
err = w1_gpio_probe_dt(pdev);
|
|
if (err < 0)
|
|
return err;
|
|
+ pdata = dev_get_platdata(&pdev->dev);
|
|
}
|
|
|
|
- pdata = dev_get_platdata(&pdev->dev);
|
|
-
|
|
if (!pdata) {
|
|
dev_err(&pdev->dev, "No configuration data\n");
|
|
return -ENXIO;
|