diff --git a/platform/mellanox/hw-management/Add-modprobe-config-for-at24-module.patch b/platform/mellanox/hw-management/Add-modprobe-config-for-at24-module.patch new file mode 100644 index 000000000000..37d57da4e937 --- /dev/null +++ b/platform/mellanox/hw-management/Add-modprobe-config-for-at24-module.patch @@ -0,0 +1,21 @@ +From 2f70f5df445820fb86e3bd7f95707e0fb97b553f Mon Sep 17 00:00:00 2001 +From: Volodymyr Samotiy +Date: Thu, 16 Aug 2018 17:21:37 +0300 +Subject: Add modprobe config for "at24" module + +Signed-off-by: Volodymyr Samotiy +--- + usr/etc/modprobe.d/mellanox-system-whitelist.conf | 1 + + 1 file changed, 1 insertion(+) + create mode 100644 usr/etc/modprobe.d/mellanox-system-whitelist.conf + +diff --git a/usr/etc/modprobe.d/mellanox-system-whitelist.conf b/usr/etc/modprobe.d/mellanox-system-whitelist.conf +new file mode 100644 +index 0000000..a3eef57 +--- /dev/null ++++ b/usr/etc/modprobe.d/mellanox-system-whitelist.conf +@@ -0,0 +1 @@ ++options at24 io_limit=32 +-- +1.9.1 + diff --git a/platform/mellanox/hw-management/Add-systemd-service-config.patch b/platform/mellanox/hw-management/Add-systemd-service-config.patch index bef62b9ea3e7..ce16bb712ee1 100644 --- a/platform/mellanox/hw-management/Add-systemd-service-config.patch +++ b/platform/mellanox/hw-management/Add-systemd-service-config.patch @@ -29,7 +29,7 @@ new file mode 100644 index 0000000..d18916d --- /dev/null +++ b/debian/hw-management.service -@@ -0,0 +1,11 @@ +@@ -0,0 +1,10 @@ +[Unit] +Description=Mellanox Hardware Management + @@ -37,7 +37,6 @@ index 0000000..d18916d +Type=oneshot +EnvironmentFile=/host/machine.conf +ExecStart=/bin/bash -c "/etc/mlnx/mlnx-hw-management start" -+ExecStop=/bin/bash -c "/etc/mlnx/mlnx-hw-management stop" + +[Install] +WantedBy=multi-user.target