public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] usb: typec: tipd: drop double register read in tps6598x_interrupt
@ 2025-11-06 16:48 Peter Korsgaard
  2025-11-07  8:36 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2025-11-06 16:48 UTC (permalink / raw)
  To: javier.carrasco, heikki.krogerus, neal, gregkh, linux-usb
  Cc: Peter Korsgaard, linux-kernel

Commit 409c1cfb5a80 ("usb: typec: tipd: fix event checking for tps6598x")
added (by accident?) a double read of the TPS_REG_INT_EVENT1 register.  Drop
that.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 drivers/usb/typec/tipd/core.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/usb/typec/tipd/core.c b/drivers/usb/typec/tipd/core.c
index 2b1049c9a6f3..2d4fcf62c200 100644
--- a/drivers/usb/typec/tipd/core.c
+++ b/drivers/usb/typec/tipd/core.c
@@ -994,8 +994,6 @@ static irqreturn_t tps6598x_interrupt(int irq, void *data)
 	    TPS_VERSION_HW_VERSION(version) == TPS_VERSION_HW_65987_8_DK)
 		intev_len = TPS_65987_8_INTEVENT_LEN;
 
-	ret = tps6598x_block_read(tps, TPS_REG_INT_EVENT1, event1, intev_len);
-
 	ret = tps6598x_block_read(tps, TPS_REG_INT_EVENT1, event1, intev_len);
 	if (ret) {
 		dev_err(tps->dev, "%s: failed to read event1\n", __func__);
-- 
2.39.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-11-10  8:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-06 16:48 [PATCH] usb: typec: tipd: drop double register read in tps6598x_interrupt Peter Korsgaard
2025-11-07  8:36 ` Greg KH
2025-11-07 15:03   ` Peter Korsgaard
2025-11-08  0:43     ` Greg KH
2025-11-10  8:16       ` Heikki Krogerus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox