From patchwork Thu Apr 14 08:31:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aswath Govindraju X-Patchwork-Id: 562171 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D5D00C433FE for ; Thu, 14 Apr 2022 08:31:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239013AbiDNIeD (ORCPT ); Thu, 14 Apr 2022 04:34:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232467AbiDNIeD (ORCPT ); Thu, 14 Apr 2022 04:34:03 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 369755D5E6; Thu, 14 Apr 2022 01:31:38 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 23E8VRjL045901; Thu, 14 Apr 2022 03:31:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1649925087; bh=+RAZBRGAPF3I3env6XUTMQi/ezO5Z3mUOIrvoshpHeA=; h=From:To:CC:Subject:Date; b=eubK0QgELYtIXyTQ5VodkX3kVjbUeydrpmR2q7eCVLJ9zt3S96PBb7OB4Kyl3tYLt NwYmDI6gmbU3uU3imnuUt8OVblmT261slFvvDnOThJ0AIgoPz0DYn0uL3MCAyuTZkj xvTxXs1t2mcuzPltr1hqjAf2ApnqnAh4Sqc7zvSo= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 23E8VRhc013924 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 14 Apr 2022 03:31:27 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Thu, 14 Apr 2022 03:31:26 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Thu, 14 Apr 2022 03:31:26 -0500 Received: from gsaswath-HP-ProBook-640-G5.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 23E8VLNm025547; Thu, 14 Apr 2022 03:31:22 -0500 From: Aswath Govindraju CC: Vignesh Raghavendra , Roger Quadros , Kishon Vijay Abraham I , Aswath Govindraju , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Heikki Krogerus , Sven Peter , Alyssa Rosenzweig , Hector Martin , Saranya Gopal , "Bryan O'Donoghue" , , , Subject: [PATCH 0/2] typec: tipd: Add support for polling Date: Thu, 14 Apr 2022 14:01:16 +0530 Message-ID: <20220414083120.22535-1-a-govindraju@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org 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(-)