Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4375279pxu; Mon, 21 Dec 2020 10:48:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5sA+Nbp4QTr29GGG1T+ysyxVzC/5kVAXHNRef0F6dIWuXS6gv1ZB1QtfF91kqDoSpcrFW X-Received: by 2002:a17:906:17d0:: with SMTP id u16mr16336250eje.452.1608576524376; Mon, 21 Dec 2020 10:48:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608576524; cv=none; d=google.com; s=arc-20160816; b=sSmqEABFaHa1APiEzY0z2M1X+i1QrYKCQJU8Ujm/1J/WrlszNnKvpr+f3sGX0RoDx/ w/YixljRHm54vbIHnxNuAV98tQ3l+eK9M0b9Nr/pnqIrLRA8anprvhC2KPVpNiSkjkMJ 3Ipm9pT0CBcQRDBL1qAQM6zL/ZzpN7a3+BUAGY5c7Pco6VXNQ7FjImV4bg8LU8CXww/i ICKYtB/Nt5yUL9jXaKwSfRa/fRWX3e7CYzWL4gLBKN6eGRWcgQxaxDGkQPYnjxaiwLK7 Pz4tghdN9dZktNbmvgpt4q+JYJCUlRllgn2BlNN4fXOaC2E/EApKZjC5C8F1u3nwpVsZ AnJw== 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=9c4Z1cR0okEDOva6ZJZicR2jBIUZ+5XrWMqkg7M3kpw=; b=BoWS82tKhjULe4zX7KRpihX122yOSn3p8emUZzfHYVSsmLyfJFBFzoCjifMUu/PZlt kJJunZuO/Z6Eiaaqvn4tChSNplRJ/74BJD2XsfRamr5QdRVk63RFjgwre2sYnrFy1ro8 /6bQq+kzBRx3e+EUP65y5UBh/Romf/HA/5Zb7uZjTv/bRhOq/fuItJ017mAtdpGnpa4S EdFNElDa/E6nej/8BJEvtrTdvVPbicjNN8BUnDo9m1QkZGteUsaP6ephdQTJsNtP03L+ DTQ+latcz+elVMwaq/NPhERnH06SzPXwfVC5RvpibQZ/BNgYzHNtW/Lt6jYiZtzO4eDJ ZrrQ== 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 b21si9205862ejk.520.2020.12.21.10.48.21; Mon, 21 Dec 2020 10:48:44 -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 S1727689AbgLUSrw (ORCPT + 99 others); Mon, 21 Dec 2020 13:47:52 -0500 Received: from mail-oo1-f53.google.com ([209.85.161.53]:38575 "EHLO mail-oo1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727055AbgLUSrv (ORCPT ); Mon, 21 Dec 2020 13:47:51 -0500 Received: by mail-oo1-f53.google.com with SMTP id i18so2441935ooh.5; Mon, 21 Dec 2020 10:47:35 -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=9c4Z1cR0okEDOva6ZJZicR2jBIUZ+5XrWMqkg7M3kpw=; b=hz3KlOPy99wyUWikmU8eY5avjkr6YqZ/MHNscLb8qTxnR5ow5mZQfkEp1BQhK9yvDD QkvcBmjUMi1/Yd+yP+tGSDbHIGoAnTFW27ANdXx3mMbDS9ZYatSOFtQGKbnrsmvjW+K2 /dT870LPVAWhfhuDQEsiobUPs5+cuxn+1DViJZMhGjbBolk5+UJmlN2bkikgU22OTGhZ 4K9O8X7+l0yzF5d0s+mv1Xmy5d8gKGrooib30gPj42QqB2s3Vqb8ObvT9oPrLazGUg+x aZCAnyWBnwY7KWt/vbq6CexJOUSZeN0646BBLp5MDT+2HuZH9qiP+eqjr3MdTaMxJMLE rNcw== X-Gm-Message-State: AOAM5319kvPhdn1bD84KFShpOD53RplkYw4wKjIF+sSAW9e6/6kPqGCf fLMjmbf1FU3L+7hCdBfblQ== X-Received: by 2002:a4a:8353:: with SMTP id q19mr7538448oog.40.1608576430556; Mon, 21 Dec 2020 10:47:10 -0800 (PST) Received: from robh.at.kernel.org ([64.188.179.253]) by smtp.gmail.com with ESMTPSA id t72sm3697688oie.47.2020.12.21.10.47.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Dec 2020 10:47:09 -0800 (PST) Received: (nullmailer pid 344465 invoked by uid 1000); Mon, 21 Dec 2020 18:47:07 -0000 Date: Mon, 21 Dec 2020 11:47:07 -0700 From: Rob Herring To: Krzysztof Kozlowski Cc: Bartlomiej Zolnierkiewicz , devicetree@vger.kernel.org, linux-rtc@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Rob Herring , linux-clk@vger.kernel.org, Alexandre Belloni , Chanwoo Choi , Alessandro Zummo , linux-kernel@vger.kernel.org, Sebastian Reichel , Matheus Castello , Stephen Boyd , Sebastian Krzyszkowiak , Iskren Chernev , Andy Gross , linux-arm-msm@vger.kernel.org, Hans de Goede , Mark Brown , Lee Jones , Angus Ainslie , Michael Turquette , Bjorn Andersson , linux-pm@vger.kernel.org, Liam Girdwood , linux-arm-kernel@lists.infradead.org Subject: Re: [RFC 17/18] mfd: max14577: Do not enforce (incorrect) interrupt trigger type Message-ID: <20201221184707.GA344409@robh.at.kernel.org> References: <20201210212534.216197-1-krzk@kernel.org> <20201210212534.216197-17-krzk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201210212534.216197-17-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Dec 2020 22:25:33 +0100, Krzysztof Kozlowski wrote: > Interrupt line can be configured on different hardware in different way, > even inverted. Therefore driver should not enforce specific trigger > type - edge falling - but instead rely on Devicetree to configure it. > > The Maxim 14577/77836 datasheets describe the interrupt line as active > low with a requirement of acknowledge from the CPU therefore the edge > falling is not correct. > > The interrupt line is shared between PMIC and charger driver, so using > level sensitive interrupt is here especially important to avoid races. > With an edge configuration in case if first PMIC signals interrupt > followed shortly after by the RTC, the interrupt might not be yet > cleared/acked thus the second one would not be noticed. > > Signed-off-by: Krzysztof Kozlowski > > --- > > This patch should wait till DTS changes are merged, as it relies on > proper Devicetree. > --- > Documentation/devicetree/bindings/mfd/max14577.txt | 4 ++-- > drivers/mfd/max14577.c | 6 +++--- > 2 files changed, 5 insertions(+), 5 deletions(-) > Acked-by: Rob Herring