platform/mellanox: fix the mlx-bootctl sysfs
This is a follow-up commit for the sysfs attributes to change
from DRIVER_ATTR to DEVICE_ATTR according to some initial comments.
In such case, it's better to point the sysfs path to the device
itself instead of the driver. The ABI document is also updated.
Fixes: 79e29cb8fb
("platform/mellanox: Add bootctl driver for Mellanox BlueField Soc")
Signed-off-by: Liming Sun <lsun@mellanox.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
parent
d1eef1c619
commit
77dcc95e20
|
@ -1,4 +1,4 @@
|
||||||
What: /sys/bus/platform/devices/MLNXBF04:00/driver/lifecycle_state
|
What: /sys/bus/platform/devices/MLNXBF04:00/lifecycle_state
|
||||||
Date: Oct 2019
|
Date: Oct 2019
|
||||||
KernelVersion: 5.5
|
KernelVersion: 5.5
|
||||||
Contact: "Liming Sun <lsun@mellanox.com>"
|
Contact: "Liming Sun <lsun@mellanox.com>"
|
||||||
|
@ -10,7 +10,7 @@ Description:
|
||||||
GA Non-Secured - Non-Secure chip and not able to change state
|
GA Non-Secured - Non-Secure chip and not able to change state
|
||||||
RMA - Return Merchandise Authorization
|
RMA - Return Merchandise Authorization
|
||||||
|
|
||||||
What: /sys/bus/platform/devices/MLNXBF04:00/driver/post_reset_wdog
|
What: /sys/bus/platform/devices/MLNXBF04:00/post_reset_wdog
|
||||||
Date: Oct 2019
|
Date: Oct 2019
|
||||||
KernelVersion: 5.5
|
KernelVersion: 5.5
|
||||||
Contact: "Liming Sun <lsun@mellanox.com>"
|
Contact: "Liming Sun <lsun@mellanox.com>"
|
||||||
|
@ -19,7 +19,7 @@ Description:
|
||||||
to reboot the chip and recover it to the old state if the new
|
to reboot the chip and recover it to the old state if the new
|
||||||
boot partition fails.
|
boot partition fails.
|
||||||
|
|
||||||
What: /sys/bus/platform/devices/MLNXBF04:00/driver/reset_action
|
What: /sys/bus/platform/devices/MLNXBF04:00/reset_action
|
||||||
Date: Oct 2019
|
Date: Oct 2019
|
||||||
KernelVersion: 5.5
|
KernelVersion: 5.5
|
||||||
Contact: "Liming Sun <lsun@mellanox.com>"
|
Contact: "Liming Sun <lsun@mellanox.com>"
|
||||||
|
@ -30,7 +30,7 @@ Description:
|
||||||
emmc - boot from the onchip eMMC
|
emmc - boot from the onchip eMMC
|
||||||
emmc_legacy - boot from the onchip eMMC in legacy (slow) mode
|
emmc_legacy - boot from the onchip eMMC in legacy (slow) mode
|
||||||
|
|
||||||
What: /sys/bus/platform/devices/MLNXBF04:00/driver/second_reset_action
|
What: /sys/bus/platform/devices/MLNXBF04:00/second_reset_action
|
||||||
Date: Oct 2019
|
Date: Oct 2019
|
||||||
KernelVersion: 5.5
|
KernelVersion: 5.5
|
||||||
Contact: "Liming Sun <lsun@mellanox.com>"
|
Contact: "Liming Sun <lsun@mellanox.com>"
|
||||||
|
@ -44,7 +44,7 @@ Description:
|
||||||
swap_emmc - swap the primary / secondary boot partition
|
swap_emmc - swap the primary / secondary boot partition
|
||||||
none - cancel the action
|
none - cancel the action
|
||||||
|
|
||||||
What: /sys/bus/platform/devices/MLNXBF04:00/driver/secure_boot_fuse_state
|
What: /sys/bus/platform/devices/MLNXBF04:00/secure_boot_fuse_state
|
||||||
Date: Oct 2019
|
Date: Oct 2019
|
||||||
KernelVersion: 5.5
|
KernelVersion: 5.5
|
||||||
Contact: "Liming Sun <lsun@mellanox.com>"
|
Contact: "Liming Sun <lsun@mellanox.com>"
|
||||||
|
|
|
@ -309,7 +309,7 @@ static struct platform_driver mlxbf_bootctl_driver = {
|
||||||
.probe = mlxbf_bootctl_probe,
|
.probe = mlxbf_bootctl_probe,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "mlxbf-bootctl",
|
.name = "mlxbf-bootctl",
|
||||||
.groups = mlxbf_bootctl_groups,
|
.dev_groups = mlxbf_bootctl_groups,
|
||||||
.acpi_match_table = mlxbf_bootctl_acpi_ids,
|
.acpi_match_table = mlxbf_bootctl_acpi_ids,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue