|
@@ -17,8 +17,6 @@ Signed-off-by: Pawel Dembicki <[email protected]>
|
|
drivers/power/reset/linkstation-poweroff.c | 43 ++++++++++++++++++++++
|
|
drivers/power/reset/linkstation-poweroff.c | 43 ++++++++++++++++++++++
|
|
1 file changed, 43 insertions(+)
|
|
1 file changed, 43 insertions(+)
|
|
|
|
|
|
-diff --git a/drivers/power/reset/linkstation-poweroff.c b/drivers/power/reset/linkstation-poweroff.c
|
|
|
|
-index 8691cf98600d..2a92b6052cac 100644
|
|
|
|
--- a/drivers/power/reset/linkstation-poweroff.c
|
|
--- a/drivers/power/reset/linkstation-poweroff.c
|
|
+++ b/drivers/power/reset/linkstation-poweroff.c
|
|
+++ b/drivers/power/reset/linkstation-poweroff.c
|
|
@@ -19,6 +19,7 @@
|
|
@@ -19,6 +19,7 @@
|
|
@@ -38,7 +36,7 @@ index 8691cf98600d..2a92b6052cac 100644
|
|
struct power_off_cfg {
|
|
struct power_off_cfg {
|
|
char *mdio_node_name;
|
|
char *mdio_node_name;
|
|
void (*phy_set_reg)(bool restart);
|
|
void (*phy_set_reg)(bool restart);
|
|
-@@ -76,11 +79,48 @@ static void linkstation_mvphy_reg_intn(bool restart)
|
|
|
|
|
|
+@@ -76,11 +79,48 @@ err:
|
|
dev_err(&phydev->mdio.dev, "Write register failed, %d\n", rc);
|
|
dev_err(&phydev->mdio.dev, "Write register failed, %d\n", rc);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -87,7 +85,7 @@ index 8691cf98600d..2a92b6052cac 100644
|
|
static int linkstation_reboot_notifier(struct notifier_block *nb,
|
|
static int linkstation_reboot_notifier(struct notifier_block *nb,
|
|
unsigned long action, void *unused)
|
|
unsigned long action, void *unused)
|
|
{
|
|
{
|
|
-@@ -109,6 +149,9 @@ static const struct of_device_id ls_poweroff_of_match[] = {
|
|
|
|
|
|
+@@ -109,6 +149,9 @@ static const struct of_device_id ls_powe
|
|
{ .compatible = "buffalo,ls421de",
|
|
{ .compatible = "buffalo,ls421de",
|
|
.data = &linkstation_power_off_cfg,
|
|
.data = &linkstation_power_off_cfg,
|
|
},
|
|
},
|
|
@@ -97,6 +95,3 @@ index 8691cf98600d..2a92b6052cac 100644
|
|
{ },
|
|
{ },
|
|
};
|
|
};
|
|
|
|
|
|
---
|
|
|
|
-2.25.1
|
|
|
|
-
|
|
|