Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp316138imu; Mon, 26 Nov 2018 11:17:17 -0800 (PST) X-Google-Smtp-Source: AFSGD/Ucof7olYGR9TSBNnRURTlTlWH7K93PtJh/8C65t1pLZHdu1tW6LYejpNMsWpiL85ur5AFA X-Received: by 2002:a62:1e87:: with SMTP id e129mr16521651pfe.221.1543259837002; Mon, 26 Nov 2018 11:17:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543259836; cv=none; d=google.com; s=arc-20160816; b=BJakiwGwZEJS9Lt3UmN+CXhF+cpy6Mv9beTzYFmqSk5Xb8Sh1lnxigsCPJYb4Zx57h FBLYzVpqdRPgQX6jCFyHSaDD5R5ImNsZpR2jCc9YwA/fsaUvC9cJ5FwsPXrG2szQk46x T+qS0OJXSvpNt0zVhShnuC2LPNm7XTALJMJw3n9F6rt3MzA7vbYC0yuOBJT//CFV+Oz9 +gotKEgoQ5Twsnl+H4C4Lp3B0cvgycFJGrxyZARHsRjnvhwExbL/mMKB668U1lfGIsd5 toEKGWs/Z2cvq5UEPaMGC5TnPtNYJhISfZcL8DXhpNSe77guNIXFj/io8AN1QG5bN+tT RDvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ko74qane8XdsPTmSaadaCDjbnRitiZE2fKOYGWkqFaA=; b=bPS/vVhRgIwy2Shp5ZqE0JRG2zCcESfYVEA3T7uRPLrFSuNHGRGFjagy7+0AwKhuqI UTo4z5ES5tohrJAwM6KFm9QqidM4p7U1oURoN8KFEsU4Bwq02EhFPZGrmCdE/Li02jqa Ye0vbv3KypSQQ+G8o9MNDEAJnAqw+hiTxIfp5rhed8Qkzek17C9ceI9Oii6m/k6zcW96 mWOlIbgz0fkJKa8cUvvNwl1sqEu6GzhOI/MxMu1qzjvH9rXZGStb9+cZqs1MbjidXm12 EJpXkR3pfLHlMMhwBG6M23xf9dfpcf/ZiCmSQTwRTT14hUqEE18L7oFaE+thdjqQ3qJN USng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h1-v6si1108941pld.332.2018.11.26.11.16.43; Mon, 26 Nov 2018 11:17:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726985AbeK0GJN (ORCPT + 99 others); Tue, 27 Nov 2018 01:09:13 -0500 Received: from muru.com ([72.249.23.125]:55234 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726918AbeK0GJM (ORCPT ); Tue, 27 Nov 2018 01:09:12 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id E0C548068; Mon, 26 Nov 2018 19:14:09 +0000 (UTC) Date: Mon, 26 Nov 2018 11:14:05 -0800 From: Tony Lindgren To: Thierry Reding Cc: Peter Ujfalusi , Belisko Marek , LKML , linux-omap@vger.kernel.org, "Dr. H. Nikolaus Schaller" , Laxman Dewangan , Jon Hunter , Santosh Shilimkar Subject: Re: omap5 fixing palmas IRQ_TYPE_NONE warning leads to gpadc timeouts Message-ID: <20181126191405.GM53235@atomide.com> References: <20180703084516.GT112168@atomide.com> <20181113180656.GE53235@atomide.com> <46d271b2-35d3-6353-c530-3292cdac53ab@ti.com> <20181119161906.GP53235@atomide.com> <20181119171406.GQ53235@atomide.com> <20181126101434.GB10878@ulmo> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181126101434.GB10878@ulmo> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Thierry Reding [181126 10:14]: > On Mon, Nov 19, 2018 at 09:14:06AM -0800, Tony Lindgren wrote: > > Well so commit 7e9d474954f4 ("ARM: tegra: Correct polarity for > > Tegra114 PMIC interrupt") states that tegra114 inverts the > > polarity of the PMIC interrupt. So adding Jon and Thierry to Cc. > > > > So it seems that commit df545d1cd01a ("mfd: palmas: Provide > > irq flags through DT/platform data") wrongly sets the > > PALMAS_POLARITY_CTRL_INT_POLARITY on IRQ_TYPE_LEVEL_HIGH > > while it should set it on IRQ_TYPE_LEVEL_LOW. > > Oops, sorry, you seem to have come to pretty much the same conclusion as > I did. I think what we need to do is find a copy of the TRM and see what > exactly the right behaviour is. Or we need to find someone that can take > measurements of the PMIC interrupt pin. Yeah so either tegra inverts the PMIC interrupt twice now, or we have also omap5 wkupgen also inverting the PMIC interrupt once.. Santosh, do you remember if omap5 wkupgen might be inverting the palmas interrupt? Regards, Tony