Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4374915pxu; Mon, 21 Dec 2020 10:48:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZdD5wkhc/NynOUJbRddR1D6tA4RXbkruj84nOrEZTiBa63cINDnlqTpHBdjNM16xJ5NNl X-Received: by 2002:a05:6402:41:: with SMTP id f1mr6129922edu.286.1608576485823; Mon, 21 Dec 2020 10:48:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608576485; cv=none; d=google.com; s=arc-20160816; b=XU3bhjuuAI8YJ7xJypqRetGivHUg6eLDqJJhDUlWeOhduyn4HmJDfXpxJM6y/q6O7H 95cBzGkMj5Dc6NJwo+wxAl1EwpDrCJHMhz+w6lBoIj5wQg+l2uN4XereHJt9Yp2bV5fn krKpNFkXUIDTHOQSEThLZXYB6+Svszq+wuL7aBOnC/+c2tzNwN/XqBrN1RGGcxQCNLTB o6j7xC/tqnLNRaEwAZDjQdhyr9ASZKaSox8QDahwNkWXP/Osupnw8lsM6IC3JcqF4j7z AH4+JaWCXIh+IlMIJnn1wuWDX5P/WgTx+KGW/Kc8pt15HFWzz/N9xJVcH/wJg3Jl4ecZ t+jw== 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=LaO8M0BQW8Ol84jvAC5SvqGxfW76On/n2SEzgRenXkA=; b=HmvD0X89QpHfxDe9E/4GlPE3FByFm/wTR7E1JmADZYIJmGSz7sFhOQxbYO/SNOrMVs FdKt8aQxU+HnkyYjpxx7wOSJV0CQok2g3na8wVcf3ZbCPxhMpHzqWT+vrVEKOHcTRxBz I0GA7kKDhNnuAYODkn7fRp9NdBBru24E/TnFj8PDZDUmZhFPf6TyKNMHsnf0Xnvwv32T R3DZ8HSyMdEc/ti4ls694yP3WflrvJER3gJ++x9bn8Rlt0zB6rI1DRZd8yJKN7c9wuCK 2n8SC6R2UmvXD9QguSLOlqlbjUbbZhPQap7r+3ztCI1tPbX4KSoL930j9+OzEc5P1vUj FsVA== 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 a89si6173688edf.215.2020.12.21.10.47.42; Mon, 21 Dec 2020 10:48:05 -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 S1727531AbgLUSq6 (ORCPT + 99 others); Mon, 21 Dec 2020 13:46:58 -0500 Received: from mail-ot1-f47.google.com ([209.85.210.47]:34173 "EHLO mail-ot1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727313AbgLUSq4 (ORCPT ); Mon, 21 Dec 2020 13:46:56 -0500 Received: by mail-ot1-f47.google.com with SMTP id a109so9724965otc.1; Mon, 21 Dec 2020 10:46:41 -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=LaO8M0BQW8Ol84jvAC5SvqGxfW76On/n2SEzgRenXkA=; b=NtHBaz36gQTgjB5ckv7p2b0m+kTLuAayi9IDWSdalAV6t5ov13IFivIxOwzFgsKD6G 6Drc/rrETG+bBxuVxK7XYZSOOXFyJOJvA5N0O/QJpgN4AU8eFo4kwLghQxok2JIi+c6A 8CcrWvFsLpi7SnopnH5KYfRLsonZ0H/wNDDQCjVetHNy1LtA5Yz4RQBPnq3HZ1GIqt4G cAap2SHFsuf0QZFjq0tF08X3dddriKy8bHjuF5FSp6eCeeVNejJdy8m7ib4Ao25NJ8zk qn1sNGe2+CcenTYprJ5qgcImmWTfc2WQJ/OY8ARj1YGkSn5CvAQNWwryGsxLUr9GIEhP pDLg== X-Gm-Message-State: AOAM530k3BgEwh2Va1knl5jstKUTx86Xuk9DEopUWUTOqx+lDelkTitG C6YfPhwvj4aFrxlb7Yb2Dw== X-Received: by 2002:a9d:7411:: with SMTP id n17mr12863728otk.262.1608576375645; Mon, 21 Dec 2020 10:46:15 -0800 (PST) Received: from robh.at.kernel.org ([64.188.179.253]) by smtp.gmail.com with ESMTPSA id z9sm3954201ote.13.2020.12.21.10.46.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Dec 2020 10:46:14 -0800 (PST) Received: (nullmailer pid 342965 invoked by uid 1000); Mon, 21 Dec 2020 18:46:12 -0000 Date: Mon, 21 Dec 2020 11:46:12 -0700 From: Rob Herring To: Krzysztof Kozlowski Cc: Liam Girdwood , Bjorn Andersson , Chanwoo Choi , linux-arm-msm@vger.kernel.org, Andy Gross , Angus Ainslie , Stephen Boyd , devicetree@vger.kernel.org, Hans de Goede , linux-kernel@vger.kernel.org, Mark Brown , linux-rtc@vger.kernel.org, Iskren Chernev , Lee Jones , Rob Herring , Sebastian Reichel , Matheus Castello , linux-clk@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Michael Turquette , Bartlomiej Zolnierkiewicz , linux-pm@vger.kernel.org, Alexandre Belloni , Sebastian Krzyszkowiak , linux-arm-kernel@lists.infradead.org, Alessandro Zummo Subject: Re: [RFC 15/18] mfd: max77693: Do not enforce (incorrect) interrupt trigger type Message-ID: <20201221184612.GA342913@robh.at.kernel.org> References: <20201210212534.216197-1-krzk@kernel.org> <20201210212534.216197-15-krzk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201210212534.216197-15-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Dec 2020 22:25:31 +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 77693 datasheet describes 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 RTC 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/max77693.txt | 2 +- > drivers/mfd/max77693.c | 12 ++++-------- > 2 files changed, 5 insertions(+), 9 deletions(-) > Acked-by: Rob Herring