Skip to content

Commit 5fb0f7f

Browse files
committed
Merge tag 'pm+acpi-4.0-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull power management and ACPI fixes from Rafael Wysocki: "Just two fixes, one for an ACPI LPSS driver issue introduced during the 3.17 cycle and one revert of a recent commit that sort of broke the cpupower tool. Specifics: - Fix an ACPI LPSS (Low-Power Subsystem) driver issue causing the 8250_dw driver to confuse an LPSS clock with another one it is supposed to handle due to the lack of identification allowing it to tell those clocks apart (Heikki Krogerus). - Revert a recent commit that was supposed to improve the usability of the cpupower tool, but clearly did the opposite (Josh Boyer)" * tag 'pm+acpi-4.0-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: Revert "cpupower Makefile change to help run the tool without 'make install'" ACPI / LPSS: provide con_id for the clkdev
2 parents f47e331 + b176023 commit 5fb0f7f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

drivers/acpi/acpi_lpss.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ struct lpss_private_data;
6565

6666
struct lpss_device_desc {
6767
unsigned int flags;
68+
const char *clk_con_id;
6869
unsigned int prv_offset;
6970
size_t prv_size_override;
7071
void (*setup)(struct lpss_private_data *pdata);
@@ -140,6 +141,7 @@ static struct lpss_device_desc lpt_i2c_dev_desc = {
140141

141142
static struct lpss_device_desc lpt_uart_dev_desc = {
142143
.flags = LPSS_CLK | LPSS_CLK_GATE | LPSS_CLK_DIVIDER | LPSS_LTR,
144+
.clk_con_id = "baudclk",
143145
.prv_offset = 0x800,
144146
.setup = lpss_uart_setup,
145147
};
@@ -156,6 +158,7 @@ static struct lpss_device_desc byt_pwm_dev_desc = {
156158

157159
static struct lpss_device_desc byt_uart_dev_desc = {
158160
.flags = LPSS_CLK | LPSS_CLK_GATE | LPSS_CLK_DIVIDER | LPSS_SAVE_CTX,
161+
.clk_con_id = "baudclk",
159162
.prv_offset = 0x800,
160163
.setup = lpss_uart_setup,
161164
};
@@ -313,7 +316,7 @@ static int register_device_clock(struct acpi_device *adev,
313316
return PTR_ERR(clk);
314317

315318
pdata->clk = clk;
316-
clk_register_clkdev(clk, NULL, devname);
319+
clk_register_clkdev(clk, dev_desc->clk_con_id, devname);
317320
return 0;
318321
}
319322

tools/power/cpupower/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ $(OUTPUT)%.o: %.c
209209

210210
$(OUTPUT)cpupower: $(UTIL_OBJS) $(OUTPUT)libcpupower.so.$(LIB_MAJ)
211211
$(ECHO) " CC " $@
212-
$(QUIET) $(CC) $(CFLAGS) $(LDFLAGS) $(UTIL_OBJS) -lcpupower -Wl,-rpath=./ -lrt -lpci -L$(OUTPUT) -o $@
212+
$(QUIET) $(CC) $(CFLAGS) $(LDFLAGS) $(UTIL_OBJS) -lcpupower -lrt -lpci -L$(OUTPUT) -o $@
213213
$(QUIET) $(STRIPCMD) $@
214214

215215
$(OUTPUT)po/$(PACKAGE).pot: $(UTIL_SRC)

0 commit comments

Comments
 (0)