mirror of
https://github.com/armbian/build.git
synced 2026-11-26 23:29:56 +00:00
cix-7.3: let ACPI fixed regulators probe on 7.3.6
Stable commit 8eb49d677 rejects platform devices without an OF node. This also rejects the ACPI PCIe slot regulators. Three PCIe controllers then defer forever, so Ethernet and Wi-Fi are missing. Accept devices with an ACPI companion in the 0033 patch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d647fa44fb
commit
e1c1c72d3d
1 changed files with 13 additions and 3 deletions
|
|
@ -199,7 +199,7 @@ index 111111111111..222222222222 100644
|
|||
|
||||
struct fixed_voltage_data {
|
||||
struct regulator_desc desc;
|
||||
@@ -200,6 +202,47 @@ of_get_fixed_voltage_config(struct device *dev,
|
||||
@@ -201,6 +203,47 @@ of_get_fixed_voltage_config(struct device *dev,
|
||||
return config;
|
||||
}
|
||||
|
||||
|
|
@ -247,7 +247,17 @@ index 111111111111..222222222222 100644
|
|||
static const struct regulator_ops fixed_voltage_ops = {
|
||||
};
|
||||
|
||||
@@ -235,6 +278,11 @@ static int reg_fixed_voltage_probe(struct platform_device *pdev)
|
||||
@@ -226,7 +269,8 @@ static int reg_fixed_voltage_probe(struct platform_device *pdev)
|
||||
enum gpiod_flags gflags;
|
||||
int ret;
|
||||
|
||||
- if (!pdev->dev.of_node && strcmp(pdev->name, "reg-fixed-voltage"))
|
||||
+ if (!pdev->dev.of_node && !has_acpi_companion(&pdev->dev) &&
|
||||
+ strcmp(pdev->name, "reg-fixed-voltage"))
|
||||
return -ENODEV;
|
||||
|
||||
drvdata = devm_kzalloc(&pdev->dev, sizeof(struct fixed_voltage_data),
|
||||
@@ -239,6 +283,11 @@ static int reg_fixed_voltage_probe(struct platform_device *pdev)
|
||||
&drvdata->desc);
|
||||
if (IS_ERR(config))
|
||||
return PTR_ERR(config);
|
||||
|
|
@ -259,7 +269,7 @@ index 111111111111..222222222222 100644
|
|||
} else {
|
||||
config = dev_get_platdata(&pdev->dev);
|
||||
}
|
||||
@@ -323,6 +371,7 @@ static int reg_fixed_voltage_probe(struct platform_device *pdev)
|
||||
@@ -327,6 +376,7 @@ static int reg_fixed_voltage_probe(struct platform_device *pdev)
|
||||
cfg.init_data = config->init_data;
|
||||
cfg.driver_data = drvdata;
|
||||
cfg.of_node = pdev->dev.of_node;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue