Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1266569ybk; Thu, 14 May 2020 04:53:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxipPQtVMmnS8HzsbwW29oE7Tr6z1jQLlSsdpmg6ej+3rWr5A40bAUYoVCH7PbX756sRS6S X-Received: by 2002:a50:c314:: with SMTP id a20mr3313096edb.352.1589457184580; Thu, 14 May 2020 04:53:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589457184; cv=none; d=google.com; s=arc-20160816; b=VJNrVgv3uCFNnQ+W9OrhPGNWy8Kv8xbEQIxsXYs9Q7ZVSjVvQ/X7L0OQT3seYownnN 1GLLtksY3Qp3AWyQoKNBHQreNsGlzbt7zqlQ8rWdHCpj2l8N9FWP0xSrgZd+xeFJ3gTP 5htvt78oGlkNttMaOBp92Qeoqh904vWBscDz5rAMpXo2Ox0kGbXg46hmi2VEjUTJlpn3 JAQ02bqYWupxFOoaXgjpvJOOb8DJNl4PmWaRTVMM/JA83tzMOHgslU0UI7hMSmoi/CZT 19zmAwSdCDgfzealj7CMoJAm2VyC/zQHL3u0dPD+hBt3JO7davigmFyBtGEvsG6g+C+C 2CoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=cmu4YBAvToliFfVDxWezHK86Ml4PH9h8T7/JXeAmCJ4=; b=Yd7KacBrtjmwVCOS9VAfBImxBkHc3w9x+D9ulvOLTcMz4HV8lXICyJPuRQj4SBVnbX EmoN3ymTc/8vr8PPR0neTJeakCGKPZJOJleo2N19hW6OcCZPEbwg9pb2zpArFVisI8in n4dTdIg5khnltSaTFFJJ0nXpUGbysi+qbEXDHyM8R1VerCxsk1M0YFEu64BX47n0ca/z XUYUHwBNdWtPxvP9Jh9sRu7QKN25u1KKjKpc2kJn6RP/85I6Yq8fSHyp57kr2FdE1It7 IU7577l3B/AAM3N40wmln65zo0uCx3wHHk7LZ8eU6MLfskyRLd7swk8I2c4Mo8nOIWK9 jRnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nLRO8G6F; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s23si1388595edr.581.2020.05.14.04.52.41; Thu, 14 May 2020 04:53:04 -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=@linaro.org header.s=google header.b=nLRO8G6F; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726813AbgENLvG (ORCPT + 99 others); Thu, 14 May 2020 07:51:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726659AbgENLvF (ORCPT ); Thu, 14 May 2020 07:51:05 -0400 Received: from mail-oo1-xc43.google.com (mail-oo1-xc43.google.com [IPv6:2607:f8b0:4864:20::c43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C1A3C061A0F for ; Thu, 14 May 2020 04:51:05 -0700 (PDT) Received: by mail-oo1-xc43.google.com with SMTP id g22so643313oop.13 for ; Thu, 14 May 2020 04:51:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cmu4YBAvToliFfVDxWezHK86Ml4PH9h8T7/JXeAmCJ4=; b=nLRO8G6FIBf9L+JTs57c/5HLTs2IGDh6RfDLTrlqsfZ4Y5xnO3QIRXBsY8O3mbds5W aMzUhZ7DRuDa08RO1VMFv5matROJEvlY0AHZj6nB6XBeM9ddd7pRekdkOnKVsyGA1+zv QSE9mRl1UjVeLqFTlTGMylOpBSQddi4BhUpdF5nh5vv6+yVMpq9Nx1B3hppV5rGL8CGR 5smct6dgZDV1FUPAUmiuxCkCJZS2FlPb3zQuIJeu4iWRTrk27GyzNEWlBzMCJqRGIH/l KWBjujikL4fqPR0FIkQdi0uKIBAw6CdPIrdDhLzMs6oj1Q3npjB5Oa4jN1mQmFm7RT0O c+7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cmu4YBAvToliFfVDxWezHK86Ml4PH9h8T7/JXeAmCJ4=; b=J3pJzYyTDtGWrP9DqkevLX/ERcXhrh+CRBKI97PaMc19tDR1DHPhghktYpVyJYbeO3 LQ3T+cl+//acQC/Rn0JNK8xv6CFzBGe/VMyNQQOuJEPuXSy4t68OlF+SlWMsmu3HozN0 ZLFMzcnDdvmcHC8R0LlHmpoeNzi9KaIkRQe3j4b0dUuYfqe8Iafii9+SVgR+HKGS2NsZ fhMaGqNO/pHIaL3C6jwvk0W0SWUlY3xtwedS6X3mhQtZOC+/5u5odryJ6wbOXgGk5wSY X+XBwr5gcW9JwyDsptWie3LZO8hZd4DQ4X/hP/09UmEeeeuAJQLMKsBDXAhz/dxS5hym Lhbw== X-Gm-Message-State: AOAM532nUx/j8AXzh4fpzgfR21qNTkwEyEQkLEKM/mLG4VDEQFEwWDxu mOol04TMlekU4jfZwwaiwtpbbXuiRiRFtpTokZ8dCw== X-Received: by 2002:a4a:b4c1:: with SMTP id g1mr3275917ooo.58.1589457064720; Thu, 14 May 2020 04:51:04 -0700 (PDT) MIME-Version: 1.0 References: <20200508204200.13481-1-sumit.semwal@linaro.org> <20200508204200.13481-5-sumit.semwal@linaro.org> <20200511104922.GD8216@sirena.org.uk> In-Reply-To: <20200511104922.GD8216@sirena.org.uk> From: Sumit Semwal Date: Thu, 14 May 2020 17:20:53 +0530 Message-ID: Subject: Re: [v2 4/4] regulator: qcom: labibb: Add SC interrupt handling To: Mark Brown Cc: agross@kernel.org, Bjorn Andersson , lgirdwood@gmail.com, robh+dt@kernel.org, Nisha Kumari , linux-arm-msm@vger.kernel.org, LKML , devicetree@vger.kernel.org, kgunda@codeaurora.org, Rajendra Nayak Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Mark, Thanks for the review comments. On Mon, 11 May 2020 at 16:19, Mark Brown wrote: > > On Sat, May 09, 2020 at 02:12:00AM +0530, Sumit Semwal wrote: > > > +static irqreturn_t labibb_sc_err_handler(int irq, void *_reg) > > +{ > > + int ret, count; > > + u16 reg; > > + u8 sc_err_mask; > > + unsigned int val; > > + struct labibb_regulator *labibb_reg = (struct labibb_regulator *)_reg; > > + bool in_sc_err, reg_en, scp_done = false; > > + > > + if (irq == labibb_reg->sc_irq) > > + reg = labibb_reg->base + REG_LABIBB_STATUS1; > > + else > > + return IRQ_HANDLED; > > Why would we be registering the interrupt handler when it's not valid? Agreed, will correct. Best, Sumit.