Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1112940pxa; Thu, 13 Aug 2020 00:20:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCX64pdDbqkle/iNcsEfhkb6k6N6TBUfwllD4woml+xW2/kmrGj0HDmh9nQMuKLz0s0DY8 X-Received: by 2002:aa7:dd05:: with SMTP id i5mr3507368edv.324.1597303225865; Thu, 13 Aug 2020 00:20:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597303225; cv=none; d=google.com; s=arc-20160816; b=cfydTTBUzmtbNkOl/3VWc9p77velSuSHWXeXRmxjo7GV1paEV6oBT47IMTjFYq4Nk0 C3zZoQqAlmMd84Lvl6T7MhXYj+1oIcArL2M4y05rVTjw7r+9e4Qcv1PXXrI0KrOb7aQ/ aEFHezUvQjyPm2FFCC6lRPnL0bCT7DK3gWd9xnYJN+OYoytpSPPXN5ohZVm4aYXZ//wT LHYUwsz4IZHILgn/hUwPn8Z2eNdBD4FM/qOZE3ApmOsFELkKVsOS3X4F6NN6lngcUN+1 KkRoXbwgcLt9wrd6iPyAdZeaV4JdUlfke7UTy/mM7qjtN2KvJR7hFdaSuroXOZWTaSRp dl0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature; bh=1kym1BRXxzdGlj+DXxRYvEYT+hrPHFE3l3KOyzbkWAA=; b=VvThvTUl4RC4jIPHmIzTQmyaC504Zm27usuA+3jqVioGiIjaO8Sk76PUy4bJ1btP2z A8Yeu24j+HpD7d+VT3+k78Ga/jHNO+CCoQRCiiZiNeD9wTxqzSYZK7P9eeoII/rdmad6 YwooHg/ZtrSdx/Vvc19SwC9oeLKKrCStN47fxoONJ+shTuuk9l6C1Djg55BTVOlzWafv 2skZunrSkNY1Y8nvyYjhmm7O2bKHqHNrzJ9OBFzhP3lR9/lkqe/wXsSMit8mkSFYjmTw JlXWw5C9ATdGWcW/Xx/PNpTyrb22EkQ9kDJ5PsstJ50FdLNd29otjYKr7ENqi8D8tv+c XWkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=unYnUkYd; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n15si2894275eje.669.2020.08.13.00.20.02; Thu, 13 Aug 2020 00:20:25 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=unYnUkYd; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726745AbgHMHSg (ORCPT + 99 others); Thu, 13 Aug 2020 03:18:36 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:43895 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726734AbgHMHSg (ORCPT ); Thu, 13 Aug 2020 03:18:36 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1597303115; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=1kym1BRXxzdGlj+DXxRYvEYT+hrPHFE3l3KOyzbkWAA=; b=unYnUkYdn8/XJw53Regg/jACqkFOLLWXv9ADNpOHUgTOTFd74nHpVczMxqPmQhKUNY4IXLhJ cy0s//U09qedDETc+Lti3pAVwnfplZdt95j+Mr6Hb9j/aZrWbNsZUOk151BkUlU1nBiKAqtX 9IGNQV9JZeyWBbqnNRtoBa3Cjgw= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n07.prod.us-west-2.postgun.com with SMTP id 5f34e94bd96d28d61e894459 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 13 Aug 2020 07:18:35 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id D471FC43395; Thu, 13 Aug 2020 07:18:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,NICE_REPLY_A, SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [192.168.29.129] (unknown [49.36.77.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mkshah) by smtp.codeaurora.org (Postfix) with ESMTPSA id EF63EC433C6; Thu, 13 Aug 2020 07:18:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org EF63EC433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=mkshah@codeaurora.org Subject: Re: [PATCH v4 3/7] genirq: Introduce irq_suspend_one() and irq_resume_one() callbacks To: Doug Anderson Cc: Bjorn Andersson , Marc Zyngier , LinusW , Stephen Boyd , Evan Green , Matthias Kaehlcke , LKML , linux-arm-msm , "open list:GPIO SUBSYSTEM" , Andy Gross , Thomas Gleixner , Jason Cooper , Rajendra Nayak , Lina Iyer , Srinivas Rao L References: <1597058460-16211-1-git-send-email-mkshah@codeaurora.org> <1597058460-16211-4-git-send-email-mkshah@codeaurora.org> From: Maulik Shah Message-ID: <34688fc3-4787-ae49-a017-b24825180f53@codeaurora.org> Date: Thu, 13 Aug 2020 12:48:26 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Sure, i will take care these comments in v5. Thanks, Maulik On 8/12/2020 1:39 AM, Doug Anderson wrote: > Hi, > > On Mon, Aug 10, 2020 at 4:21 AM Maulik Shah wrote: >> From: Douglas Anderson >> >> The "struct irq_chip" has two callbacks in it: irq_suspend() and >> irq_resume(). These two callbacks are interesting because sometimes >> an irq chip needs to know about suspend/resume, but they are a bit >> awkward because: >> 1. They are called once for the whole irq_chip, not once per IRQ. >> It's passed data for one of the IRQs enabled on that chip. That >> means it's up to the irq_chip driver to aggregate. >> 2. They are only called if you're using "generic-chip", which not >> everyone is. >> 3. The implementation uses syscore ops, which apparently have problems >> with s2idle. >> >> Probably the old irq_suspend() and irq_resume() callbacks should be >> deprecated. >> >> Let's introcuce a nicer API that works for all irq_chip devices. This > You grabbed my patch (which is great, thanks!) but forgot to address > Stephen's early feedback from . > Specifically: > > s/introcuce/introduce > > >> --- a/include/linux/irq.h >> +++ b/include/linux/irq.h >> @@ -468,10 +468,16 @@ static inline irq_hw_number_t irqd_to_hwirq(struct irq_data *d) >> * @irq_bus_sync_unlock:function to sync and unlock slow bus (i2c) chips >> * @irq_cpu_online: configure an interrupt source for a secondary CPU >> * @irq_cpu_offline: un-configure an interrupt source for a secondary CPU >> + * @irq_suspend_one: called on an every irq to suspend it; called even if >> + * this IRQ is configured for wakeup > s/called on an/called on > >> + * @irq_resume_one: called on an every irq to resume it; called even if >> + * this IRQ is configured for wakeup > s/called on an/called on > > > -Doug -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation