Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4374410pxu; Mon, 21 Dec 2020 10:47:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDrNPZTLqKPH4+BJjShY04dJO2+wcn58NwI3w5O96vUMlUJL1X5SCsHLst9jRibNfs+3K2 X-Received: by 2002:a17:906:6b88:: with SMTP id l8mr16594689ejr.482.1608576438554; Mon, 21 Dec 2020 10:47:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608576438; cv=none; d=google.com; s=arc-20160816; b=Dg4uC7lHmqZwHfoNpaGPdAGXNIjn33HlKmggBIMzpKcFVXGBMc7KqQ3NTTkfUZmUAV qU3k1W8/+//EFxzM1QMtohtqIYojskBTX/d6G6adxAyqL/loXFZ9aG57ciXvYKMDuOz3 8UQvmKsmPCw/qt/doCFSRiS6tiLJrVtQhlSRdGYlgwc0Pzlht+kkAH3BopQHr4qjcfSM /OUETWtb7MWikxed2lFDZA1h3IC9a+IdbIPALoW/coq/Y08Eui9XElJyqW/7pW+mmlxV mkwXrZkPUYKc+Dlgt4PiDWHbdnthlAO4gdt+oPslXygIy+Awfm6Z3EwPWliyiiJprnSh UdtQ== 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=C9YKK11A4vCGj5j/fzBjsXO3fgizirMdIUh+8Fg05fI=; b=ndcIsW0YC7k2yE4v5YbW90bdIEgN2QPYYgVYoNWV8dzMoDRjbR7cnueYcUU1riTYal HWru+oxzq0+7gXmJqNThGzqutiO+kI4Q2+qMsc0903gQ3X675EFKXOFAFNbqHJsZOP8H SORChHcqAQAWumoL7KTXnLp7vgYsPlaKCiVthkrREkatMbVPm1H5xM0oxr1qFD1etDc+ SXVWlLPa4E2Ujv66BONj+YQ244r7loocGLDRB2PZ2r6cTnAFP14R9UbfxqsyDhV5lAn0 MWMCun2RYQvTLRx6luBKyXx0r768LNHo1d2Y7a4sPG8lbm9mepaaP00lv/Xg3DQVIMQh Khww== 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 i1si10757880eds.174.2020.12.21.10.46.56; Mon, 21 Dec 2020 10:47:18 -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 S1727432AbgLUSq1 (ORCPT + 99 others); Mon, 21 Dec 2020 13:46:27 -0500 Received: from mail-oi1-f181.google.com ([209.85.167.181]:34844 "EHLO mail-oi1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726445AbgLUSq0 (ORCPT ); Mon, 21 Dec 2020 13:46:26 -0500 Received: by mail-oi1-f181.google.com with SMTP id s2so12277914oij.2; Mon, 21 Dec 2020 10:46:10 -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=C9YKK11A4vCGj5j/fzBjsXO3fgizirMdIUh+8Fg05fI=; b=clOMcac/mpAzXCPLZrjNtRmjc0yV/KtdfkIwUq0GEYQdt/A+dgKwN34diFx858EjIg 5IZOrzlYJGjnpfSohVcrw3Ra3OnyAcr/S9PaPAcxqt4w4RkddjNM92jAdFInBGRiqifT 0kKiBNB5YaNyFovt1QEiopNNtNnSPqFzrdZPMdNFdTnpoMc/8L7KsKgtbkLodKDLzoUr jGNRMgyhCHYkBQMznCru2EaJMl7BPS9ToMKLW0fWRTTSbJ17/7JRHI4cfwS2/K8vrDjs 951IebVDfMjymLGdV7CUS8KuoOMtFZmbp3fFy9mVUobRvAgMWg95SVnQkspZu9EbNr5b o71Q== X-Gm-Message-State: AOAM533akQcgwOuHO5YBkuj4sL5ZIxuCzj7Uw+0I2KvnOlRrcZGLBxMz ehzyJp/dOsdx74ec2UPPfQ== X-Received: by 2002:aca:ea42:: with SMTP id i63mr7148216oih.163.1608576345226; Mon, 21 Dec 2020 10:45:45 -0800 (PST) Received: from robh.at.kernel.org ([64.188.179.253]) by smtp.gmail.com with ESMTPSA id x31sm3946058otb.4.2020.12.21.10.45.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Dec 2020 10:45:44 -0800 (PST) Received: (nullmailer pid 342072 invoked by uid 1000); Mon, 21 Dec 2020 18:45:42 -0000 Date: Mon, 21 Dec 2020 11:45:42 -0700 From: Rob Herring To: Krzysztof Kozlowski Cc: Andy Gross , Michael Turquette , linux-kernel@vger.kernel.org, Angus Ainslie , Chanwoo Choi , Bjorn Andersson , Rob Herring , Matheus Castello , linux-arm-kernel@lists.infradead.org, Mark Brown , Iskren Chernev , Hans de Goede , Alessandro Zummo , linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, Bartlomiej Zolnierkiewicz , linux-rtc@vger.kernel.org, Alexandre Belloni , Lee Jones , Sebastian Reichel , devicetree@vger.kernel.org, Liam Girdwood , linux-samsung-soc@vger.kernel.org, Sebastian Krzyszkowiak , Stephen Boyd Subject: Re: [RFC 13/18] mfd: max77686: Do not enforce (incorrect) interrupt trigger type Message-ID: <20201221184542.GA342038@robh.at.kernel.org> References: <20201210212534.216197-1-krzk@kernel.org> <20201210212534.216197-13-krzk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201210212534.216197-13-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Dec 2020 22:25:29 +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 77686 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/clock/maxim,max77686.txt | 4 ++-- > Documentation/devicetree/bindings/mfd/max77686.txt | 2 +- > Documentation/devicetree/bindings/regulator/max77686.txt | 2 +- > drivers/mfd/max77686.c | 3 +-- > 4 files changed, 5 insertions(+), 6 deletions(-) > Acked-by: Rob Herring