Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3961617pxu; Sun, 20 Dec 2020 23:56:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxnDYTLDJV5Y8sISNPLphPcNxeHukbZLdc4lRzQavcSomH2+raZdVTrvd7oNY2zWQE2UOS/ X-Received: by 2002:a17:907:111c:: with SMTP id qu28mr14225350ejb.540.1608537411580; Sun, 20 Dec 2020 23:56:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608537411; cv=none; d=google.com; s=arc-20160816; b=q0+2KUXPqO1gD2XmQpyKgBY8Xz63nowPvyGJ6eYCfJbZFs8LvlZwIpLcyRWCmX/RWA oTkzcowX04jv4yHzduxH0kk43SFCl2pNCFh+7ATTU6kupRsuRGREDD9P9Z25z6kcHxBP lltfnH0bl1t9H1oswLg9wxxns+ngvclZluynBbTCUHGk3c0s4uWHutH2J0NzYQm9r7Zu B31lJ3wu2hL+ldmfXQvBd4wGdjklDZKPhGsQZot83/tWtfSItOavoiDerb5P6YriI984 H9bJfFzzzRYYrIXp8MqhLkNFvBBktyq8fY0QmnlsxigTkVqIdB3UqdvIpBANzfYAyPn7 wKWA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=zFKV6lfe71TNyNckFHFHiNOgrzwWUQYlOztZv9VxyVY=; b=tk0U3MbdjgcpyGuxviKVWVZ1Est/AmvqjBot7YVYFPEqUaH5g0fBIQEIPxF80wl9lN TD1CtuwF0Dci4z9yKuypPR8NlYbfybcbwVO/sI4Ujfg0rid+cq9BVacevVzCvgBFZHQb eV4crM/wHUss8wmvgq5/E3AT1cwPy2JBvMkMgnwg9s+e2a7XZyV0jgy+J5QmvgQ2dFdJ yfaG/i/YGlFmD7kmXoJkQicA/dkSlNxYuDNPqYDsVIPINo8UckBFM+IDRiuaWNwY9owx BLQ/MmkbdpJjJp5W5mtQPveDOKejgz78ObTC1vFHxso/yfIbXekAdXJO6KO2U5iuui0O gsjg== 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 v24si10305192edy.573.2020.12.20.23.56.29; Sun, 20 Dec 2020 23:56:51 -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 S1727206AbgLUHzp convert rfc822-to-8bit (ORCPT + 99 others); Mon, 21 Dec 2020 02:55:45 -0500 Received: from mail-wr1-f42.google.com ([209.85.221.42]:45412 "EHLO mail-wr1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726671AbgLUHzp (ORCPT ); Mon, 21 Dec 2020 02:55:45 -0500 Received: by mail-wr1-f42.google.com with SMTP id d26so10024252wrb.12; Sun, 20 Dec 2020 23:55:28 -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:content-transfer-encoding :in-reply-to; bh=znSQ7G6ShgfRAu0enyoUCiiiW1s/5uV//O9alA1Ox50=; b=qa+rxVd0ykTShEznZ/Jrw+/yMOR2DbwUg4TBcz5On8NPf4kTKaoSycv0g+9BehpTAj bBqCBtiufIlxHGk8j6dVJ0XynB5in0h9kZC44B0d64gUwZWUCg7AoaR6OqKpOa6aI8zI ac1FvAt2cyp092ZyefQWlOS6l7+7MrKuluirJvgba24pilf78hYMTd1ynJFKZyLhDlpw l3942leC3SfYo+jgTuAcAFZQyy/9lw0cZ4Q5CIfmjDmczTxIY4Xz0mTlI6vAP0L26c0p ALu0ARgplFWHuo+PzVjrmLJuxc5mJ0mQeVVMX4UH7RyOju6B2SW1WUnGQ8R9cI4nhEXu 1MYw== X-Gm-Message-State: AOAM531mRHsG/Qx/WupTfhwOiqsnVj1J69Jja/YO1H822Mlr7jL0mKlE kfHgkjnJX/kEy9hIr8Avl+o2ZV9fdwCFAw== X-Received: by 2002:a5d:570e:: with SMTP id a14mr17079864wrv.126.1608537303051; Sun, 20 Dec 2020 23:55:03 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id a12sm28599181wrh.71.2020.12.20.23.55.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Dec 2020 23:55:01 -0800 (PST) Date: Mon, 21 Dec 2020 08:55:00 +0100 From: Krzysztof Kozlowski To: Marek Szyprowski Cc: Rob Herring , Bartlomiej Zolnierkiewicz , Lee Jones , Chanwoo Choi , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Sylwester Nawrocki Subject: Re: [PATCH 9/9] mfd: sec-irq: Do not enforce (incorrect) interrupt trigger type Message-ID: <20201221075500.GA3386@kozik-lap> References: <20201210212903.216728-1-krzk@kernel.org> <20201210212903.216728-9-krzk@kernel.org> <0f1509ef-9ae7-7a77-84b7-360b8f0071c7@samsung.com> <20201218142247.GA2847@kozik-lap> <52a1b7c6-c7f1-f5eb-09f6-d84663912db8@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <52a1b7c6-c7f1-f5eb-09f6-d84663912db8@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 21, 2020 at 08:36:02AM +0100, Marek Szyprowski wrote: > Hi Krzysztof, > > On 18.12.2020 15:22, Krzysztof Kozlowski wrote: > > On Fri, Dec 18, 2020 at 02:25:39PM +0100, Marek Szyprowski wrote: > >> On 10.12.2020 22:29, 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 Samsung PMIC drivers are used only on Devicetree boards. > >>> > >>> Additionally, the PMIC datasheets describe the interrupt line as active > >>> low with a requirement of acknowledge from the CPU therefore the edge > >>> falling is not correct. > >>> > >>> Signed-off-by: Krzysztof Kozlowski > >> Tested-by: Marek Szyprowski > >> > >> It looks that this together with DTS change fixes RTC alarm failure that > >> I've observed from time to time on TM2e board! > > Great! I'll add this to the commit msg. > > > > Thanks for testing. > > BTW, while playing with this, maybe it would make sense to fix the > reported interrupt type for the PMIC sub-interrupts: > > # grep s2mps /proc/interrupts > 120:          0      gpa0   7 Level     s2mps13 > 121:          0   s2mps13  10 Edge      rtc-alarm0 I also spotted this. It's a virtual interrupt and I am not sure whether we can actually configure it when the hardware does not allow to set the type (the regmap_irq_type requires register offsets). Best regards, Krzysztof