Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935664AbcKNSku (ORCPT ); Mon, 14 Nov 2016 13:40:50 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:49242 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752781AbcKNSkr (ORCPT ); Mon, 14 Nov 2016 13:40:47 -0500 DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org 18A9F61359 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=sboyd@codeaurora.org Subject: Re: [PATCH v2 1/2] mfd: pm8xxx: add support to pm8821 To: Srinivas Kandagatla , Lee Jones References: <1479145933-9849-1-git-send-email-srinivas.kandagatla@linaro.org> Cc: bjorn.andersson@linaro.org, Rob Herring , Andy Gross , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org From: Stephen Boyd Message-ID: Date: Mon, 14 Nov 2016 10:40:45 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1479145933-9849-1-git-send-email-srinivas.kandagatla@linaro.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 769 Lines: 24 On 11/14/2016 09:52 AM, Srinivas Kandagatla wrote: > diff --git a/drivers/mfd/qcom-pm8xxx.c b/drivers/mfd/qcom-pm8xxx.c > index 7f9620e..dc347d3 100644 > --- a/drivers/mfd/qcom-pm8xxx.c > +++ b/drivers/mfd/qcom-pm8xxx.c > + > +static void pm8821_irq_handler(struct irq_desc *desc) > +{ > + struct pm_irq_chip *chip = irq_desc_get_handler_data(desc); > + struct irq_chip *irq_chip = irq_desc_get_chip(desc); > + unsigned int master; > + int ret; > + > + chained_irq_enter(irq_chip, desc); > + ret = regmap_read(chip->regmap, > + PM8821_SSBI_REG_ADDR_IRQ_MASTER0, &master); > + if (ret) { > + pr_err("Failed to re:Qad master 0 ret=%d\n", ret); Hm? vi? -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project