mbox series

[0/2] typec: tipd: Add support for polling

Message ID 20220414083120.22535-1-a-govindraju@ti.com (mailing list archive)
Headers show
Series typec: tipd: Add support for polling | expand

Message

Aswath Govindraju April 14, 2022, 8:31 a.m. UTC
The following series of patches add support for polling in the tipd
driver. The driver switches to polling by default, when interrupts
property is not populated.

Link to RFC patch posted earlier,
- https://patchwork.kernel.org/project/linux-usb/patch/20220412145059.4717-1-a-govindraju@ti.com/

Changes since RFC patch,
- Added patch to make the required changes in dt-bindings to make
  interrupts optional
- Changed to using (client->irq) to decide whether interrupts or
  polling should be used instead of switching to polling based on
  the return value while requesting irq line.

Aswath Govindraju (2):
  dt-bindings: usb: tps6598x: Make the interrupts property optional
  usb: typec: tipd: Add support for polling interrupts status when
    interrupt line is not connected

 .../devicetree/bindings/usb/ti,tps6598x.yaml  |  4 +-
 drivers/usb/typec/tipd/core.c                 | 99 ++++++++++++++++---
 2 files changed, 90 insertions(+), 13 deletions(-)