diff options
author | Jason M. Bills <jason.m.bills@intel.com> | 2022-03-02 22:00:50 +0300 |
---|---|---|
committer | jmbills <jasonm.bills@yahoo.com> | 2022-03-11 00:27:19 +0300 |
commit | d640749c5f44fac25f8bd109c16ecadb5b79da97 (patch) | |
tree | 62774c72bb4a584ff0765a094925a8cab76f65aa /drivers/hwmon | |
parent | 198326a3f02818159f6c775e26f910f101b476d8 (diff) | |
download | linux-d640749c5f44fac25f8bd109c16ecadb5b79da97.tar.xz |
peci: add domain ID to peci_command() calls
Since the new struct that includes domain ID will be used within the
kernel, calls to peci_command() will use the value provided. This
sets domain ID to 0 for all current peci_command() calls.
Signed-off-by: Jason M. Bills <jason.m.bills@intel.com>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/peci-cputemp.c | 3 | ||||
-rw-r--r-- | drivers/hwmon/peci-dimmtemp.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/drivers/hwmon/peci-cputemp.c b/drivers/hwmon/peci-cputemp.c index bac8db9a289a..a4a7f8cc0108 100644 --- a/drivers/hwmon/peci-cputemp.c +++ b/drivers/hwmon/peci-cputemp.c @@ -113,6 +113,7 @@ static int get_temp_targets(struct peci_cputemp *priv) re_msg.params.pci_cfg.function = 1; re_msg.params.pci_cfg.reg = 0x94; re_msg.rx_len = 4; + re_msg.domain_id = 0; ret = peci_command(priv->mgr->client->adapter, PECI_CMD_RD_END_PT_CFG, sizeof(re_msg), &re_msg); @@ -379,6 +380,7 @@ static int check_resolved_cores(struct peci_cputemp *priv) msg.bus = 14; msg.reg = 0xd4; msg.rx_len = 4; + msg.domain_id = 0; ret = peci_command(priv->mgr->client->adapter, PECI_CMD_RD_PCI_CFG_LOCAL, sizeof(msg), &msg); @@ -411,6 +413,7 @@ static int check_resolved_cores(struct peci_cputemp *priv) msg.bus = 1; msg.reg = 0xb4; msg.rx_len = 4; + msg.domain_id = 0; ret = peci_command(priv->mgr->client->adapter, PECI_CMD_RD_PCI_CFG_LOCAL, sizeof(msg), &msg); diff --git a/drivers/hwmon/peci-dimmtemp.c b/drivers/hwmon/peci-dimmtemp.c index e05d5961cbc1..4b042c275ceb 100644 --- a/drivers/hwmon/peci-dimmtemp.c +++ b/drivers/hwmon/peci-dimmtemp.c @@ -89,6 +89,7 @@ static int get_dimm_temp(struct peci_dimmtemp *priv, int dimm_no) re_msg.params.pci_cfg.function = 1; re_msg.params.pci_cfg.reg = 0x94; re_msg.rx_len = 4; + re_msg.domain_id = 0; ret = peci_command(priv->mgr->client->adapter, PECI_CMD_RD_END_PT_CFG, sizeof(re_msg), &re_msg); @@ -121,6 +122,7 @@ static int get_dimm_temp(struct peci_dimmtemp *priv, int dimm_no) re_msg.params.pci_cfg.device = 0; re_msg.params.pci_cfg.function = 2; re_msg.params.pci_cfg.reg = 0xd4; + re_msg.domain_id = 0; ret = peci_command(priv->mgr->client->adapter, PECI_CMD_RD_END_PT_CFG, sizeof(re_msg), &re_msg); |