Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4077581pxb; Wed, 13 Oct 2021 20:22:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEtUJ1/ZhQOlaGRUlJAwRuDKSEOYmaBasSvAUfhdVFZGbyXay3RMn4ozmMCW+RKZCJia0H X-Received: by 2002:a63:7b5d:: with SMTP id k29mr2430777pgn.236.1634181752009; Wed, 13 Oct 2021 20:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634181752; cv=none; d=google.com; s=arc-20160816; b=IbXFDoOj8Z8W/2u/8Ckfgx48OjbaMC8h8pl/2yNjrM/Qhr/urj55ogfXwGAW64+W0T b4pvmrFrMJkm5xRNKl3l0Gg4P+bDPKTgggIWCCfiTXu2Odio9YPLp+ZS/3ylJM7ZliWW kktraBl/nCe3Cw3KJ8x7GRqAKAwj0t9KXxTbQ7y6tLw1c8lFY3xBH7gYiXgO3gu2/AbA 59OiDRXwkiOPU2T46twdkzZtye7iJOO9Wm+gSa/vvRRA+pwaw1vbxJMO0I2PsOOAK5tD AvG3IhRqV/ka6McS1Uy0aQ2u76Y97jk0jF00ExLLDfzaQ7XyI8mB0jeEicgNMiAI8lAX gHOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=e4FZcjE4Yy/CYv+QIs78RcM3+6mae1SVFCBpkrsfzQA=; b=AxuUNSiulHc4VTO5yHKaMXbo/Z7eq8UKMzWlFG0OzFt0BXn6PqjYGqYQ2ZjRt4a217 po7kFsUsjMUfEBXjkPErgk9f5jjjMYpxQ1Z5eofVTOLF59URJmc+YUf9PuN1T6uIoRzH RbK0+qFL+dfebK1+9A7GdwhYIGt3lD9V8X+U1AjB8gkYff9Oe0BCAcb6bq6QURigvaI8 UzropV2OwAF9MFibz1mCX8MWRPjCjhlbqODdWW4pSgfRsqzSDbKjzC99vCF5U712ptRt EWqMyK4iOW2NDNekkD7+LE/4cu2GGuuoELAzQ/FTxZ2HwfNy+o1iWe2htKeqmu/DjGIV 5c6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=xm1UtwXX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u1si1926895plh.344.2021.10.13.20.22.19; Wed, 13 Oct 2021 20:22:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=xm1UtwXX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229877AbhJNDXL (ORCPT + 99 others); Wed, 13 Oct 2021 23:23:11 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:62230 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbhJNDXG (ORCPT ); Wed, 13 Oct 2021 23:23:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1634181662; x=1665717662; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=e4FZcjE4Yy/CYv+QIs78RcM3+6mae1SVFCBpkrsfzQA=; b=xm1UtwXXYfwJavgrTlN984rAdpuNx0e/VgGWLm87gTgIN+HjFRB1Xiaq Fj8+Fhp434ti5OaVTa0/KuY2gnsIDFMHQcBp3zu0NAj7XA/jgjlcfIpPB fDXg5mAOTNxWj7B+J/2dNXqUzvZrudf7p9lKd3KFb0Ndw37IME+MFeBsf c=; Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 13 Oct 2021 20:21:02 -0700 X-QCInternal: smtphost Received: from nalasex01c.na.qualcomm.com ([10.47.97.35]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2021 20:21:01 -0700 Received: from [10.231.205.174] (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.922.7; Wed, 13 Oct 2021 20:20:59 -0700 Subject: Re: [RESEND PATCH v1 8/9] spmi: pmic-arb: make interrupt support optional To: Stephen Boyd , , CC: , References: <1631860384-26608-1-git-send-email-quic_fenglinw@quicinc.com> <1631860384-26608-9-git-send-email-quic_fenglinw@quicinc.com> <163406051353.936959.12718174954614897750@swboyd.mtv.corp.google.com> <3bf1fbf3-e741-ef08-a4e4-b348b877d02a@quicinc.com> <163415390922.936959.12352892206436080955@swboyd.mtv.corp.google.com> From: Fenglin Wu Message-ID: <23918853-ed37-f11f-9e1e-5f302910e320@quicinc.com> Date: Thu, 14 Oct 2021 11:20:57 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <163415390922.936959.12352892206436080955@swboyd.mtv.corp.google.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US 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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/14/2021 3:38 AM, Stephen Boyd wrote: > Quoting Fenglin Wu (2021-10-13 01:36:54) >> On 10/13/2021 1:41 AM, Stephen Boyd wrote: >>> Quoting Fenglin Wu (2021-09-16 23:33:03) >>>> From: David Collins >>>> >>>> Make the support of PMIC peripheral interrupts optional for >>>> spmi-pmic-arb devices. This is useful in situations where >>>> SPMI address mapping is required without the need for IRQ >>>> support. >>>> >>>> Signed-off-by: David Collins >>>> Signed-off-by: Fenglin Wu >>>> --- >>>> drivers/spmi/spmi-pmic-arb.c | 45 +++++++++++++++++++++++++++----------------- >>> Is there a binding update? Can the binding be converted to YAML as well? >> This change doesn't add/update any dtsi properties but just checking if an >> existing property is present to decide if IRQ support is required, so no >> binding change is needed. > The property is now optional in the binding. Please update the binding. Right, thanks for pointing it out. I forgot that part. I will update the binding. How about only update the interrupt properties as optional in this series then I can come up with following patch to convert the binding to YAML format? > >>>> 1 file changed, 28 insertions(+), 17 deletions(-) >>>> >>>> diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c >>>> index 988204c..55fa981 100644 >>>> --- a/drivers/spmi/spmi-pmic-arb.c >>>> +++ b/drivers/spmi/spmi-pmic-arb.c >>>> @@ -1280,10 +1280,12 @@ static int spmi_pmic_arb_probe(struct platform_device *pdev) >>>> goto err_put_ctrl; >>>> } >>>> >>>> - pmic_arb->irq = platform_get_irq_byname(pdev, "periph_irq"); >>>> - if (pmic_arb->irq < 0) { >>>> - err = pmic_arb->irq; >>>> - goto err_put_ctrl; >>>> + if (of_find_property(pdev->dev.of_node, "interrupt-names", NULL)) { >>> I don't think we should be keying off of interrupt-names. Instead we >>> should be checking for something else. Maybe interrupt-controller >>> property? >> Sure, I can update it to check the presence of "interrupt-controller" >> property. > Ok.