Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd0d1d01 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: smb138x: set some USB/Typec IRQs as wakeup ones"

parents aa022618 dfbd9633
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1371,10 +1371,12 @@ static struct smb_irq_info smb138x_irqs[] = {
	[USBIN_PLUGIN_IRQ] = {
		.name		= "usbin-plugin",
		.handler	= smblib_handle_usb_plugin,
		.wake		= true,
	},
	[USBIN_SRC_CHANGE_IRQ] = {
		.name		= "usbin-src-change",
		.handler	= smblib_handle_usb_source_change,
		.wake		= true,
	},
	[USBIN_ICL_CHANGE_IRQ] = {
		.name		= "usbin-icl-change",
@@ -1383,6 +1385,7 @@ static struct smb_irq_info smb138x_irqs[] = {
	[TYPE_C_CHANGE_IRQ] = {
		.name		= "type-c-change",
		.handler	= smblib_handle_usb_typec_change,
		.wake		= true,
	},
/* DC INPUT IRQs */
	[DCIN_COLLAPSE_IRQ] = {
@@ -1825,6 +1828,8 @@ static int smb138x_probe(struct platform_device *pdev)
		goto cleanup;
	}

	device_init_wakeup(chip->chg.dev, true);

	pr_info("SMB138X probed successfully mode=%d\n", chip->chg.mode);
	return rc;