* [PATCH v2 1/1] x86/platform/iosf_mbi: Remove duplicate definitions
@ 2015-11-11 17:59 Andy Shevchenko
2015-11-24 9:50 ` Andy Shevchenko
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Andy Shevchenko @ 2015-11-11 17:59 UTC (permalink / raw)
To: linux-kernel, linux-i2c, linux-pm
Cc: Andy Shevchenko, Thomas Gleixner, Ingo Molnar, Peter Anvin,
Wolfram Sang, Zhang Rui, Eduardo Valentin, Hock Leong Kweh
The read and write opcodes are global for all units on SoC and even across
Intel SoCs. Remove duplication of corresponding constants. At the same time
convert all current users.
No functional change.
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Anvin <hpa@zytor.com>
Cc: Wolfram Sang <wsa@the-dreams.de>
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Eduardo Valentin <edubezval@gmail.com>
Cc: Hock Leong Kweh <hock.leong.kweh@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
Since v1:
- satisfy kbuild robot
arch/x86/include/asm/iosf_mbi.h | 49 +++++-----------------
arch/x86/platform/atom/punit_atom_debug.c | 7 +---
arch/x86/platform/intel-quark/imr.c | 28 +++++--------
drivers/i2c/busses/i2c-designware-baytrail.c | 17 +++-----
drivers/powercap/intel_rapl.c | 10 ++---
drivers/thermal/intel_quark_dts_thermal.c | 61 ++++++++++++++--------------
drivers/thermal/intel_soc_dts_iosf.c | 43 ++++++++++----------
7 files changed, 85 insertions(+), 130 deletions(-)
diff --git a/arch/x86/include/asm/iosf_mbi.h b/arch/x86/include/asm/iosf_mbi.h
index b72ad0f..cdc5f63 100644
--- a/arch/x86/include/asm/iosf_mbi.h
+++ b/arch/x86/include/asm/iosf_mbi.h
@@ -1,5 +1,5 @@
/*
- * iosf_mbi.h: Intel OnChip System Fabric MailBox access support
+ * Intel OnChip System Fabric MailBox access support
*/
#ifndef IOSF_MBI_SYMS_H
@@ -16,6 +16,16 @@
#define MBI_MASK_LO 0x000000FF
#define MBI_ENABLE 0xF0
+/* IOSF SB read/write opcodes */
+#define MBI_MMIO_READ 0x00
+#define MBI_MMIO_WRITE 0x01
+#define MBI_CR_READ 0x06
+#define MBI_CR_WRITE 0x07
+#define MBI_REG_READ 0x10
+#define MBI_REG_WRITE 0x11
+#define MBI_ESRAM_READ 0x12
+#define MBI_ESRAM_WRITE 0x13
+
/* Baytrail available units */
#define BT_MBI_UNIT_AUNIT 0x00
#define BT_MBI_UNIT_SMC 0x01
@@ -28,50 +38,13 @@
#define BT_MBI_UNIT_SATA 0xA3
#define BT_MBI_UNIT_PCIE 0xA6
-/* Baytrail read/write opcodes */
-#define BT_MBI_AUNIT_READ 0x10
-#define BT_MBI_AUNIT_WRITE 0x11
-#define BT_MBI_SMC_READ 0x10
-#define BT_MBI_SMC_WRITE 0x11
-#define BT_MBI_CPU_READ 0x10
-#define BT_MBI_CPU_WRITE 0x11
-#define BT_MBI_BUNIT_READ 0x10
-#define BT_MBI_BUNIT_WRITE 0x11
-#define BT_MBI_PMC_READ 0x06
-#define BT_MBI_PMC_WRITE 0x07
-#define BT_MBI_GFX_READ 0x00
-#define BT_MBI_GFX_WRITE 0x01
-#define BT_MBI_SMIO_READ 0x06
-#define BT_MBI_SMIO_WRITE 0x07
-#define BT_MBI_USB_READ 0x06
-#define BT_MBI_USB_WRITE 0x07
-#define BT_MBI_SATA_READ 0x00
-#define BT_MBI_SATA_WRITE 0x01
-#define BT_MBI_PCIE_READ 0x00
-#define BT_MBI_PCIE_WRITE 0x01
-
/* Quark available units */
#define QRK_MBI_UNIT_HBA 0x00
#define QRK_MBI_UNIT_HB 0x03
#define QRK_MBI_UNIT_RMU 0x04
#define QRK_MBI_UNIT_MM 0x05
-#define QRK_MBI_UNIT_MMESRAM 0x05
#define QRK_MBI_UNIT_SOC 0x31
-/* Quark read/write opcodes */
-#define QRK_MBI_HBA_READ 0x10
-#define QRK_MBI_HBA_WRITE 0x11
-#define QRK_MBI_HB_READ 0x10
-#define QRK_MBI_HB_WRITE 0x11
-#define QRK_MBI_RMU_READ 0x10
-#define QRK_MBI_RMU_WRITE 0x11
-#define QRK_MBI_MM_READ 0x10
-#define QRK_MBI_MM_WRITE 0x11
-#define QRK_MBI_MMESRAM_READ 0x12
-#define QRK_MBI_MMESRAM_WRITE 0x13
-#define QRK_MBI_SOC_READ 0x06
-#define QRK_MBI_SOC_WRITE 0x07
-
#if IS_ENABLED(CONFIG_IOSF_MBI)
bool iosf_mbi_available(void);
diff --git a/arch/x86/platform/atom/punit_atom_debug.c b/arch/x86/platform/atom/punit_atom_debug.c
index 5ca8ead..81c769e 100644
--- a/arch/x86/platform/atom/punit_atom_debug.c
+++ b/arch/x86/platform/atom/punit_atom_debug.c
@@ -25,8 +25,6 @@
#include <asm/cpu_device_id.h>
#include <asm/iosf_mbi.h>
-/* Side band Interface port */
-#define PUNIT_PORT 0x04
/* Power gate status reg */
#define PWRGT_STATUS 0x61
/* Subsystem config/status Video processor */
@@ -85,9 +83,8 @@ static int punit_dev_state_show(struct seq_file *seq_file, void *unused)
seq_puts(seq_file, "\n\nPUNIT NORTH COMPLEX DEVICES :\n");
while (punit_devp->name) {
- status = iosf_mbi_read(PUNIT_PORT, BT_MBI_PMC_READ,
- punit_devp->reg,
- &punit_pwr_status);
+ status = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ,
+ punit_devp->reg, &punit_pwr_status);
if (status) {
seq_printf(seq_file, "%9s : Read Failed\n",
punit_devp->name);
diff --git a/arch/x86/platform/intel-quark/imr.c b/arch/x86/platform/intel-quark/imr.c
index 0ee619f..c1bdafa 100644
--- a/arch/x86/platform/intel-quark/imr.c
+++ b/arch/x86/platform/intel-quark/imr.c
@@ -111,23 +111,19 @@ static int imr_read(struct imr_device *idev, u32 imr_id, struct imr_regs *imr)
u32 reg = imr_id * IMR_NUM_REGS + idev->reg_base;
int ret;
- ret = iosf_mbi_read(QRK_MBI_UNIT_MM, QRK_MBI_MM_READ,
- reg++, &imr->addr_lo);
+ ret = iosf_mbi_read(QRK_MBI_UNIT_MM, MBI_REG_READ, reg++, &imr->addr_lo);
if (ret)
return ret;
- ret = iosf_mbi_read(QRK_MBI_UNIT_MM, QRK_MBI_MM_READ,
- reg++, &imr->addr_hi);
+ ret = iosf_mbi_read(QRK_MBI_UNIT_MM, MBI_REG_READ, reg++, &imr->addr_hi);
if (ret)
return ret;
- ret = iosf_mbi_read(QRK_MBI_UNIT_MM, QRK_MBI_MM_READ,
- reg++, &imr->rmask);
+ ret = iosf_mbi_read(QRK_MBI_UNIT_MM, MBI_REG_READ, reg++, &imr->rmask);
if (ret)
return ret;
- return iosf_mbi_read(QRK_MBI_UNIT_MM, QRK_MBI_MM_READ,
- reg++, &imr->wmask);
+ return iosf_mbi_read(QRK_MBI_UNIT_MM, MBI_REG_READ, reg++, &imr->wmask);
}
/**
@@ -151,31 +147,27 @@ static int imr_write(struct imr_device *idev, u32 imr_id,
local_irq_save(flags);
- ret = iosf_mbi_write(QRK_MBI_UNIT_MM, QRK_MBI_MM_WRITE, reg++,
- imr->addr_lo);
+ ret = iosf_mbi_write(QRK_MBI_UNIT_MM, MBI_REG_WRITE, reg++, imr->addr_lo);
if (ret)
goto failed;
- ret = iosf_mbi_write(QRK_MBI_UNIT_MM, QRK_MBI_MM_WRITE,
- reg++, imr->addr_hi);
+ ret = iosf_mbi_write(QRK_MBI_UNIT_MM, MBI_REG_WRITE, reg++, imr->addr_hi);
if (ret)
goto failed;
- ret = iosf_mbi_write(QRK_MBI_UNIT_MM, QRK_MBI_MM_WRITE,
- reg++, imr->rmask);
+ ret = iosf_mbi_write(QRK_MBI_UNIT_MM, MBI_REG_WRITE, reg++, imr->rmask);
if (ret)
goto failed;
- ret = iosf_mbi_write(QRK_MBI_UNIT_MM, QRK_MBI_MM_WRITE,
- reg++, imr->wmask);
+ ret = iosf_mbi_write(QRK_MBI_UNIT_MM, MBI_REG_WRITE, reg++, imr->wmask);
if (ret)
goto failed;
/* Lock bit must be set separately to addr_lo address bits. */
if (lock) {
imr->addr_lo |= IMR_LOCK;
- ret = iosf_mbi_write(QRK_MBI_UNIT_MM, QRK_MBI_MM_WRITE,
- reg - IMR_NUM_REGS, imr->addr_lo);
+ ret = iosf_mbi_write(QRK_MBI_UNIT_MM, MBI_REG_WRITE,
+ reg - IMR_NUM_REGS, imr->addr_lo);
if (ret)
goto failed;
}
diff --git a/drivers/i2c/busses/i2c-designware-baytrail.c b/drivers/i2c/busses/i2c-designware-baytrail.c
index 7d7ae97..e38c2bb 100644
--- a/drivers/i2c/busses/i2c-designware-baytrail.c
+++ b/drivers/i2c/busses/i2c-designware-baytrail.c
@@ -34,8 +34,7 @@ static int get_sem(struct device *dev, u32 *sem)
u32 data;
int ret;
- ret = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ, PUNIT_SEMAPHORE,
- &data);
+ ret = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ, PUNIT_SEMAPHORE, &data);
if (ret) {
dev_err(dev, "iosf failed to read punit semaphore\n");
return ret;
@@ -50,21 +49,19 @@ static void reset_semaphore(struct device *dev)
{
u32 data;
- if (iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ,
- PUNIT_SEMAPHORE, &data)) {
+ if (iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ, PUNIT_SEMAPHORE, &data)) {
dev_err(dev, "iosf failed to reset punit semaphore during read\n");
return;
}
data &= ~PUNIT_SEMAPHORE_BIT;
- if (iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE,
- PUNIT_SEMAPHORE, data))
+ if (iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE, PUNIT_SEMAPHORE, data))
dev_err(dev, "iosf failed to reset punit semaphore during write\n");
}
static int baytrail_i2c_acquire(struct dw_i2c_dev *dev)
{
- u32 sem;
+ u32 sem = PUNIT_SEMAPHORE_ACQUIRE;
int ret;
unsigned long start, end;
@@ -77,8 +74,7 @@ static int baytrail_i2c_acquire(struct dw_i2c_dev *dev)
return 0;
/* host driver writes to side band semaphore register */
- ret = iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE,
- PUNIT_SEMAPHORE, PUNIT_SEMAPHORE_ACQUIRE);
+ ret = iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE, PUNIT_SEMAPHORE, sem);
if (ret) {
dev_err(dev->dev, "iosf punit semaphore request failed\n");
return ret;
@@ -102,8 +98,7 @@ static int baytrail_i2c_acquire(struct dw_i2c_dev *dev)
dev_err(dev->dev, "punit semaphore timed out, resetting\n");
reset_semaphore(dev->dev);
- ret = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ,
- PUNIT_SEMAPHORE, &sem);
+ ret = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ, PUNIT_SEMAPHORE, &sem);
if (ret)
dev_err(dev->dev, "iosf failed to read punit semaphore\n");
else
diff --git a/drivers/powercap/intel_rapl.c b/drivers/powercap/intel_rapl.c
index cc97f08..fa07809 100644
--- a/drivers/powercap/intel_rapl.c
+++ b/drivers/powercap/intel_rapl.c
@@ -988,16 +988,16 @@ static void set_floor_freq_atom(struct rapl_domain *rd, bool enable)
}
if (!power_ctrl_orig_val)
- iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_PMC_READ,
- rapl_defaults->floor_freq_reg_addr,
- &power_ctrl_orig_val);
+ iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_CR_READ,
+ rapl_defaults->floor_freq_reg_addr,
+ &power_ctrl_orig_val);
mdata = power_ctrl_orig_val;
if (enable) {
mdata &= ~(0x7f << 8);
mdata |= 1 << 8;
}
- iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_PMC_WRITE,
- rapl_defaults->floor_freq_reg_addr, mdata);
+ iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_CR_WRITE,
+ rapl_defaults->floor_freq_reg_addr, mdata);
}
static u64 rapl_compute_time_window_core(struct rapl_package *rp, u64 value,
diff --git a/drivers/thermal/intel_quark_dts_thermal.c b/drivers/thermal/intel_quark_dts_thermal.c
index 5ed90e6..5d33b35 100644
--- a/drivers/thermal/intel_quark_dts_thermal.c
+++ b/drivers/thermal/intel_quark_dts_thermal.c
@@ -125,8 +125,8 @@ static int soc_dts_enable(struct thermal_zone_device *tzd)
struct soc_sensor_entry *aux_entry = tzd->devdata;
int ret;
- ret = iosf_mbi_read(QRK_MBI_UNIT_RMU, QRK_MBI_RMU_READ,
- QRK_DTS_REG_OFFSET_ENABLE, &out);
+ ret = iosf_mbi_read(QRK_MBI_UNIT_RMU, MBI_REG_READ,
+ QRK_DTS_REG_OFFSET_ENABLE, &out);
if (ret)
return ret;
@@ -137,8 +137,8 @@ static int soc_dts_enable(struct thermal_zone_device *tzd)
if (!aux_entry->locked) {
out |= QRK_DTS_ENABLE_BIT;
- ret = iosf_mbi_write(QRK_MBI_UNIT_RMU, QRK_MBI_RMU_WRITE,
- QRK_DTS_REG_OFFSET_ENABLE, out);
+ ret = iosf_mbi_write(QRK_MBI_UNIT_RMU, MBI_REG_WRITE,
+ QRK_DTS_REG_OFFSET_ENABLE, out);
if (ret)
return ret;
@@ -158,8 +158,8 @@ static int soc_dts_disable(struct thermal_zone_device *tzd)
struct soc_sensor_entry *aux_entry = tzd->devdata;
int ret;
- ret = iosf_mbi_read(QRK_MBI_UNIT_RMU, QRK_MBI_RMU_READ,
- QRK_DTS_REG_OFFSET_ENABLE, &out);
+ ret = iosf_mbi_read(QRK_MBI_UNIT_RMU, MBI_REG_READ,
+ QRK_DTS_REG_OFFSET_ENABLE, &out);
if (ret)
return ret;
@@ -170,8 +170,8 @@ static int soc_dts_disable(struct thermal_zone_device *tzd)
if (!aux_entry->locked) {
out &= ~QRK_DTS_ENABLE_BIT;
- ret = iosf_mbi_write(QRK_MBI_UNIT_RMU, QRK_MBI_RMU_WRITE,
- QRK_DTS_REG_OFFSET_ENABLE, out);
+ ret = iosf_mbi_write(QRK_MBI_UNIT_RMU, MBI_REG_WRITE,
+ QRK_DTS_REG_OFFSET_ENABLE, out);
if (ret)
return ret;
@@ -192,8 +192,8 @@ static int _get_trip_temp(int trip, int *temp)
u32 out;
mutex_lock(&dts_update_mutex);
- status = iosf_mbi_read(QRK_MBI_UNIT_RMU, QRK_MBI_RMU_READ,
- QRK_DTS_REG_OFFSET_PTPS, &out);
+ status = iosf_mbi_read(QRK_MBI_UNIT_RMU, MBI_REG_READ,
+ QRK_DTS_REG_OFFSET_PTPS, &out);
mutex_unlock(&dts_update_mutex);
if (status)
@@ -236,8 +236,8 @@ static int update_trip_temp(struct soc_sensor_entry *aux_entry,
goto failed;
}
- ret = iosf_mbi_read(QRK_MBI_UNIT_RMU, QRK_MBI_RMU_READ,
- QRK_DTS_REG_OFFSET_PTPS, &store_ptps);
+ ret = iosf_mbi_read(QRK_MBI_UNIT_RMU, MBI_REG_READ,
+ QRK_DTS_REG_OFFSET_PTPS, &store_ptps);
if (ret)
goto failed;
@@ -262,8 +262,8 @@ static int update_trip_temp(struct soc_sensor_entry *aux_entry,
out |= (temp_out & QRK_DTS_MASK_TP_THRES) <<
(trip * QRK_DTS_SHIFT_TP);
- ret = iosf_mbi_write(QRK_MBI_UNIT_RMU, QRK_MBI_RMU_WRITE,
- QRK_DTS_REG_OFFSET_PTPS, out);
+ ret = iosf_mbi_write(QRK_MBI_UNIT_RMU, MBI_REG_WRITE,
+ QRK_DTS_REG_OFFSET_PTPS, out);
failed:
mutex_unlock(&dts_update_mutex);
@@ -294,8 +294,8 @@ static int sys_get_curr_temp(struct thermal_zone_device *tzd,
int ret;
mutex_lock(&dts_update_mutex);
- ret = iosf_mbi_read(QRK_MBI_UNIT_RMU, QRK_MBI_RMU_READ,
- QRK_DTS_REG_OFFSET_TEMP, &out);
+ ret = iosf_mbi_read(QRK_MBI_UNIT_RMU, MBI_REG_READ,
+ QRK_DTS_REG_OFFSET_TEMP, &out);
mutex_unlock(&dts_update_mutex);
if (ret)
@@ -350,13 +350,13 @@ static void free_soc_dts(struct soc_sensor_entry *aux_entry)
if (aux_entry) {
if (!aux_entry->locked) {
mutex_lock(&dts_update_mutex);
- iosf_mbi_write(QRK_MBI_UNIT_RMU, QRK_MBI_RMU_WRITE,
- QRK_DTS_REG_OFFSET_ENABLE,
- aux_entry->store_dts_enable);
+ iosf_mbi_write(QRK_MBI_UNIT_RMU, MBI_REG_WRITE,
+ QRK_DTS_REG_OFFSET_ENABLE,
+ aux_entry->store_dts_enable);
- iosf_mbi_write(QRK_MBI_UNIT_RMU, QRK_MBI_RMU_WRITE,
- QRK_DTS_REG_OFFSET_PTPS,
- aux_entry->store_ptps);
+ iosf_mbi_write(QRK_MBI_UNIT_RMU, MBI_REG_WRITE,
+ QRK_DTS_REG_OFFSET_PTPS,
+ aux_entry->store_ptps);
mutex_unlock(&dts_update_mutex);
}
thermal_zone_device_unregister(aux_entry->tzone);
@@ -378,9 +378,8 @@ static struct soc_sensor_entry *alloc_soc_dts(void)
}
/* Check if DTS register is locked */
- err = iosf_mbi_read(QRK_MBI_UNIT_RMU, QRK_MBI_RMU_READ,
- QRK_DTS_REG_OFFSET_LOCK,
- &out);
+ err = iosf_mbi_read(QRK_MBI_UNIT_RMU, MBI_REG_READ,
+ QRK_DTS_REG_OFFSET_LOCK, &out);
if (err)
goto err_ret;
@@ -395,16 +394,16 @@ static struct soc_sensor_entry *alloc_soc_dts(void)
/* Store DTS default state if DTS registers are not locked */
if (!aux_entry->locked) {
/* Store DTS default enable for restore on exit */
- err = iosf_mbi_read(QRK_MBI_UNIT_RMU, QRK_MBI_RMU_READ,
- QRK_DTS_REG_OFFSET_ENABLE,
- &aux_entry->store_dts_enable);
+ err = iosf_mbi_read(QRK_MBI_UNIT_RMU, MBI_REG_READ,
+ QRK_DTS_REG_OFFSET_ENABLE,
+ &aux_entry->store_dts_enable);
if (err)
goto err_ret;
/* Store DTS default PTPS register for restore on exit */
- err = iosf_mbi_read(QRK_MBI_UNIT_RMU, QRK_MBI_RMU_READ,
- QRK_DTS_REG_OFFSET_PTPS,
- &aux_entry->store_ptps);
+ err = iosf_mbi_read(QRK_MBI_UNIT_RMU, MBI_REG_READ,
+ QRK_DTS_REG_OFFSET_PTPS,
+ &aux_entry->store_ptps);
if (err)
goto err_ret;
}
diff --git a/drivers/thermal/intel_soc_dts_iosf.c b/drivers/thermal/intel_soc_dts_iosf.c
index 5841d1d..f72e1db 100644
--- a/drivers/thermal/intel_soc_dts_iosf.c
+++ b/drivers/thermal/intel_soc_dts_iosf.c
@@ -90,7 +90,7 @@ static int sys_get_trip_temp(struct thermal_zone_device *tzd, int trip,
dts = tzd->devdata;
sensors = dts->sensors;
mutex_lock(&sensors->dts_update_lock);
- status = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ,
+ status = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ,
SOC_DTS_OFFSET_PTPS, &out);
mutex_unlock(&sensors->dts_update_lock);
if (status)
@@ -124,27 +124,27 @@ static int update_trip_temp(struct intel_soc_dts_sensor_entry *dts,
temp_out = (sensors->tj_max - temp) / 1000;
- status = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ,
+ status = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ,
SOC_DTS_OFFSET_PTPS, &store_ptps);
if (status)
return status;
out = (store_ptps & ~(0xFF << (thres_index * 8)));
out |= (temp_out & 0xFF) << (thres_index * 8);
- status = iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE,
+ status = iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE,
SOC_DTS_OFFSET_PTPS, out);
if (status)
return status;
pr_debug("update_trip_temp PTPS = %x\n", out);
- status = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ,
+ status = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ,
SOC_DTS_OFFSET_PTMC, &out);
if (status)
goto err_restore_ptps;
store_ptmc = out;
- status = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ,
+ status = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ,
SOC_DTS_TE_AUX0 + thres_index,
&te_out);
if (status)
@@ -167,12 +167,12 @@ static int update_trip_temp(struct intel_soc_dts_sensor_entry *dts,
out &= ~SOC_DTS_AUX0_ENABLE_BIT;
te_out &= ~int_enable_bit;
}
- status = iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE,
+ status = iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE,
SOC_DTS_OFFSET_PTMC, out);
if (status)
goto err_restore_te_out;
- status = iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE,
+ status = iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE,
SOC_DTS_TE_AUX0 + thres_index,
te_out);
if (status)
@@ -182,13 +182,13 @@ static int update_trip_temp(struct intel_soc_dts_sensor_entry *dts,
return 0;
err_restore_te_out:
- iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE,
+ iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE,
SOC_DTS_OFFSET_PTMC, store_te_out);
err_restore_ptmc:
- iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE,
+ iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE,
SOC_DTS_OFFSET_PTMC, store_ptmc);
err_restore_ptps:
- iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE,
+ iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE,
SOC_DTS_OFFSET_PTPS, store_ptps);
/* Nothing we can do if restore fails */
@@ -235,7 +235,7 @@ static int sys_get_curr_temp(struct thermal_zone_device *tzd,
dts = tzd->devdata;
sensors = dts->sensors;
- status = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ,
+ status = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ,
SOC_DTS_OFFSET_TEMP, &out);
if (status)
return status;
@@ -259,14 +259,14 @@ static int soc_dts_enable(int id)
u32 out;
int ret;
- ret = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ,
+ ret = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ,
SOC_DTS_OFFSET_ENABLE, &out);
if (ret)
return ret;
if (!(out & BIT(id))) {
out |= BIT(id);
- ret = iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE,
+ ret = iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE,
SOC_DTS_OFFSET_ENABLE, out);
if (ret)
return ret;
@@ -278,7 +278,7 @@ static int soc_dts_enable(int id)
static void remove_dts_thermal_zone(struct intel_soc_dts_sensor_entry *dts)
{
if (dts) {
- iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE,
+ iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE,
SOC_DTS_OFFSET_ENABLE, dts->store_status);
thermal_zone_device_unregister(dts->tzone);
}
@@ -296,9 +296,8 @@ static int add_dts_thermal_zone(int id, struct intel_soc_dts_sensor_entry *dts,
int i;
/* Store status to restor on exit */
- ret = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ,
- SOC_DTS_OFFSET_ENABLE,
- &dts->store_status);
+ ret = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ,
+ SOC_DTS_OFFSET_ENABLE, &dts->store_status);
if (ret)
goto err_ret;
@@ -311,7 +310,7 @@ static int add_dts_thermal_zone(int id, struct intel_soc_dts_sensor_entry *dts,
}
/* Check if the writable trip we provide is not used by BIOS */
- ret = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ,
+ ret = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ,
SOC_DTS_OFFSET_PTPS, &store_ptps);
if (ret)
trip_mask = 0;
@@ -374,19 +373,19 @@ void intel_soc_dts_iosf_interrupt_handler(struct intel_soc_dts_sensors *sensors)
spin_lock_irqsave(&sensors->intr_notify_lock, flags);
- status = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ,
+ status = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ,
SOC_DTS_OFFSET_PTMC, &ptmc_out);
ptmc_out |= SOC_DTS_PTMC_APIC_DEASSERT_BIT;
- status = iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE,
+ status = iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE,
SOC_DTS_OFFSET_PTMC, ptmc_out);
- status = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ,
+ status = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ,
SOC_DTS_OFFSET_PTTSS, &sticky_out);
pr_debug("status %d PTTSS %x\n", status, sticky_out);
if (sticky_out & SOC_DTS_TRIP_MASK) {
int i;
/* reset sticky bit */
- status = iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE,
+ status = iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE,
SOC_DTS_OFFSET_PTTSS, sticky_out);
spin_unlock_irqrestore(&sensors->intr_notify_lock, flags);
--
2.6.2
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH v2 1/1] x86/platform/iosf_mbi: Remove duplicate definitions 2015-11-11 17:59 [PATCH v2 1/1] x86/platform/iosf_mbi: Remove duplicate definitions Andy Shevchenko @ 2015-11-24 9:50 ` Andy Shevchenko 2015-11-24 13:26 ` Wolfram Sang 2015-11-25 14:20 ` Thomas Gleixner 2 siblings, 0 replies; 8+ messages in thread From: Andy Shevchenko @ 2015-11-24 9:50 UTC (permalink / raw) To: linux-kernel, linux-i2c, linux-pm Cc: Thomas Gleixner, Ingo Molnar, Peter Anvin, Wolfram Sang, Zhang Rui, Eduardo Valentin, Hock Leong Kweh On Wed, 2015-11-11 at 19:59 +0200, Andy Shevchenko wrote: > The read and write opcodes are global for all units on SoC and even > across > Intel SoCs. Remove duplication of corresponding constants. At the > same time > convert all current users. > > No functional change. > > Cc: Thomas Gleixner <tglx@linutronix.de> > Cc: Ingo Molnar <mingo@redhat.com> > Cc: Peter Anvin <hpa@zytor.com> > Cc: Wolfram Sang <wsa@the-dreams.de> > Cc: Zhang Rui <rui.zhang@intel.com> > Cc: Eduardo Valentin <edubezval@gmail.com> > Cc: Hock Leong Kweh <hock.leong.kweh@intel.com> Any concerns, anyone? Btw, this patch has been tested on Intel BayTrail and Braswell. > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > --- > Since v1: > - satisfy kbuild robot > > arch/x86/include/asm/iosf_mbi.h | 49 +++++------------- > ---- > arch/x86/platform/atom/punit_atom_debug.c | 7 +--- > arch/x86/platform/intel-quark/imr.c | 28 +++++-------- > drivers/i2c/busses/i2c-designware-baytrail.c | 17 +++----- > drivers/powercap/intel_rapl.c | 10 ++--- > drivers/thermal/intel_quark_dts_thermal.c | 61 ++++++++++++++-- > ------------ > drivers/thermal/intel_soc_dts_iosf.c | 43 ++++++++++------ > ---- > 7 files changed, 85 insertions(+), 130 deletions(-) > > diff --git a/arch/x86/include/asm/iosf_mbi.h > b/arch/x86/include/asm/iosf_mbi.h > index b72ad0f..cdc5f63 100644 > --- a/arch/x86/include/asm/iosf_mbi.h > +++ b/arch/x86/include/asm/iosf_mbi.h > @@ -1,5 +1,5 @@ > /* > - * iosf_mbi.h: Intel OnChip System Fabric MailBox access support > + * Intel OnChip System Fabric MailBox access support > */ > > #ifndef IOSF_MBI_SYMS_H > @@ -16,6 +16,16 @@ > #define MBI_MASK_LO 0x000000FF > #define MBI_ENABLE 0xF0 > > +/* IOSF SB read/write opcodes */ > +#define MBI_MMIO_READ 0x00 > +#define MBI_MMIO_WRITE 0x01 > +#define MBI_CR_READ 0x06 > +#define MBI_CR_WRITE 0x07 > +#define MBI_REG_READ 0x10 > +#define MBI_REG_WRITE 0x11 > +#define MBI_ESRAM_READ 0x12 > +#define MBI_ESRAM_WRITE 0x13 > + > /* Baytrail available units */ > #define BT_MBI_UNIT_AUNIT 0x00 > #define BT_MBI_UNIT_SMC 0x01 > @@ -28,50 +38,13 @@ > #define BT_MBI_UNIT_SATA 0xA3 > #define BT_MBI_UNIT_PCIE 0xA6 > > -/* Baytrail read/write opcodes */ > -#define BT_MBI_AUNIT_READ 0x10 > -#define BT_MBI_AUNIT_WRITE 0x11 > -#define BT_MBI_SMC_READ 0x10 > -#define BT_MBI_SMC_WRITE 0x11 > -#define BT_MBI_CPU_READ 0x10 > -#define BT_MBI_CPU_WRITE 0x11 > -#define BT_MBI_BUNIT_READ 0x10 > -#define BT_MBI_BUNIT_WRITE 0x11 > -#define BT_MBI_PMC_READ 0x06 > -#define BT_MBI_PMC_WRITE 0x07 > -#define BT_MBI_GFX_READ 0x00 > -#define BT_MBI_GFX_WRITE 0x01 > -#define BT_MBI_SMIO_READ 0x06 > -#define BT_MBI_SMIO_WRITE 0x07 > -#define BT_MBI_USB_READ 0x06 > -#define BT_MBI_USB_WRITE 0x07 > -#define BT_MBI_SATA_READ 0x00 > -#define BT_MBI_SATA_WRITE 0x01 > -#define BT_MBI_PCIE_READ 0x00 > -#define BT_MBI_PCIE_WRITE 0x01 > - > /* Quark available units */ > #define QRK_MBI_UNIT_HBA 0x00 > #define QRK_MBI_UNIT_HB 0x03 > #define QRK_MBI_UNIT_RMU 0x04 > #define QRK_MBI_UNIT_MM 0x05 > -#define QRK_MBI_UNIT_MMESRAM 0x05 > #define QRK_MBI_UNIT_SOC 0x31 > > -/* Quark read/write opcodes */ > -#define QRK_MBI_HBA_READ 0x10 > -#define QRK_MBI_HBA_WRITE 0x11 > -#define QRK_MBI_HB_READ 0x10 > -#define QRK_MBI_HB_WRITE 0x11 > -#define QRK_MBI_RMU_READ 0x10 > -#define QRK_MBI_RMU_WRITE 0x11 > -#define QRK_MBI_MM_READ 0x10 > -#define QRK_MBI_MM_WRITE 0x11 > -#define QRK_MBI_MMESRAM_READ 0x12 > -#define QRK_MBI_MMESRAM_WRITE 0x13 > -#define QRK_MBI_SOC_READ 0x06 > -#define QRK_MBI_SOC_WRITE 0x07 > - > #if IS_ENABLED(CONFIG_IOSF_MBI) > > bool iosf_mbi_available(void); > diff --git a/arch/x86/platform/atom/punit_atom_debug.c > b/arch/x86/platform/atom/punit_atom_debug.c > index 5ca8ead..81c769e 100644 > --- a/arch/x86/platform/atom/punit_atom_debug.c > +++ b/arch/x86/platform/atom/punit_atom_debug.c > @@ -25,8 +25,6 @@ > #include <asm/cpu_device_id.h> > #include <asm/iosf_mbi.h> > > -/* Side band Interface port */ > -#define PUNIT_PORT 0x04 > /* Power gate status reg */ > #define PWRGT_STATUS 0x61 > /* Subsystem config/status Video processor */ > @@ -85,9 +83,8 @@ static int punit_dev_state_show(struct seq_file > *seq_file, void *unused) > > seq_puts(seq_file, "\n\nPUNIT NORTH COMPLEX DEVICES :\n"); > while (punit_devp->name) { > - status = iosf_mbi_read(PUNIT_PORT, BT_MBI_PMC_READ, > - punit_devp->reg, > - &punit_pwr_status); > + status = iosf_mbi_read(BT_MBI_UNIT_PMC, > MBI_REG_READ, > + punit_devp->reg, > &punit_pwr_status); > if (status) { > seq_printf(seq_file, "%9s : Read Failed\n", > punit_devp->name); > diff --git a/arch/x86/platform/intel-quark/imr.c > b/arch/x86/platform/intel-quark/imr.c > index 0ee619f..c1bdafa 100644 > --- a/arch/x86/platform/intel-quark/imr.c > +++ b/arch/x86/platform/intel-quark/imr.c > @@ -111,23 +111,19 @@ static int imr_read(struct imr_device *idev, > u32 imr_id, struct imr_regs *imr) > u32 reg = imr_id * IMR_NUM_REGS + idev->reg_base; > int ret; > > - ret = iosf_mbi_read(QRK_MBI_UNIT_MM, QRK_MBI_MM_READ, > - reg++, &imr->addr_lo); > + ret = iosf_mbi_read(QRK_MBI_UNIT_MM, MBI_REG_READ, reg++, > &imr->addr_lo); > if (ret) > return ret; > > - ret = iosf_mbi_read(QRK_MBI_UNIT_MM, QRK_MBI_MM_READ, > - reg++, &imr->addr_hi); > + ret = iosf_mbi_read(QRK_MBI_UNIT_MM, MBI_REG_READ, reg++, > &imr->addr_hi); > if (ret) > return ret; > > - ret = iosf_mbi_read(QRK_MBI_UNIT_MM, QRK_MBI_MM_READ, > - reg++, &imr->rmask); > + ret = iosf_mbi_read(QRK_MBI_UNIT_MM, MBI_REG_READ, reg++, > &imr->rmask); > if (ret) > return ret; > > - return iosf_mbi_read(QRK_MBI_UNIT_MM, QRK_MBI_MM_READ, > - reg++, &imr->wmask); > + return iosf_mbi_read(QRK_MBI_UNIT_MM, MBI_REG_READ, reg++, > &imr->wmask); > } > > /** > @@ -151,31 +147,27 @@ static int imr_write(struct imr_device *idev, > u32 imr_id, > > local_irq_save(flags); > > - ret = iosf_mbi_write(QRK_MBI_UNIT_MM, QRK_MBI_MM_WRITE, > reg++, > - imr->addr_lo); > + ret = iosf_mbi_write(QRK_MBI_UNIT_MM, MBI_REG_WRITE, reg++, > imr->addr_lo); > if (ret) > goto failed; > > - ret = iosf_mbi_write(QRK_MBI_UNIT_MM, QRK_MBI_MM_WRITE, > - reg++, imr->addr_hi); > + ret = iosf_mbi_write(QRK_MBI_UNIT_MM, MBI_REG_WRITE, reg++, > imr->addr_hi); > if (ret) > goto failed; > > - ret = iosf_mbi_write(QRK_MBI_UNIT_MM, QRK_MBI_MM_WRITE, > - reg++, imr->rmask); > + ret = iosf_mbi_write(QRK_MBI_UNIT_MM, MBI_REG_WRITE, reg++, > imr->rmask); > if (ret) > goto failed; > > - ret = iosf_mbi_write(QRK_MBI_UNIT_MM, QRK_MBI_MM_WRITE, > - reg++, imr->wmask); > + ret = iosf_mbi_write(QRK_MBI_UNIT_MM, MBI_REG_WRITE, reg++, > imr->wmask); > if (ret) > goto failed; > > /* Lock bit must be set separately to addr_lo address bits. > */ > if (lock) { > imr->addr_lo |= IMR_LOCK; > - ret = iosf_mbi_write(QRK_MBI_UNIT_MM, > QRK_MBI_MM_WRITE, > - reg - IMR_NUM_REGS, imr- > >addr_lo); > + ret = iosf_mbi_write(QRK_MBI_UNIT_MM, MBI_REG_WRITE, > + reg - IMR_NUM_REGS, imr- > >addr_lo); > if (ret) > goto failed; > } > diff --git a/drivers/i2c/busses/i2c-designware-baytrail.c > b/drivers/i2c/busses/i2c-designware-baytrail.c > index 7d7ae97..e38c2bb 100644 > --- a/drivers/i2c/busses/i2c-designware-baytrail.c > +++ b/drivers/i2c/busses/i2c-designware-baytrail.c > @@ -34,8 +34,7 @@ static int get_sem(struct device *dev, u32 *sem) > u32 data; > int ret; > > - ret = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ, > PUNIT_SEMAPHORE, > - &data); > + ret = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ, > PUNIT_SEMAPHORE, &data); > if (ret) { > dev_err(dev, "iosf failed to read punit > semaphore\n"); > return ret; > @@ -50,21 +49,19 @@ static void reset_semaphore(struct device *dev) > { > u32 data; > > - if (iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ, > - PUNIT_SEMAPHORE, &data)) { > + if (iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ, > PUNIT_SEMAPHORE, &data)) { > dev_err(dev, "iosf failed to reset punit semaphore > during read\n"); > return; > } > > data &= ~PUNIT_SEMAPHORE_BIT; > - if (iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE, > - PUNIT_SEMAPHORE, data)) > + if (iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE, > PUNIT_SEMAPHORE, data)) > dev_err(dev, "iosf failed to reset punit semaphore > during write\n"); > } > > static int baytrail_i2c_acquire(struct dw_i2c_dev *dev) > { > - u32 sem; > + u32 sem = PUNIT_SEMAPHORE_ACQUIRE; > int ret; > unsigned long start, end; > > @@ -77,8 +74,7 @@ static int baytrail_i2c_acquire(struct dw_i2c_dev > *dev) > return 0; > > /* host driver writes to side band semaphore register */ > - ret = iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE, > - PUNIT_SEMAPHORE, > PUNIT_SEMAPHORE_ACQUIRE); > + ret = iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE, > PUNIT_SEMAPHORE, sem); > if (ret) { > dev_err(dev->dev, "iosf punit semaphore request > failed\n"); > return ret; > @@ -102,8 +98,7 @@ static int baytrail_i2c_acquire(struct dw_i2c_dev > *dev) > dev_err(dev->dev, "punit semaphore timed out, resetting\n"); > reset_semaphore(dev->dev); > > - ret = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ, > - PUNIT_SEMAPHORE, &sem); > + ret = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ, > PUNIT_SEMAPHORE, &sem); > if (ret) > dev_err(dev->dev, "iosf failed to read punit > semaphore\n"); > else > diff --git a/drivers/powercap/intel_rapl.c > b/drivers/powercap/intel_rapl.c > index cc97f08..fa07809 100644 > --- a/drivers/powercap/intel_rapl.c > +++ b/drivers/powercap/intel_rapl.c > @@ -988,16 +988,16 @@ static void set_floor_freq_atom(struct > rapl_domain *rd, bool enable) > } > > if (!power_ctrl_orig_val) > - iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_PMC_READ, > - rapl_defaults->floor_freq_reg_addr, > - &power_ctrl_orig_val); > + iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_CR_READ, > + rapl_defaults->floor_freq_reg_addr, > + &power_ctrl_orig_val); > mdata = power_ctrl_orig_val; > if (enable) { > mdata &= ~(0x7f << 8); > mdata |= 1 << 8; > } > - iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_PMC_WRITE, > - rapl_defaults->floor_freq_reg_addr, mdata); > + iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_CR_WRITE, > + rapl_defaults->floor_freq_reg_addr, mdata); > } > > static u64 rapl_compute_time_window_core(struct rapl_package *rp, > u64 value, > diff --git a/drivers/thermal/intel_quark_dts_thermal.c > b/drivers/thermal/intel_quark_dts_thermal.c > index 5ed90e6..5d33b35 100644 > --- a/drivers/thermal/intel_quark_dts_thermal.c > +++ b/drivers/thermal/intel_quark_dts_thermal.c > @@ -125,8 +125,8 @@ static int soc_dts_enable(struct > thermal_zone_device *tzd) > struct soc_sensor_entry *aux_entry = tzd->devdata; > int ret; > > - ret = iosf_mbi_read(QRK_MBI_UNIT_RMU, QRK_MBI_RMU_READ, > - QRK_DTS_REG_OFFSET_ENABLE, > &out); > + ret = iosf_mbi_read(QRK_MBI_UNIT_RMU, MBI_REG_READ, > + QRK_DTS_REG_OFFSET_ENABLE, &out); > if (ret) > return ret; > > @@ -137,8 +137,8 @@ static int soc_dts_enable(struct > thermal_zone_device *tzd) > > if (!aux_entry->locked) { > out |= QRK_DTS_ENABLE_BIT; > - ret = iosf_mbi_write(QRK_MBI_UNIT_RMU, > QRK_MBI_RMU_WRITE, > - QRK_DTS_REG_OFFSET_ENABLE, > out); > + ret = iosf_mbi_write(QRK_MBI_UNIT_RMU, > MBI_REG_WRITE, > + QRK_DTS_REG_OFFSET_ENABLE, > out); > if (ret) > return ret; > > @@ -158,8 +158,8 @@ static int soc_dts_disable(struct > thermal_zone_device *tzd) > struct soc_sensor_entry *aux_entry = tzd->devdata; > int ret; > > - ret = iosf_mbi_read(QRK_MBI_UNIT_RMU, QRK_MBI_RMU_READ, > - QRK_DTS_REG_OFFSET_ENABLE, > &out); > + ret = iosf_mbi_read(QRK_MBI_UNIT_RMU, MBI_REG_READ, > + QRK_DTS_REG_OFFSET_ENABLE, &out); > if (ret) > return ret; > > @@ -170,8 +170,8 @@ static int soc_dts_disable(struct > thermal_zone_device *tzd) > > if (!aux_entry->locked) { > out &= ~QRK_DTS_ENABLE_BIT; > - ret = iosf_mbi_write(QRK_MBI_UNIT_RMU, > QRK_MBI_RMU_WRITE, > - QRK_DTS_REG_OFFSET_ENABLE, > out); > + ret = iosf_mbi_write(QRK_MBI_UNIT_RMU, > MBI_REG_WRITE, > + QRK_DTS_REG_OFFSET_ENABLE, > out); > > if (ret) > return ret; > @@ -192,8 +192,8 @@ static int _get_trip_temp(int trip, int *temp) > u32 out; > > mutex_lock(&dts_update_mutex); > - status = iosf_mbi_read(QRK_MBI_UNIT_RMU, QRK_MBI_RMU_READ, > - QRK_DTS_REG_OFFSET_PTPS, &out); > + status = iosf_mbi_read(QRK_MBI_UNIT_RMU, MBI_REG_READ, > + QRK_DTS_REG_OFFSET_PTPS, &out); > mutex_unlock(&dts_update_mutex); > > if (status) > @@ -236,8 +236,8 @@ static int update_trip_temp(struct > soc_sensor_entry *aux_entry, > goto failed; > } > > - ret = iosf_mbi_read(QRK_MBI_UNIT_RMU, QRK_MBI_RMU_READ, > - QRK_DTS_REG_OFFSET_PTPS, > &store_ptps); > + ret = iosf_mbi_read(QRK_MBI_UNIT_RMU, MBI_REG_READ, > + QRK_DTS_REG_OFFSET_PTPS, &store_ptps); > if (ret) > goto failed; > > @@ -262,8 +262,8 @@ static int update_trip_temp(struct > soc_sensor_entry *aux_entry, > out |= (temp_out & QRK_DTS_MASK_TP_THRES) << > (trip * QRK_DTS_SHIFT_TP); > > - ret = iosf_mbi_write(QRK_MBI_UNIT_RMU, QRK_MBI_RMU_WRITE, > - QRK_DTS_REG_OFFSET_PTPS, out); > + ret = iosf_mbi_write(QRK_MBI_UNIT_RMU, MBI_REG_WRITE, > + QRK_DTS_REG_OFFSET_PTPS, out); > > failed: > mutex_unlock(&dts_update_mutex); > @@ -294,8 +294,8 @@ static int sys_get_curr_temp(struct > thermal_zone_device *tzd, > int ret; > > mutex_lock(&dts_update_mutex); > - ret = iosf_mbi_read(QRK_MBI_UNIT_RMU, QRK_MBI_RMU_READ, > - QRK_DTS_REG_OFFSET_TEMP, > &out); > + ret = iosf_mbi_read(QRK_MBI_UNIT_RMU, MBI_REG_READ, > + QRK_DTS_REG_OFFSET_TEMP, &out); > mutex_unlock(&dts_update_mutex); > > if (ret) > @@ -350,13 +350,13 @@ static void free_soc_dts(struct > soc_sensor_entry *aux_entry) > if (aux_entry) { > if (!aux_entry->locked) { > mutex_lock(&dts_update_mutex); > - iosf_mbi_write(QRK_MBI_UNIT_RMU, > QRK_MBI_RMU_WRITE, > - QRK_DTS_REG_OFFSET_ENABLE, > - aux_entry- > >store_dts_enable); > + iosf_mbi_write(QRK_MBI_UNIT_RMU, > MBI_REG_WRITE, > + QRK_DTS_REG_OFFSET_ENABLE, > + aux_entry->store_dts_enable); > > - iosf_mbi_write(QRK_MBI_UNIT_RMU, > QRK_MBI_RMU_WRITE, > - QRK_DTS_REG_OFFSET_PTPS, > - aux_entry->store_ptps); > + iosf_mbi_write(QRK_MBI_UNIT_RMU, > MBI_REG_WRITE, > + QRK_DTS_REG_OFFSET_PTPS, > + aux_entry->store_ptps); > mutex_unlock(&dts_update_mutex); > } > thermal_zone_device_unregister(aux_entry->tzone); > @@ -378,9 +378,8 @@ static struct soc_sensor_entry > *alloc_soc_dts(void) > } > > /* Check if DTS register is locked */ > - err = iosf_mbi_read(QRK_MBI_UNIT_RMU, QRK_MBI_RMU_READ, > - QRK_DTS_REG_OFFSET_LOCK, > - &out); > + err = iosf_mbi_read(QRK_MBI_UNIT_RMU, MBI_REG_READ, > + QRK_DTS_REG_OFFSET_LOCK, &out); > if (err) > goto err_ret; > > @@ -395,16 +394,16 @@ static struct soc_sensor_entry > *alloc_soc_dts(void) > /* Store DTS default state if DTS registers are not locked > */ > if (!aux_entry->locked) { > /* Store DTS default enable for restore on exit */ > - err = iosf_mbi_read(QRK_MBI_UNIT_RMU, > QRK_MBI_RMU_READ, > - QRK_DTS_REG_OFFSET_ENABLE, > - &aux_entry- > >store_dts_enable); > + err = iosf_mbi_read(QRK_MBI_UNIT_RMU, MBI_REG_READ, > + QRK_DTS_REG_OFFSET_ENABLE, > + &aux_entry->store_dts_enable); > if (err) > goto err_ret; > > /* Store DTS default PTPS register for restore on > exit */ > - err = iosf_mbi_read(QRK_MBI_UNIT_RMU, > QRK_MBI_RMU_READ, > - QRK_DTS_REG_OFFSET_PTPS, > - &aux_entry->store_ptps); > + err = iosf_mbi_read(QRK_MBI_UNIT_RMU, MBI_REG_READ, > + QRK_DTS_REG_OFFSET_PTPS, > + &aux_entry->store_ptps); > if (err) > goto err_ret; > } > diff --git a/drivers/thermal/intel_soc_dts_iosf.c > b/drivers/thermal/intel_soc_dts_iosf.c > index 5841d1d..f72e1db 100644 > --- a/drivers/thermal/intel_soc_dts_iosf.c > +++ b/drivers/thermal/intel_soc_dts_iosf.c > @@ -90,7 +90,7 @@ static int sys_get_trip_temp(struct > thermal_zone_device *tzd, int trip, > dts = tzd->devdata; > sensors = dts->sensors; > mutex_lock(&sensors->dts_update_lock); > - status = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ, > + status = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ, > SOC_DTS_OFFSET_PTPS, &out); > mutex_unlock(&sensors->dts_update_lock); > if (status) > @@ -124,27 +124,27 @@ static int update_trip_temp(struct > intel_soc_dts_sensor_entry *dts, > > temp_out = (sensors->tj_max - temp) / 1000; > > - status = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ, > + status = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ, > SOC_DTS_OFFSET_PTPS, &store_ptps); > if (status) > return status; > > out = (store_ptps & ~(0xFF << (thres_index * 8))); > out |= (temp_out & 0xFF) << (thres_index * 8); > - status = iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE, > + status = iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE, > SOC_DTS_OFFSET_PTPS, out); > if (status) > return status; > > pr_debug("update_trip_temp PTPS = %x\n", out); > - status = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ, > + status = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ, > SOC_DTS_OFFSET_PTMC, &out); > if (status) > goto err_restore_ptps; > > store_ptmc = out; > > - status = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ, > + status = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ, > SOC_DTS_TE_AUX0 + thres_index, > &te_out); > if (status) > @@ -167,12 +167,12 @@ static int update_trip_temp(struct > intel_soc_dts_sensor_entry *dts, > out &= ~SOC_DTS_AUX0_ENABLE_BIT; > te_out &= ~int_enable_bit; > } > - status = iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE, > + status = iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE, > SOC_DTS_OFFSET_PTMC, out); > if (status) > goto err_restore_te_out; > > - status = iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE, > + status = iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE, > SOC_DTS_TE_AUX0 + thres_index, > te_out); > if (status) > @@ -182,13 +182,13 @@ static int update_trip_temp(struct > intel_soc_dts_sensor_entry *dts, > > return 0; > err_restore_te_out: > - iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE, > + iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE, > SOC_DTS_OFFSET_PTMC, store_te_out); > err_restore_ptmc: > - iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE, > + iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE, > SOC_DTS_OFFSET_PTMC, store_ptmc); > err_restore_ptps: > - iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE, > + iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE, > SOC_DTS_OFFSET_PTPS, store_ptps); > /* Nothing we can do if restore fails */ > > @@ -235,7 +235,7 @@ static int sys_get_curr_temp(struct > thermal_zone_device *tzd, > > dts = tzd->devdata; > sensors = dts->sensors; > - status = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ, > + status = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ, > SOC_DTS_OFFSET_TEMP, &out); > if (status) > return status; > @@ -259,14 +259,14 @@ static int soc_dts_enable(int id) > u32 out; > int ret; > > - ret = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ, > + ret = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ, > SOC_DTS_OFFSET_ENABLE, &out); > if (ret) > return ret; > > if (!(out & BIT(id))) { > out |= BIT(id); > - ret = iosf_mbi_write(BT_MBI_UNIT_PMC, > BT_MBI_BUNIT_WRITE, > + ret = iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE, > SOC_DTS_OFFSET_ENABLE, out); > if (ret) > return ret; > @@ -278,7 +278,7 @@ static int soc_dts_enable(int id) > static void remove_dts_thermal_zone(struct > intel_soc_dts_sensor_entry *dts) > { > if (dts) { > - iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE, > + iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE, > SOC_DTS_OFFSET_ENABLE, dts- > >store_status); > thermal_zone_device_unregister(dts->tzone); > } > @@ -296,9 +296,8 @@ static int add_dts_thermal_zone(int id, struct > intel_soc_dts_sensor_entry *dts, > int i; > > /* Store status to restor on exit */ > - ret = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ, > - SOC_DTS_OFFSET_ENABLE, > - &dts->store_status); > + ret = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ, > + SOC_DTS_OFFSET_ENABLE, &dts- > >store_status); > if (ret) > goto err_ret; > > @@ -311,7 +310,7 @@ static int add_dts_thermal_zone(int id, struct > intel_soc_dts_sensor_entry *dts, > } > > /* Check if the writable trip we provide is not used by BIOS > */ > - ret = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ, > + ret = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ, > SOC_DTS_OFFSET_PTPS, &store_ptps); > if (ret) > trip_mask = 0; > @@ -374,19 +373,19 @@ void > intel_soc_dts_iosf_interrupt_handler(struct intel_soc_dts_sensors > *sensors) > > spin_lock_irqsave(&sensors->intr_notify_lock, flags); > > - status = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ, > + status = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ, > SOC_DTS_OFFSET_PTMC, &ptmc_out); > ptmc_out |= SOC_DTS_PTMC_APIC_DEASSERT_BIT; > - status = iosf_mbi_write(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_WRITE, > + status = iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE, > SOC_DTS_OFFSET_PTMC, ptmc_out); > > - status = iosf_mbi_read(BT_MBI_UNIT_PMC, BT_MBI_BUNIT_READ, > + status = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ, > SOC_DTS_OFFSET_PTTSS, &sticky_out); > pr_debug("status %d PTTSS %x\n", status, sticky_out); > if (sticky_out & SOC_DTS_TRIP_MASK) { > int i; > /* reset sticky bit */ > - status = iosf_mbi_write(BT_MBI_UNIT_PMC, > BT_MBI_BUNIT_WRITE, > + status = iosf_mbi_write(BT_MBI_UNIT_PMC, > MBI_REG_WRITE, > SOC_DTS_OFFSET_PTTSS, > sticky_out); > spin_unlock_irqrestore(&sensors->intr_notify_lock, > flags); > -- Andy Shevchenko <andriy.shevchenko@linux.intel.com> Intel Finland Oy ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/1] x86/platform/iosf_mbi: Remove duplicate definitions 2015-11-11 17:59 [PATCH v2 1/1] x86/platform/iosf_mbi: Remove duplicate definitions Andy Shevchenko 2015-11-24 9:50 ` Andy Shevchenko @ 2015-11-24 13:26 ` Wolfram Sang 2015-11-25 14:20 ` Thomas Gleixner 2 siblings, 0 replies; 8+ messages in thread From: Wolfram Sang @ 2015-11-24 13:26 UTC (permalink / raw) To: Andy Shevchenko Cc: linux-kernel, linux-i2c, linux-pm, Thomas Gleixner, Ingo Molnar, Peter Anvin, Zhang Rui, Eduardo Valentin, Hock Leong Kweh [-- Attachment #1: Type: text/plain, Size: 722 bytes --] On Wed, Nov 11, 2015 at 07:59:29PM +0200, Andy Shevchenko wrote: > The read and write opcodes are global for all units on SoC and even across > Intel SoCs. Remove duplication of corresponding constants. At the same time > convert all current users. > > No functional change. > > Cc: Thomas Gleixner <tglx@linutronix.de> > Cc: Ingo Molnar <mingo@redhat.com> > Cc: Peter Anvin <hpa@zytor.com> > Cc: Wolfram Sang <wsa@the-dreams.de> > Cc: Zhang Rui <rui.zhang@intel.com> > Cc: Eduardo Valentin <edubezval@gmail.com> > Cc: Hock Leong Kweh <hock.leong.kweh@intel.com> > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> For the I2C part: Acked-by: Wolfram Sang <wsa@the-dreams.de> [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/1] x86/platform/iosf_mbi: Remove duplicate definitions 2015-11-11 17:59 [PATCH v2 1/1] x86/platform/iosf_mbi: Remove duplicate definitions Andy Shevchenko 2015-11-24 9:50 ` Andy Shevchenko 2015-11-24 13:26 ` Wolfram Sang @ 2015-11-25 14:20 ` Thomas Gleixner 2015-11-25 14:33 ` Andy Shevchenko 2 siblings, 1 reply; 8+ messages in thread From: Thomas Gleixner @ 2015-11-25 14:20 UTC (permalink / raw) To: Andy Shevchenko Cc: linux-kernel, linux-i2c, linux-pm, Ingo Molnar, Peter Anvin, Wolfram Sang, Zhang Rui, Eduardo Valentin, Hock Leong Kweh On Wed, 11 Nov 2015, Andy Shevchenko wrote: > The read and write opcodes are global for all units on SoC and even across > Intel SoCs. Remove duplication of corresponding constants. At the same time > convert all current users. > > No functional change. > > Cc: Thomas Gleixner <tglx@linutronix.de> > Cc: Ingo Molnar <mingo@redhat.com> > Cc: Peter Anvin <hpa@zytor.com> > Cc: Wolfram Sang <wsa@the-dreams.de> > Cc: Zhang Rui <rui.zhang@intel.com> > Cc: Eduardo Valentin <edubezval@gmail.com> > Cc: Hock Leong Kweh <hock.leong.kweh@intel.com> > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > --- > Since v1: > - satisfy kbuild robot > > arch/x86/include/asm/iosf_mbi.h | 49 +++++----------------- > arch/x86/platform/atom/punit_atom_debug.c | 7 +--- > arch/x86/platform/intel-quark/imr.c | 28 +++++-------- > drivers/i2c/busses/i2c-designware-baytrail.c | 17 +++----- > drivers/powercap/intel_rapl.c | 10 ++--- > drivers/thermal/intel_quark_dts_thermal.c | 61 ++++++++++++++-------------- > drivers/thermal/intel_soc_dts_iosf.c | 43 ++++++++++---------- Hmm. Either we get acks of all maintainers and merge it through tip/x86/... or we do the following: Add the new constants w/o using them in a seperate patch and ship that linuswards now. Then the subsystem maintainers can pick the individual patches up and after the merge window closes we remove the old constants in one go. Either way works for me. Thanks, tglx ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/1] x86/platform/iosf_mbi: Remove duplicate definitions 2015-11-25 14:20 ` Thomas Gleixner @ 2015-11-25 14:33 ` Andy Shevchenko 2015-11-25 14:37 ` Thomas Gleixner 2015-12-04 2:05 ` Ong, Boon Leong 0 siblings, 2 replies; 8+ messages in thread From: Andy Shevchenko @ 2015-11-25 14:33 UTC (permalink / raw) To: Thomas Gleixner Cc: linux-kernel, linux-i2c, linux-pm, Ingo Molnar, Peter Anvin, Wolfram Sang, Zhang Rui, Eduardo Valentin, Hock Leong Kweh On Wed, 2015-11-25 at 15:20 +0100, Thomas Gleixner wrote: > On Wed, 11 Nov 2015, Andy Shevchenko wrote: > > > The read and write opcodes are global for all units on SoC and even > across > > Intel SoCs. Remove duplication of corresponding constants. At the > same time > > convert all current users. > > > > No functional change. > > > > Cc: Thomas Gleixner <tglx@linutronix.de> > > Cc: Ingo Molnar <mingo@redhat.com> > > Cc: Peter Anvin <hpa@zytor.com> > > Cc: Wolfram Sang <wsa@the-dreams.de> > > Cc: Zhang Rui <rui.zhang@intel.com> > > Cc: Eduardo Valentin <edubezval@gmail.com> > > Cc: Hock Leong Kweh <hock.leong.kweh@intel.com> Eduardo, Rui, can you provide your ACKs or comments about the patch? > > > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > > --- > > Since v1: > > - satisfy kbuild robot > > > > arch/x86/include/asm/iosf_mbi.h | 49 +++++----------- > ------ > > arch/x86/platform/atom/punit_atom_debug.c | 7 +--- > > arch/x86/platform/intel-quark/imr.c | 28 +++++-------- > > drivers/i2c/busses/i2c-designware-baytrail.c | 17 +++----- > > drivers/powercap/intel_rapl.c | 10 ++--- > > drivers/thermal/intel_quark_dts_thermal.c | 61 ++++++++++++++ > -------------- > > drivers/thermal/intel_soc_dts_iosf.c | 43 ++++++++++---- > ------ > > Hmm. Either we get acks of all maintainers and merge it through > tip/x86/... I prefer this way because… > or we do the following: > > Add the new constants w/o using them in a seperate patch and ship > that > linuswards now. Then the subsystem maintainers can pick the > individual > patches up and after the merge window closes we remove the old > constants in one go. > > Either way works for me. …we are working on another fix which is based also on this patch. Can you provide your ACK if you are okay with the changes to arch/x86 ? > > Thanks, > > tglx > > -- Andy Shevchenko <andriy.shevchenko@linux.intel.com> Intel Finland Oy ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/1] x86/platform/iosf_mbi: Remove duplicate definitions 2015-11-25 14:33 ` Andy Shevchenko @ 2015-11-25 14:37 ` Thomas Gleixner 2015-12-07 22:56 ` Rafael J. Wysocki 2015-12-04 2:05 ` Ong, Boon Leong 1 sibling, 1 reply; 8+ messages in thread From: Thomas Gleixner @ 2015-11-25 14:37 UTC (permalink / raw) To: Andy Shevchenko Cc: linux-kernel, linux-i2c, linux-pm, Ingo Molnar, Peter Anvin, Wolfram Sang, Zhang Rui, Eduardo Valentin, Hock Leong Kweh [-- Attachment #1: Type: TEXT/PLAIN, Size: 264 bytes --] On Wed, 25 Nov 2015, Andy Shevchenko wrote: > …we are working on another fix which is based also on this patch. Can > you provide your ACK if you are okay with the changes to arch/x86 ? I'm fine with the patch. Once I have acks, I'll pick it up. Thanks, tglx ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/1] x86/platform/iosf_mbi: Remove duplicate definitions 2015-11-25 14:37 ` Thomas Gleixner @ 2015-12-07 22:56 ` Rafael J. Wysocki 0 siblings, 0 replies; 8+ messages in thread From: Rafael J. Wysocki @ 2015-12-07 22:56 UTC (permalink / raw) To: Thomas Gleixner Cc: Andy Shevchenko, linux-kernel, linux-i2c, linux-pm, Ingo Molnar, Peter Anvin, Wolfram Sang, Zhang Rui, Eduardo Valentin, Hock Leong Kweh On Wednesday, November 25, 2015 03:37:54 PM Thomas Gleixner wrote: > On Wed, 25 Nov 2015, Andy Shevchenko wrote: > > …we are working on another fix which is based also on this patch. Can > > you provide your ACK if you are okay with the changes to arch/x86 ? > > I'm fine with the patch. Once I have acks, I'll pick it up. Well, it turns out that some material to go into my tree depends on this one. Would you mind if I took it? Thanks, Rafael ^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [PATCH v2 1/1] x86/platform/iosf_mbi: Remove duplicate definitions 2015-11-25 14:33 ` Andy Shevchenko 2015-11-25 14:37 ` Thomas Gleixner @ 2015-12-04 2:05 ` Ong, Boon Leong 1 sibling, 0 replies; 8+ messages in thread From: Ong, Boon Leong @ 2015-12-04 2:05 UTC (permalink / raw) To: Andy Shevchenko, Thomas Gleixner, Zhang, Rui Cc: linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-pm@vger.kernel.org, Ingo Molnar, Peter Anvin, Wolfram Sang, Eduardo Valentin, Kweh, Hock Leong >-----Original Message----- >From: linux-kernel-owner@vger.kernel.org [mailto:linux-kernel- >owner@vger.kernel.org] On Behalf Of Andy Shevchenko >Sent: Wednesday, November 25, 2015 10:33 PM >To: Thomas Gleixner <tglx@linutronix.de> >Cc: linux-kernel@vger.kernel.org; linux-i2c@vger.kernel.org; linux- >pm@vger.kernel.org; Ingo Molnar <mingo@redhat.com>; Peter Anvin ><hpa@zytor.com>; Wolfram Sang <wsa@the-dreams.de>; Zhang, Rui ><rui.zhang@intel.com>; Eduardo Valentin <edubezval@gmail.com>; Kweh, Hock >Leong <hock.leong.kweh@intel.com> >Subject: Re: [PATCH v2 1/1] x86/platform/iosf_mbi: Remove duplicate definitions > >On Wed, 2015-11-25 at 15:20 +0100, Thomas Gleixner wrote: >> On Wed, 11 Nov 2015, Andy Shevchenko wrote: >> >> > The read and write opcodes are global for all units on SoC and even >> across >> > Intel SoCs. Remove duplication of corresponding constants. At the >> same time >> > convert all current users. >> > >> > No functional change. >> > >> > Cc: Thomas Gleixner <tglx@linutronix.de> >> > Cc: Ingo Molnar <mingo@redhat.com> >> > Cc: Peter Anvin <hpa@zytor.com> >> > Cc: Wolfram Sang <wsa@the-dreams.de> >> > Cc: Zhang Rui <rui.zhang@intel.com> >> > Cc: Eduardo Valentin <edubezval@gmail.com> >> > Cc: Hock Leong Kweh <hock.leong.kweh@intel.com> > >Eduardo, Rui, can you provide your ACKs or comments about the patch? > Rui, I have reviewed the change on drivers/thermal/intel_quark_dts_thermal.c. Yes, I gave my ACK here. ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-12-07 22:26 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-11-11 17:59 [PATCH v2 1/1] x86/platform/iosf_mbi: Remove duplicate definitions Andy Shevchenko 2015-11-24 9:50 ` Andy Shevchenko 2015-11-24 13:26 ` Wolfram Sang 2015-11-25 14:20 ` Thomas Gleixner 2015-11-25 14:33 ` Andy Shevchenko 2015-11-25 14:37 ` Thomas Gleixner 2015-12-07 22:56 ` Rafael J. Wysocki 2015-12-04 2:05 ` Ong, Boon Leong
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).