Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp781494pxu; Fri, 11 Dec 2020 14:18:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyq/2sw4XGFtZWWx7q1HTrKyZ3FIU/iviP8FPCKYpYkadNg3CBZaeQvJIF4e//0eSNgBawc X-Received: by 2002:a17:906:52d9:: with SMTP id w25mr12539863ejn.504.1607725115113; Fri, 11 Dec 2020 14:18:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607725115; cv=none; d=google.com; s=arc-20160816; b=0zRPwCoK1rTpHEYvUq/y+fUJ0/ldjQvWPks546LEU8cmiA64bwwszL+Gh1nBOSTqee OdtZKNIWo9/ZFeV6ejwzyeRnWXsFt98nkpVARYljB7O03SHuta89U4kWmtJtsEeTefCM gcOuZNitumMazaQAT5xogs95DDbx7fWsBrmmudvjSamkojJqKvwL79Mb8j8V6bYPT2dm rSEG+fMQ4gHYhogiSM3ezg4lUjKloX5yLjUveAZkxyH7+f3kKXu0sqRhyJflOEG8HANP J6ug5gYMMPtjoLQhu4vzuR2INoo6sEP+dG/lzm6R779fRGpQFc/Q2SvVPVLMxAHrGp6c v0XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ESFmD4dD3MfosKxJTg1jclVR5TZA9Avrd+hYD+y98t4=; b=AX4zOe5NiUJv3TAGZ9PR6xdEz+dbxsJcqElFc72Ji1Q/TR6KgPGUNtLIvybddHPac/ oyTOnI8CEMgAw3Xhinn17OXm4K4uvVV9lx9UaDd77dAob1mUxo7ewUcyLB7QZHWpB9CA wfQXjgiCBlSQrefpZCqPW/atvXfVvWMZ8ZSCmDpPTdnwKCMsZmIFmeXohOVqHIFz/xX6 V2/96mV2z4slUTbmCboZh6g1H9sEGHUGARW2JNZj/P9WC3DHJSpqkpTeG8WpO4o7CRm0 Rl1e344lKIfb3cm+Ig5gBjSQdZM/Al+R4pCQBEJ/nNfh3w+ADQ+tJEAT+lDKiz6O99jK jvSw== 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 mj22si6126364ejb.215.2020.12.11.14.17.26; Fri, 11 Dec 2020 14:18:35 -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 S2405094AbgLJVmq (ORCPT + 99 others); Thu, 10 Dec 2020 16:42:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:38460 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404885AbgLJV1T (ORCPT ); Thu, 10 Dec 2020 16:27:19 -0500 From: Krzysztof Kozlowski Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: Chanwoo Choi , Krzysztof Kozlowski , 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: [PATCH 09/18] ARM: dts: exynos: correct PMIC interrupt trigger level on Snow Date: Thu, 10 Dec 2020 22:25:25 +0100 Message-Id: <20201210212534.216197-9-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201210212534.216197-1-krzk@kernel.org> References: <20201210212534.216197-1-krzk@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Maxim PMIC datasheets describe the interrupt line as active low with a requirement of acknowledge from the CPU. Without specifying the interrupt type in Devicetree, kernel might apply some fixed configuration, not necessarily working for this hardware. Additionally, the interrupt line is shared so using level sensitive interrupt is here especially important to avoid races. Fixes: c61248afa819 ("ARM: dts: Add max77686 RTC interrupt to cros5250-common") Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5250-snow-common.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/exynos5250-snow-common.dtsi b/arch/arm/boot/dts/exynos5250-snow-common.dtsi index 6635f6184051..2335c4687349 100644 --- a/arch/arm/boot/dts/exynos5250-snow-common.dtsi +++ b/arch/arm/boot/dts/exynos5250-snow-common.dtsi @@ -292,7 +292,7 @@ &i2c_0 { max77686: pmic@9 { compatible = "maxim,max77686"; interrupt-parent = <&gpx3>; - interrupts = <2 IRQ_TYPE_NONE>; + interrupts = <2 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default"; pinctrl-0 = <&max77686_irq>; wakeup-source; -- 2.25.1