Skip to content

Commit cd1245d

Browse files
committed
Merge tag 'platform-drivers-x86-v5.13-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
Pull x86 platform driver fixes from Hans de Goede: "Assorted pdx86 bug-fixes and some hardware-id additions for 5.13. The mlxreg-hotplug revert is a regression-fix" * tag 'platform-drivers-x86-v5.13-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86: platform/mellanox: mlxreg-hotplug: Revert "move to use request_irq by IRQF_NO_AUTOEN flag" platform/surface: dtx: Add missing mutex_destroy() call in failure path platform/surface: aggregator: Fix event disable function platform/x86: thinkpad_acpi: Add X1 Carbon Gen 9 second fan support platform/surface: aggregator_registry: Add support for 13" Intel Surface Laptop 4 platform/surface: aggregator_registry: Update comments for 15" AMD Surface Laptop 4
2 parents a4c30b8 + 701b54b commit cd1245d

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

drivers/platform/mellanox/mlxreg-hotplug.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,13 +683,13 @@ static int mlxreg_hotplug_probe(struct platform_device *pdev)
683683

684684
err = devm_request_irq(&pdev->dev, priv->irq,
685685
mlxreg_hotplug_irq_handler, IRQF_TRIGGER_FALLING
686-
| IRQF_SHARED | IRQF_NO_AUTOEN,
687-
"mlxreg-hotplug", priv);
686+
| IRQF_SHARED, "mlxreg-hotplug", priv);
688687
if (err) {
689688
dev_err(&pdev->dev, "Failed to request irq: %d\n", err);
690689
return err;
691690
}
692691

692+
disable_irq(priv->irq);
693693
spin_lock_init(&priv->lock);
694694
INIT_DELAYED_WORK(&priv->dwork_irq, mlxreg_hotplug_work_handler);
695695
dev_set_drvdata(&pdev->dev, priv);

drivers/platform/surface/aggregator/controller.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1907,7 +1907,7 @@ static int ssam_ssh_event_disable(struct ssam_controller *ctrl,
19071907
{
19081908
int status;
19091909

1910-
status = __ssam_ssh_event_request(ctrl, reg, reg.cid_enable, id, flags);
1910+
status = __ssam_ssh_event_request(ctrl, reg, reg.cid_disable, id, flags);
19111911

19121912
if (status < 0 && status != -EINVAL) {
19131913
ssam_err(ctrl,

drivers/platform/surface/surface_aggregator_registry.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static const struct software_node *ssam_node_group_sl2[] = {
156156
NULL,
157157
};
158158

159-
/* Devices for Surface Laptop 3. */
159+
/* Devices for Surface Laptop 3 and 4. */
160160
static const struct software_node *ssam_node_group_sl3[] = {
161161
&ssam_node_root,
162162
&ssam_node_bat_ac,
@@ -521,9 +521,12 @@ static const struct acpi_device_id ssam_platform_hub_match[] = {
521521
/* Surface Laptop 3 (13", Intel) */
522522
{ "MSHW0114", (unsigned long)ssam_node_group_sl3 },
523523

524-
/* Surface Laptop 3 (15", AMD) */
524+
/* Surface Laptop 3 (15", AMD) and 4 (15", AMD) */
525525
{ "MSHW0110", (unsigned long)ssam_node_group_sl3 },
526526

527+
/* Surface Laptop 4 (13", Intel) */
528+
{ "MSHW0250", (unsigned long)ssam_node_group_sl3 },
529+
527530
/* Surface Laptop Go 1 */
528531
{ "MSHW0118", (unsigned long)ssam_node_group_slg1 },
529532

drivers/platform/surface/surface_dtx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ static int surface_dtx_open(struct inode *inode, struct file *file)
427427
*/
428428
if (test_bit(SDTX_DEVICE_SHUTDOWN_BIT, &ddev->flags)) {
429429
up_write(&ddev->client_lock);
430+
mutex_destroy(&client->read_lock);
430431
sdtx_device_put(client->ddev);
431432
kfree(client);
432433
return -ENODEV;

drivers/platform/x86/thinkpad_acpi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8853,6 +8853,7 @@ static const struct tpacpi_quirk fan_quirk_table[] __initconst = {
88538853
TPACPI_Q_LNV3('N', '2', 'O', TPACPI_FAN_2CTL), /* P1 / X1 Extreme (2nd gen) */
88548854
TPACPI_Q_LNV3('N', '2', 'V', TPACPI_FAN_2CTL), /* P1 / X1 Extreme (3nd gen) */
88558855
TPACPI_Q_LNV3('N', '3', '0', TPACPI_FAN_2CTL), /* P15 (1st gen) / P15v (1st gen) */
8856+
TPACPI_Q_LNV3('N', '3', '2', TPACPI_FAN_2CTL), /* X1 Carbon (9th gen) */
88568857
};
88578858

88588859
static int __init fan_init(struct ibm_init_struct *iibm)

0 commit comments

Comments
 (0)