diff options
author | Karol Wachowski <karol.wachowski@intel.com> | 2021-02-04 11:24:13 +0300 |
---|---|---|
committer | Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com> | 2021-10-20 01:10:37 +0300 |
commit | 94ad36d2a181c96c18f7a9838f67343a3e51dee5 (patch) | |
tree | 6d60fcaa76e1ddb77c41386f3d54db7ec7ed85aa | |
parent | da2bdb3fe3d98743c059a5ac8d4efeff3ef1403c (diff) | |
download | linux-94ad36d2a181c96c18f7a9838f67343a3e51dee5.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>
-rw-r--r-- | drivers/peci/busses/peci-mctp.c | 10 |
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; |