mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
Merge pull request #53747 from bkchr/raspberry_pi_wifi_fix_backport
linux: Adds patch for fixing wifi on raspberry pi
This commit is contained in:
@@ -58,4 +58,8 @@ rec {
|
||||
};
|
||||
};
|
||||
|
||||
raspberry_pi_wifi_fix = rec {
|
||||
name = "raspberry-pi-wifi-fix";
|
||||
patch = ./raspberry-pi-wifi-fix.patch;
|
||||
};
|
||||
}
|
||||
|
||||
16
pkgs/os-specific/linux/kernel/raspberry-pi-wifi-fix.patch
Normal file
16
pkgs/os-specific/linux/kernel/raspberry-pi-wifi-fix.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
diff --git a/drivers/mmc/host/sdhci-iproc.c b/drivers/mmc/host/sdhci-iproc.c
|
||||
index d0e83db42ae5..94eeed2a1b53 100644
|
||||
--- a/drivers/mmc/host/sdhci-iproc.c
|
||||
+++ b/drivers/mmc/host/sdhci-iproc.c
|
||||
@@ -279,7 +279,10 @@ static int sdhci_iproc_probe(struct platform_device *pdev)
|
||||
|
||||
iproc_host->data = iproc_data;
|
||||
|
||||
- mmc_of_parse(host->mmc);
|
||||
+ ret = mmc_of_parse(host->mmc);
|
||||
+ if (ret)
|
||||
+ goto err;
|
||||
+
|
||||
sdhci_get_of_property(pdev);
|
||||
|
||||
host->mmc->caps |= iproc_host->data->mmc_caps;
|
||||
@@ -14113,6 +14113,7 @@ with pkgs;
|
||||
# when adding a new linux version
|
||||
# kernelPatches.cpu-cgroup-v2."4.11"
|
||||
kernelPatches.modinst_arg_list_too_long
|
||||
kernelPatches.raspberry_pi_wifi_fix
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user