From nobody Tue Oct 7 19:53:39 2025 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8C0AE293C50 for ; Mon, 7 Jul 2025 10:50:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751885434; cv=none; b=oh7m4mWgp37fahuQkymDZ4pG/MIrEvcD0M76wbyhMgHkGzN/k4UEijFSIZYr3TcYOgFbCp/7rKaPPZJWaRg4yt/ACRB7BnZKx3KOyt1UM+MK3BKW8oa4po8z9FRS2aLcoCl3m3c6G8VxVxYpIPFj/4DFirRd/d0okPaUUQpp2QQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751885434; c=relaxed/simple; bh=0ejtn/WsAdu8/bRGN8lGTqyLp6aNab/l8r0UIDaJZLk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=X0BtEXvFBO16xNgtC2/s9Dc5Ysq9BGQsYixRk6AJ6eSdgnpx6Rz3q10lsdLbdjRdvOWlmGftqvXHKb2tWAL8JY93L1LAeOALrn6Fxclc4kdoqO/WE9VfAnl+mNzRBUPoHHDxp3eeLkjmqkjPfEpEul6NUHRm6dS5cILGCLqPiFM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=B9YiDcXN; arc=none smtp.client-ip=209.85.218.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="B9YiDcXN" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-ae0b2ead33cso548247166b.0 for ; Mon, 07 Jul 2025 03:50:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1751885431; x=1752490231; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=To9SF34aS4i0BpQPLo3eZUpW7msBUJxPRVHnQ22RqWQ=; b=B9YiDcXNxoWKZQ39S8bJna3xdCELJQ9tp/M9raXJlBYd3wwQ5ShI3E+BbfI5mz0VOe YmjGEXUNZvEw0fO4CjdcWanIo5prNfhuxo7+b+oESvvCcIz0HzinrGoI/HVDE/yrO/jh ifMS9DvsQVf4qCd4oTxWTFXApSL+5rr7E0Q9ldcksqSE9Sa2uWMc9jLmrYBAw+ixMQF8 QhROdZoH0qbVDaGrDknEfivHpCGE67pyENGQcWmSJ207zl/HbugQHOGA634qSk03q6sN la4L9KnyCw7Fm4IUzKxFldiZtTmhWYAqxqNUZG04tU90Uu15sZcrg1qJ50EJPdStX/hR AyOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751885431; x=1752490231; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=To9SF34aS4i0BpQPLo3eZUpW7msBUJxPRVHnQ22RqWQ=; b=VazKvkukl31VtBky5cdX50PVKOpFQxD1OlLHFcylMW166fWyBefJmAKvUl1t7EiTBi 0aZSDDvu0Uy85mvjWUrIkctxM+jd6OBiGZDZk1j+v8R5PN+ac3WueXxoBxk0AqR4bwOI qWG7YzrVU15pz68KhMIqn2NsBdlWUIaAQcxNKmOFOtgxgiPtGibPXoiYh4OwRE4JI7RO bDwTru5DvuIuMZPD6UXCNnTxp7SAYCozw6weWp+aNW61eZQiRX+EJWsW/Ku6Pzv6dVEG WxieLIr6IY1vOzsLXFPRppQGvvVohKGHWXn5AQdZ0yvULS8aVpobB30ik3e4FfMup70+ /+yg== X-Forwarded-Encrypted: i=1; AJvYcCUvK5zcxRK9tO6cGWdXWRHzCu3hMsr/YPLLDdKCmkDIRs2u8z79giYt55eBuUwz35f18q93izsvEthSNSQ=@vger.kernel.org X-Gm-Message-State: AOJu0YzwmZnjKfXmJj+svoaYwiw3BPj75U1OfSfcOq9T3F3WdqLB+QkL +w89/3IpG6Cdj47UNURDlkwtUUCczJK/geQnW4ugkniP6CocPSobgz2wh50oSnkqPvo= X-Gm-Gg: ASbGncsoBUoq3xAy598Sid03SqR+s/Okq+2Wo3sekeFvvjUSoItBYx6xmC/zsm2Ru6e yGt17A9tfzx96akno4hGRYRlfSfsaV3Ta+MfukSlNklmU8dGDYUbIxUrhnZiLxzmwlPa87GbFfQ aoSNb6AoMdA4T39ZXMoEdY5wv2xbL2WToKJU8lJJGEWl8LtkijvdLoXSQWprXuvojkYvmtowXe8 qNOUqltm2ZDu6LT7jXS+OXiAwBD97SC/WqEALLUQcH05CicciNo09xtSc1x6i+PUXxj/55gv4wt QTtryBbHOyDOknq+vp9Rq41sb8yNzBpFofir6Tuz9O8Oj9lmNZ0yRzWMPrIqXnvng9bzbqJG1z3 PHBmRKSUnwk8+dMlYGLyoh1rLtDqsH42U6J78GwEWNQzXkg== X-Google-Smtp-Source: AGHT+IHuTERPtfX9ZxhMI8bdy4IEV9JRuXfWgu6DrnqQP+XIU9KVQIJ7ZbpjMDmPQKH3cH7nuN9IQQ== X-Received: by 2002:a17:906:c4c1:b0:ae3:6dc7:1ac3 with SMTP id a640c23a62f3a-ae3f82d647fmr955742666b.15.1751885430854; Mon, 07 Jul 2025 03:50:30 -0700 (PDT) Received: from puffmais.c.googlers.com (8.239.204.35.bc.googleusercontent.com. [35.204.239.8]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ae3f66d9263sm685589566b.32.2025.07.07.03.50.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jul 2025 03:50:30 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Mon, 07 Jul 2025 11:50:27 +0100 Subject: [PATCH 1/3] usb: typec: tcpm/tcpci_maxim: fix irq wake usage Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250707-max77759-irq-wake-v1-1-d367f633e4bc@linaro.org> References: <20250707-max77759-irq-wake-v1-0-d367f633e4bc@linaro.org> In-Reply-To: <20250707-max77759-irq-wake-v1-0-d367f633e4bc@linaro.org> To: Heikki Krogerus , Greg Kroah-Hartman Cc: Badhri Jagan Sridharan , Amit Sunil Dhamne , Peter Griffin , Tudor Ambarus , Will McVicker , kernel-team@android.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.14.2 This driver calls enable_irq_wake() during probe() unconditionally, and never issues the required corresponding disable_irq_wake() to disable hardware interrupt wakeup signals. Additionally, whether or not a device should wake-up the system is meant to be a policy decision based on sysfs (.../power/wakeup) in the first place. Update the driver to use the standard approach to enable/disable IRQ wake during the suspend/resume callbacks. This solves both issues described above. Signed-off-by: Andr=C3=A9 Draszik Reviewed-by: Badhri Jagan Sridharan --- drivers/usb/typec/tcpm/tcpci_maxim_core.c | 46 ++++++++++++++++++++-------= ---- 1 file changed, 30 insertions(+), 16 deletions(-) diff --git a/drivers/usb/typec/tcpm/tcpci_maxim_core.c b/drivers/usb/typec/= tcpm/tcpci_maxim_core.c index b5a5ed40faea9cfcceef5550263968148646eb44..ff3604be79da73ca5acff7b5b24= 34c116ed12ef8 100644 --- a/drivers/usb/typec/tcpm/tcpci_maxim_core.c +++ b/drivers/usb/typec/tcpm/tcpci_maxim_core.c @@ -421,21 +421,6 @@ static irqreturn_t max_tcpci_isr(int irq, void *dev_id) return IRQ_WAKE_THREAD; } =20 -static int max_tcpci_init_alert(struct max_tcpci_chip *chip, struct i2c_cl= ient *client) -{ - int ret; - - ret =3D devm_request_threaded_irq(chip->dev, client->irq, max_tcpci_isr, = max_tcpci_irq, - (IRQF_TRIGGER_LOW | IRQF_ONESHOT), dev_name(chip->dev), - chip); - - if (ret < 0) - return ret; - - enable_irq_wake(client->irq); - return 0; -} - static int max_tcpci_start_toggling(struct tcpci *tcpci, struct tcpci_data= *tdata, enum typec_cc_status cc) { @@ -532,7 +517,9 @@ static int max_tcpci_probe(struct i2c_client *client) =20 chip->port =3D tcpci_get_tcpm_port(chip->tcpci); =20 - ret =3D max_tcpci_init_alert(chip, client); + ret =3D devm_request_threaded_irq(&client->dev, client->irq, max_tcpci_is= r, max_tcpci_irq, + (IRQF_TRIGGER_LOW | IRQF_ONESHOT), dev_name(chip->dev), + chip); if (ret < 0) return dev_err_probe(&client->dev, ret, "IRQ initialization failed\n"); @@ -544,6 +531,32 @@ static int max_tcpci_probe(struct i2c_client *client) return 0; } =20 +#ifdef CONFIG_PM_SLEEP +static int max_tcpci_resume(struct device *dev) +{ + struct i2c_client *client =3D to_i2c_client(dev); + int ret =3D 0; + + if (client->irq && device_may_wakeup(dev)) + ret =3D disable_irq_wake(client->irq); + + return ret; +} + +static int max_tcpci_suspend(struct device *dev) +{ + struct i2c_client *client =3D to_i2c_client(dev); + int ret =3D 0; + + if (client->irq && device_may_wakeup(dev)) + ret =3D enable_irq_wake(client->irq); + + return ret; +} +#endif /* CONFIG_PM_SLEEP */ + +static SIMPLE_DEV_PM_OPS(max_tcpci_pm_ops, max_tcpci_suspend, max_tcpci_re= sume); + static const struct i2c_device_id max_tcpci_id[] =3D { { "maxtcpc" }, { } @@ -562,6 +575,7 @@ static struct i2c_driver max_tcpci_i2c_driver =3D { .driver =3D { .name =3D "maxtcpc", .of_match_table =3D of_match_ptr(max_tcpci_of_match), + .pm =3D &max_tcpci_pm_ops, }, .probe =3D max_tcpci_probe, .id_table =3D max_tcpci_id, --=20 2.50.0.727.gbf7dc18ff4-goog From nobody Tue Oct 7 19:53:39 2025 Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 70195293C70 for ; Mon, 7 Jul 2025 10:50:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751885435; cv=none; b=HqYAB59Gs3SeOkVkxaEcIJWlAA+OR43Qka7niOHdUqojKG3JDJOB3Ny4keHqxI+eAqd5Qm4rLLN1q62Ae4t/c+txcl9jpdDIfIzk41+toY0STsYNAUKdB7I2y0wT+GIkqd3g/qmqYmro+2sSVFDD8MX+/3/d9cMg/dUqxA6Kw/0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751885435; c=relaxed/simple; bh=f6i3i5yqRzws9iEfuTWm2a3G03ei3huQGN4PJbNVgAk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IwwUzRN2Uamdc0tkrhaZ6uY0RaH1Dvy7k6DlYH0CTGHeMzVbnt8QVMC140CTVGoK785/5ARZdjd+cKoI48UXVhRQsdzPaS+nXx5SOumk6RHBp4HYO6YTeRIBnxnk7U1KjnhmS5gl1rprf+tS/W1RLwBuQ+QTO4jix2UzAIamUD8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=HZwDFYQ3; arc=none smtp.client-ip=209.85.208.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="HZwDFYQ3" Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-60c3aafae23so8859541a12.1 for ; Mon, 07 Jul 2025 03:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1751885432; x=1752490232; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=YmCQIDMl3v8IIoZAnKy/Am2NKK0HhNDDyZu+VQQ/3mU=; b=HZwDFYQ3y38jOH8ihcN5aMMntZ2e9QHzCLs5Ew333X7KeeHvLeDEJYAIMtf0kvm4pa oNekMHVMnrLBv2dvTJy9fUSN8vofHe9ft6xdLqs4C1Mn4C08RpUBawaxf+3yc2Vgs0RG as/x+PQdFqE7PrxA4pdM30i+rj1sALM0jNNXfgVgHx2o1ABi+msjr6WqsgoFTwIvNzQG RR5ItprPKF66kBQ8BjVOA3WRP3EWiT+I25Ulm2tLBiGfco8Q2lSrCEvy5eT3c3tbTnby ZwG0B/7IlJz1YBybI+FQPZAuQqnjkXNJ18+x/kNrKMTD1fEQ9Uw/Ozrn+2er7ZjXglrS QTcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751885432; x=1752490232; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YmCQIDMl3v8IIoZAnKy/Am2NKK0HhNDDyZu+VQQ/3mU=; b=aPlz9YYv5kZcQDv/iPuPn2BYNDbYzeLikQ95kpdTNA2IcqLZSfTFGgtnta+OvbfjYe 53sdRuPN0pJe3+fUE4EUfWB/wIV+gP//VaEffoBHvRMAvlaNAzqSMCW0ULI/EM4LNDI2 ETFAOm9Ht3NHag9iB+xdhJ70CsC6K6R6ZGRXEouTLjPPkIOwuP/yEb6QlVRcXk4kdRIT pbqSznqZbNpKzRPzsB0WKHnx3Hu6CslHe8gulkgXejwXR0VH/uGcJGQ7xlaLjlK9O64H YF8uBfNVOWLYwWKvEIpEvRlPqy83FKGD2ScDp7+OGX8GdnfovXXkxUOxm0A89YwOUHaS Dp5A== X-Forwarded-Encrypted: i=1; AJvYcCUU2JGrTn/CE6pxdZ9B6lWPpp+2nuDPcefMuZ43HobvD9JHA+EZ92+/oREwCdaDMzLWp45b3fGnQqTzv84=@vger.kernel.org X-Gm-Message-State: AOJu0YwQASgyxc4ds1u/Px+pKHWlrmRjjDQM8+JeCHD6m8GjArB4rjOY DGaNpI70wvO44H30xt1V498/CubwkdndoI9OL18F/El6zNVYaU0PCKzMwosfruJ9opE= X-Gm-Gg: ASbGncvYnr6K4A5YkBGywlYzfPn5WfUNSCwkE4d+hCwNFX685IHDlRc3ZCo4i9eXPM5 SMzn1wIuq3213xUR1f+NNaQW4BjKcWdD9vR6wpgTfMXfOx51g5l1WNlo+a+HilJJ8UwX+WZQ+2Z YQy8a+5SV5X7kM3HpfBs9cDAV5TbvXaRcRv97FOf06JJSPfmH/kDoEczKZvB/j9ChWd5+dXg5rd jj1l/YfvxmuEKo1XjhU9F1iAiiXrbnuqH3bt5hnw0svipQyeMMK98ngVJq90L3n70sV0AQCKga0 kA3wcCAWBBT1rmTm30Cgx+K1mF4Mj2E3wWhofpisC2vdCfT3fjbyA0LOTwEZrkXMqqL+nx4CeRb jnhDcTx+wSk5p3X2NqwVKgqyGgPkmeS8ghz/EE1BHFQcAKQ== X-Google-Smtp-Source: AGHT+IGav+c60s5uFQX92fVHVquRrewtlteZVCzy6shSwbVRNxJROcWW4Okroq5etS3QTlQNkZXc8A== X-Received: by 2002:a17:907:a4c4:b0:ae4:123a:7fe3 with SMTP id a640c23a62f3a-ae4123a84f0mr721352866b.20.1751885431658; Mon, 07 Jul 2025 03:50:31 -0700 (PDT) Received: from puffmais.c.googlers.com (8.239.204.35.bc.googleusercontent.com. [35.204.239.8]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ae3f66d9263sm685589566b.32.2025.07.07.03.50.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jul 2025 03:50:31 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Mon, 07 Jul 2025 11:50:28 +0100 Subject: [PATCH 2/3] usb: typec: tcpm/tcpci_maxim: drop CONFIG_OF Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250707-max77759-irq-wake-v1-2-d367f633e4bc@linaro.org> References: <20250707-max77759-irq-wake-v1-0-d367f633e4bc@linaro.org> In-Reply-To: <20250707-max77759-irq-wake-v1-0-d367f633e4bc@linaro.org> To: Heikki Krogerus , Greg Kroah-Hartman Cc: Badhri Jagan Sridharan , Amit Sunil Dhamne , Peter Griffin , Tudor Ambarus , Will McVicker , kernel-team@android.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.14.2 The general recommendation is to not use of_match_ptr() or CONFIG_OF ifdef. Drop them. Signed-off-by: Andr=C3=A9 Draszik Reviewed-by: Badhri Jagan Sridharan --- drivers/usb/typec/tcpm/tcpci_maxim_core.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/typec/tcpm/tcpci_maxim_core.c b/drivers/usb/typec/= tcpm/tcpci_maxim_core.c index ff3604be79da73ca5acff7b5b2434c116ed12ef8..43b0ec2d12ba6d4c1cfccbfd355= af3e5d9ce1385 100644 --- a/drivers/usb/typec/tcpm/tcpci_maxim_core.c +++ b/drivers/usb/typec/tcpm/tcpci_maxim_core.c @@ -563,18 +563,16 @@ static const struct i2c_device_id max_tcpci_id[] =3D { }; MODULE_DEVICE_TABLE(i2c, max_tcpci_id); =20 -#ifdef CONFIG_OF static const struct of_device_id max_tcpci_of_match[] =3D { { .compatible =3D "maxim,max33359", }, {}, }; MODULE_DEVICE_TABLE(of, max_tcpci_of_match); -#endif =20 static struct i2c_driver max_tcpci_i2c_driver =3D { .driver =3D { .name =3D "maxtcpc", - .of_match_table =3D of_match_ptr(max_tcpci_of_match), + .of_match_table =3D max_tcpci_of_match, .pm =3D &max_tcpci_pm_ops, }, .probe =3D max_tcpci_probe, --=20 2.50.0.727.gbf7dc18ff4-goog From nobody Tue Oct 7 19:53:39 2025 Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5ECDB295DBE for ; Mon, 7 Jul 2025 10:50:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751885436; cv=none; b=GajTErOCzDybPquLGuFXfM4Mn0dm8hshr3SHJ19U0LRXhTUL7RUnJU5xL3y4vM4z8ZTkCkz8oUKXdtJMf9IL/C1SNrXyNa+KMYRMVIpHyDw4qfko/OTKXjC6TGzOfZApsV0v3xVv6m96hTNCqO2rXKzkBjmTkqRwQfMAde2Oa34= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751885436; c=relaxed/simple; bh=0DjKBEEYRbVy4AQeYlNr37VxbcA1nPmfYINGRxp0EWU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oQbQa/8Lq/rVXSixEcrfsqQdwQBCsvOEDgO31SKyyY8H13NDiEsZmSuysikcUmK5JGdwJGIBV2XarpMcCjUvxm/H/6o/vkWOwVrWcf/NENMjabyoY9UO54JCsohCb6BNuJYa775xb1YdRqfEWVl+sIkcwvWzpcHfdnluo8voTEc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Qo0V5/uK; arc=none smtp.client-ip=209.85.208.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Qo0V5/uK" Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-60c5b7cae8bso4634675a12.1 for ; Mon, 07 Jul 2025 03:50:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1751885433; x=1752490233; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=M0Uhf9cokxwTL0c2ydgWGzKYaoyMWc7a0121SK5qMwA=; b=Qo0V5/uKxwkrRwOdKq7OurPUP3WxYLYRA9fAsn0HL2g0/qCLXYS/+8cq+C1Eiqvr89 Lcme7YYj/zq2yiy0Sq7OlqDcbvd5HpaaDGXC5obaPPXw6AUBOm73Z2A5GkQvNxxfvyzi Q7+2O6AZARp8ybodC3yAg5pH7v1EV2NKjRSqCEWCeSsOXPe+uNX9HHwRI8lv84hFGL4+ eeI9p4/SRYJlooFV9Cr3oZeYZpArQhvBhyKZZQA3B1q6LYhoPPccxznVQ/MGoect6EAJ it7eXo5DBofBc3RYH9dNX9PpW/NOxbSFQJxkYbZmYC9GgAS0UzYRgeerFAUERLDVm26Z XfHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751885433; x=1752490233; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=M0Uhf9cokxwTL0c2ydgWGzKYaoyMWc7a0121SK5qMwA=; b=FH/AjswOsy/XtodfUIHBG+E5qjaS25FC+hbOg/HFPJunNMvrDZ4EQCEUtcScU6PUo4 1XOvurlfwO8sYb74lutvUiJDabfFfjOFZZ3S7JIkq7pT13X8G0hw8mzNl4ByNM2uF2wj gVicOvgRqyFWr5Sme+7sA8Kusas0fydMJIHWP2qJutZ7VLZiUuo2YSqYvUAel3Tf+8nI YaKx94RuCaSlsxT2aLNo/X6Z1vnYd4RZlbdhBrveGIy/XmGPdWYxQVcsRoUMRM9S19QC md7vim1DNV3DIR0DS4uxGkAiY2DiH4bt7fv5QwD+SRrU1wTmNQ7uWQ9J40k8iYuKi5eY rX1A== X-Forwarded-Encrypted: i=1; AJvYcCVlXWFntaJpJ2ozG/AYDlLbjQDN5KClnzAjlXtN043veFcxeBkdEAJkIKmL5xwVUf8740nKyI2AYTjiWSA=@vger.kernel.org X-Gm-Message-State: AOJu0YwdNKxNOKxQ4tOXRKRNZfHjxOcg+ZHecIi9Iu9n4YB6UpLYxDwP m5vDbinuPXCf+FOfCdzeDvYnYjeZ1/HyCZYYu1mKbRB94+v+NR6E2ZysuP49R5XmySU= X-Gm-Gg: ASbGncv0jINZWDlpQDQlEYPOJeOsCeMH21wV1y9qmH80QKiWz21KnFiiPkuXP+ZzSVr wflt6zLHY8qszgnBox/F1ytK5zWS3/OZTL7Xa3cQVC8H2b4bv/gDO5M1/SsHr/1gk3r3FRW5MjQ eQ2fIwHF74Tle7wTH5Zp88D2y1Fem8H3+EkoPn9eoIz5HRbucTXjcWkrNL3Iv9ujnm57CLyCMP6 8C/JG1wi7J+Cu/S0xLxSSMOCU+8Yyu0NYexu7Lo5Zt0HRuSuDpN02KPxDTHw5/1nPOSo554+qYQ VdjbMhKsfdgDWE7UsiuzsUXxwrVCCnFDNQkdOSYEINSaBxezfIYojQLTetf0hdckvmVcejH1swQ ESjozSIJpwwCBR6oOcx7J3v7kVWkjSvJf1pm2w6BBZK9xBw== X-Google-Smtp-Source: AGHT+IEnDjsO6opm22lwjQu/Rj7KamWYfLbMulTjzO/UV9wnDWne15HveaE9d9M6MYNJffXab6eCtg== X-Received: by 2002:a17:906:6a0a:b0:ad5:a121:6ebc with SMTP id a640c23a62f3a-ae3fb98bdcbmr1157384666b.0.1751885432641; Mon, 07 Jul 2025 03:50:32 -0700 (PDT) Received: from puffmais.c.googlers.com (8.239.204.35.bc.googleusercontent.com. [35.204.239.8]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ae3f66d9263sm685589566b.32.2025.07.07.03.50.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jul 2025 03:50:31 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Mon, 07 Jul 2025 11:50:29 +0100 Subject: [PATCH 3/3] usb: typec: tcpm/tcpci_maxim: enable PROBE_PREFER_ASYNCHRONOUS Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250707-max77759-irq-wake-v1-3-d367f633e4bc@linaro.org> References: <20250707-max77759-irq-wake-v1-0-d367f633e4bc@linaro.org> In-Reply-To: <20250707-max77759-irq-wake-v1-0-d367f633e4bc@linaro.org> To: Heikki Krogerus , Greg Kroah-Hartman Cc: Badhri Jagan Sridharan , Amit Sunil Dhamne , Peter Griffin , Tudor Ambarus , Will McVicker , kernel-team@android.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.14.2 This driver works fine with asynchronous probe. Signed-off-by: Andr=C3=A9 Draszik Reviewed-by: Badhri Jagan Sridharan --- drivers/usb/typec/tcpm/tcpci_maxim_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/typec/tcpm/tcpci_maxim_core.c b/drivers/usb/typec/= tcpm/tcpci_maxim_core.c index 43b0ec2d12ba6d4c1cfccbfd355af3e5d9ce1385..19f63865079658fb2a446dc3902= 62d141b940e9a 100644 --- a/drivers/usb/typec/tcpm/tcpci_maxim_core.c +++ b/drivers/usb/typec/tcpm/tcpci_maxim_core.c @@ -572,6 +572,7 @@ MODULE_DEVICE_TABLE(of, max_tcpci_of_match); static struct i2c_driver max_tcpci_i2c_driver =3D { .driver =3D { .name =3D "maxtcpc", + .probe_type =3D PROBE_PREFER_ASYNCHRONOUS, .of_match_table =3D max_tcpci_of_match, .pm =3D &max_tcpci_pm_ops, }, --=20 2.50.0.727.gbf7dc18ff4-goog