Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp985938pxp; Wed, 16 Mar 2022 23:32:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIxO5d9lkTwD0E46u+RrrPZc9Qh0QWDBLZJX4Zrm8MsFgXk6fW3TjwSvoXhi4NV9Fxlkko X-Received: by 2002:a17:906:3a55:b0:6ce:c2ee:3e10 with SMTP id a21-20020a1709063a5500b006cec2ee3e10mr2770995ejf.210.1647498741363; Wed, 16 Mar 2022 23:32:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647498741; cv=none; d=google.com; s=arc-20160816; b=Zj2XIxfcrPTaPveeoH8Ixp2Txbtoyysz5vxeDVVgY7/F6K4Zsb+uitAoo/wR/FDl7x +tXIF2ZMewrCQbzbehhV8lKh4DtVC2xUVW3lyM087T7pfx9EITs/yTTrBCB0qmF79vf0 PP4wHorG7rTpYbYMf/EmA9KGo/W07mrRIeeXb05RdrL9Vno1GeZSGtQMOh5IIRUSI4NS +pf0n6ey/IRwqaXkZX6wfYDe287uaCiheFCACVZznvlFpNxzhpqUFHRZA6OHanyPiU7M ZqiuLnQcDwrYv8dR2dB8+lDzjbfpHhrIZTFJpflFEW2QzECqEqQAbM3za2+iiqrUkpSJ AinA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=yAjKArgG+UzEZta3g6kqWrjnT6A3ODfHAc9WTuI1vFk=; b=XMSkurdy42Ydaj/2AvE9lhNjs4Lgq1tZ3yDl5cEBgnuwFn5nseXTJ4LmpcpLU2/9nt HPRrl4DdnpoAXBbYjsQ2qhrIrLFt0/YGf2zmAzpgDwoWWnBM4wvAPZKug+U2J7sH5kWD s2w4GgWORrmz0I0+o6yuyNuDKfNsChucXzKpqO5iv9R+4RxeKUoFmOj5fKNgeV7MuN/j aexPtXgyqGKrVh6hHSmzWuwwkzykQpchk7UCUZl3R9xfPGtYRwepnsdR/tq/DMBfYY2P GTV1f6q435uqWkrfqEDzDrdqu0Esq+D1ALqGhabihIAeSxQOA+r0edx3SOyf7yLIDb8N wQDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=vTkTc2ES; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020a1709063a5500b006df84b34131si1848799ejf.226.2022.03.16.23.31.55; Wed, 16 Mar 2022 23:32:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=vTkTc2ES; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229646AbiCQGWf (ORCPT + 99 others); Thu, 17 Mar 2022 02:22:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229776AbiCQGW3 (ORCPT ); Thu, 17 Mar 2022 02:22:29 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA37ED1CC0; Wed, 16 Mar 2022 23:12:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1647497560; x=1679033560; h=from:to:cc:subject:date:message-id:mime-version; bh=yAjKArgG+UzEZta3g6kqWrjnT6A3ODfHAc9WTuI1vFk=; b=vTkTc2ESNlTbBvH1wTvMWx/23A94EtQBvGmxHELikZTrdNuAwa+70RIG PIZfz5BH2K8Mk6GuOgDhw3o72QUCmDiixASvxfTe5rJlBHdzC+tF1MN4M aPWzkSXHGMXmHvTi68yS2rGj+AFGksszKSZIgd3zc83WKzHdo6bRrKdjr 8=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-01.qualcomm.com with ESMTP; 16 Mar 2022 23:12:39 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2022 23:12:38 -0700 Received: from nalasex01c.na.qualcomm.com (10.47.97.35) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 16 Mar 2022 23:12:38 -0700 Received: from fenglinw-gv.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 16 Mar 2022 23:12:36 -0700 From: Fenglin Wu To: , , CC: , , , , Subject: [PATCH v6 00/10] A bunch of fix and optimization patches in spmi-pmic-arb.c Date: Thu, 17 Mar 2022 14:12:05 +0800 Message-ID: <1647497535-32151-1-git-send-email-quic_fenglinw@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes in v6: Rebased [v5 08/10] on https://lore.kernel.org/linux-arm-msm/20211227170151.73116-1-david@ixit.cz/#t Changes in v5: Drop [v4 11/11] because of a similar change is under review: https://lore.kernel.org/linux-arm-msm/YdRJcv2kpp1vgUTb@robh.at.kernel.org/T/#t Changes in v4: In [v4 02/11], separated spurious interrupt handling. In [v4 03/11], added Fixes tag for ("spmi: pmic-arb: do not ack and clear peripheral"). In [v4 11/11], updated the binding to address few warnings in "make dtbs_check" Changes in v3: Drop [v2 07/10] as this is no longer needed after this change: 50fc4c8cd240 ("spmi: spmi-pmic-arb: fix irq_set_type race condition") In [v3 07/10], updated the author email to match with Signed-off-by. In [v3 10/10], added the binding change in this series, and addressed issues in "make dt_binding_check" Changes in v2: In [v2 01/10], added code to handle spurious interrupt. In [v2 03/10], adressed minor comments to update the code logic. In [v2 04/10], minor update to detect spurious interrupt. In [v2 05/10], added Fixes tag. In [v2 07/10], added Fixes tag and updated commit text to explain the problem. In [v2 08/10], added binding change to make interrupt properties as optional. In [v2 09/10], updated to check presence of "interrupt-controller" property. Abhijeet Dharmapurikar (1): spmi: pmic-arb: add a print in cleanup_irq Ashay Jaiswal (1): spmi: pmic-arb: add support to dispatch interrupt based on IRQ status David Collins (6): spmi: pmic-arb: check apid against limits before calling irq handler spmi: pmic-arb: correct duplicate APID to PPID mapping logic spmi: pmic-arb: block access for invalid PMIC arbiter v5 SPMI writes dt-bindings: spmi: spmi-pmic-arb: make interrupt properties as optional spmi: pmic-arb: make interrupt support optional spmi: pmic-arb: increase SPMI transaction timeout delay Fenglin Wu (1): spmi: pmic-arb: handle spurious interrupt Subbaraman Narayanamurthy (1): spmi: pmic-arb: do not ack and clear peripheral interrupts in cleanup_irq .../bindings/spmi/qcom,spmi-pmic-arb.yaml | 3 - drivers/spmi/spmi-pmic-arb.c | 136 +++++++++++++++------ 2 files changed, 96 insertions(+), 43 deletions(-) -- 2.7.4