Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9890198pxu; Tue, 29 Dec 2020 07:47:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJzh+so/LwjRxfqCqFacFmYj4hrM7vL++ZYoaF25DIYOCswOzMTu4DLM0/CVy821LI+9ZtHU X-Received: by 2002:a17:906:3fc4:: with SMTP id k4mr13659459ejj.137.1609256854794; Tue, 29 Dec 2020 07:47:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609256854; cv=none; d=google.com; s=arc-20160816; b=ae2NFb+BxAagPgt8nziwjr+9Slfqg2Oz662jeZM1jUVy3OHEWaRiMLLdv5bhVUjreq IRn9QmKOK7KYNSdOoNPfql+MQO/CShX1V6ohD8fwBG6qgaaU/XCJ98Udsb7UVD/SRC9D 80vIwA1L4tAQvfBahvw+Yfl24rfXM0Fc2eEsFn7zn06Hw11JiENtMaDVfq5ncSsntAKK iKo5MszXLeflRia04gM4TAJZ4Xj1BFYWQgmUriTUciESbHRg4/MvJxwe1tGwsWUyOk7n 9AIcFVSGVW9KyzbLrk9EFPXBD5d5gU+L8V4ToPTf+/pZXYKnbwxAAK5aEHsZPdf2JnGx 3ZtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=kHLH9BKjnkBNG0P79WleVTRBo+h2LPhEpaoEfJZBQX0=; b=BIhcvR4dUtILkJP7+GNCUaO298CiX3zvvXrPB0CbprU6keuc9DU38bFADxlS9sghtM tmMu9f2BhGVkL5fFTj2rgaVXXNqBbYKe/pYVNWK6VSzgKiyKho9VfDGpWIcJCcn+bBzr 8/rT0SjVE6l7eOzaSZqF28CDkXSKaHMZ4d8UdhzYnSmtCA9WVj3DpQf6bLqEPiOJbvHz 9LMx8TunEuDAtZf8BUL3vqCJLjMJhXG/IHHmZ5D/wHCLuG08itwRmT060WP3ZDkS3Vci T8QwHk9IMaJqD+0xWf0VGLNg2owRqGjkhG1QmaQctcGXKWwYxzdpgmRRGTfZtCOBofmq ij5A== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o4si19584064ejr.495.2020.12.29.07.47.12; Tue, 29 Dec 2020 07:47:34 -0800 (PST) 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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726650AbgL2Pn6 (ORCPT + 99 others); Tue, 29 Dec 2020 10:43:58 -0500 Received: from mail-wr1-f43.google.com ([209.85.221.43]:43805 "EHLO mail-wr1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726350AbgL2Pn5 (ORCPT ); Tue, 29 Dec 2020 10:43:57 -0500 Received: by mail-wr1-f43.google.com with SMTP id y17so14976762wrr.10; Tue, 29 Dec 2020 07:43:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=kHLH9BKjnkBNG0P79WleVTRBo+h2LPhEpaoEfJZBQX0=; b=fvvKJkx+bbu40JUu/eyHW7ntULVo1+iDzVlCe5TqxfLbfT3XXddKB7LQJE2Fxt5G+7 kLnLYovOjoP2iP91zo6kdQfRoikZvWaLxaeGlAwcggYSj2ua4Ofrmvv62yj8bkYZbNg3 sqrMdko1WpElQ+R4xc4VQlChJwpfMKBvWVuZAfwBSu7xcNVyGGPjcPS4a9aU/Kcm4g8C /Rex1LTggH6vrEPzh/QFD965Znom8vYEps2vAzivcKF/PvjWrEpITqB0j/Im1qn1AZCK OlNRpLUCWgfrFzVzSY3R+J0bXtBdEjO/jR6CMm0clwfn2CnTegrwJuig8It+rbYq9f1e QhSw== X-Gm-Message-State: AOAM533JRJaA6ingCQWMQvHIux0VdrKqqT5arJHa68t794pic8HYht3a Y93baLNxXC8Qe72/i8t0DKY= X-Received: by 2002:adf:a2ca:: with SMTP id t10mr29441011wra.370.1609256594329; Tue, 29 Dec 2020 07:43:14 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id u205sm4101750wme.42.2020.12.29.07.43.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Dec 2020 07:43:13 -0800 (PST) Date: Tue, 29 Dec 2020 16:43:11 +0100 From: Krzysztof Kozlowski To: Chanwoo Choi , Bartlomiej Zolnierkiewicz , Michael Turquette , Stephen Boyd , Rob Herring , Lee Jones , Sebastian Reichel , Liam Girdwood , Mark Brown , Andy Gross , Bjorn Andersson , Alessandro Zummo , Alexandre Belloni , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-rtc@vger.kernel.org Cc: Iskren Chernev , Matheus Castello , Sebastian Krzyszkowiak , Angus Ainslie , Hans de Goede Subject: Re: [PATCH 03/18] ARM: dts: exynos: correct fuel gauge interrupt trigger level on Midas family Message-ID: <20201229154311.GA13025@kozik-lap> References: <20201210212534.216197-1-krzk@kernel.org> <20201210212534.216197-3-krzk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201210212534.216197-3-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 10, 2020 at 10:25:19PM +0100, Krzysztof Kozlowski wrote: > The Maxim fuel gauge datasheets describe the interrupt line as active > low with a requirement of acknowledge from the CPU. The falling edge > interrupt will mostly work but it's not correct. > > Fixes: e8614292cd41 ("ARM: dts: Add Maxim 77693 fuel gauge node for exynos4412-trats2") > Signed-off-by: Krzysztof Kozlowski > --- > arch/arm/boot/dts/exynos4412-midas.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Hi Marek, I remember you were reporting that on Trats2 you see fuel gauge interrupt storm with this patchset. Is it correct? Shall I wait with applying this? Best regards, Krzysztof > diff --git a/arch/arm/boot/dts/exynos4412-midas.dtsi b/arch/arm/boot/dts/exynos4412-midas.dtsi > index 111c32bae02c..b8b75dc81aa1 100644 > --- a/arch/arm/boot/dts/exynos4412-midas.dtsi > +++ b/arch/arm/boot/dts/exynos4412-midas.dtsi > @@ -221,7 +221,7 @@ i2c_max77693_fuel: i2c-gpio-3 { > fuel-gauge@36 { > compatible = "maxim,max17047"; > interrupt-parent = <&gpx2>; > - interrupts = <3 IRQ_TYPE_EDGE_FALLING>; > + interrupts = <3 IRQ_TYPE_LEVEL_LOW>; > pinctrl-names = "default"; > pinctrl-0 = <&max77693_fuel_irq>; > reg = <0x36>; > -- > 2.25.1 >