summaryrefslogtreecommitdiff
path: root/drivers/peci
diff options
context:
space:
mode:
authorKarol Wachowski <karol.wachowski@intel.com>2021-02-04 11:24:13 +0300
committerJae Hyun Yoo <jae.hyun.yoo@linux.intel.com>2021-11-05 10:22:14 +0300
commit8196d930ca5f6db3161f43b12aab367397c5e76a (patch)
tree04e1fb6286e56b07ece68438a7aeaec7cb1a2c40 /drivers/peci
parentd83fa00075473264829562add1cf07ca53a76820 (diff)
downloadlinux-8196d930ca5f6db3161f43b12aab367397c5e76a.tar.xz
peci: mctp: Enable PECI over MCTP
Remove modparam to enable peci-mctp probe and enable it by default. Tested: Verified that peci-mctp driver probes correctly: peci peci-1: cdev of adapter [peci-mctp] registered as minor 1 Manually verified that applications using PECI work correctly. Signed-off-by: Karol Wachowski <karol.wachowski@intel.com>
Diffstat (limited to 'drivers/peci')
-rw-r--r--drivers/peci/busses/peci-mctp.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/peci/busses/peci-mctp.c b/drivers/peci/busses/peci-mctp.c
index 97c4bcb7d3e6..ac22e4e40049 100644
--- a/drivers/peci/busses/peci-mctp.c
+++ b/drivers/peci/busses/peci-mctp.c
@@ -7,10 +7,6 @@
#include <linux/peci.h>
#include <linux/platform_device.h>
-static bool enable_probe;
-module_param_named(enable, enable_probe, bool, 0644);
-MODULE_PARM_DESC(enable, "Enable peci-mctp device (default: false)");
-
#define PCIE_SET_DATA_LEN(x, val) ((x)->len_lo |= (val))
#define PCIE_SET_TARGET_ID(x, val) ((x)->target |= (swab16(val)))
#define PCIE_PKT_ALIGN(x) ALIGN(x, sizeof(u32))
@@ -352,12 +348,6 @@ static int mctp_peci_probe(struct platform_device *pdev)
struct mctp_peci *priv;
int ret;
- if (!enable_probe) {
- dev_info(&pdev->dev,
- "peci-mctp is disabled - use peci-mctp.enable=1 to enable it\n");
- return 0;
- }
-
adapter = peci_alloc_adapter(&pdev->dev, sizeof(*priv));
if (!adapter)
return -ENOMEM;