Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp896368imm; Tue, 3 Jul 2018 01:46:28 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdwoSHAMht4kVmW5ervHWFdnqwQx09Kio0FvUeSD/3H0c/Fzq8SfVFqZci9nDG/PlLVFNN/ X-Received: by 2002:a63:5421:: with SMTP id i33-v6mr9411868pgb.417.1530607588066; Tue, 03 Jul 2018 01:46:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530607588; cv=none; d=google.com; s=arc-20160816; b=CbFwaZ1CqmSce6z91swk2ES2wK+3uQ1QUv9na6ReSbW9hQcZOixyF2iupc7kg1fDwA w/YXmYm05M4viGyz8Hgw1Rwfb9rY9IdqN6aT4hHMVwh+u8KBJwRKkw9L8P8KSMXTGMPI 48+TcFFnPeSFskTPODpngAczAOyaI3lcRtSPyB8ip0F1neuIx8mSgDeojWRiyJJ2S9v3 i3D5nHGGp9ldtLOnd4wclracQ6zUe73PhLenBVcxAjt7nlDWkv+56/smq0YisNkY93wQ Q4mZdPWkk4rD/J0F/t6IhAhSY8RZMyhuHTP50JO796JCD3J+ekhlMLFw/CkM9jl4V4Nw dI8w== 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:arc-authentication-results; bh=p+QtJRFChpkY8hBbD13zLj1qtTOsrj7lLO5bPoJzNfo=; b=XsVg+06fFlpD77zgDlP7bQaZJfvwdFtIZKx+gvHRSDQ9O19Lx2RF7AHU/iMmmsQvRX p8elW8HSD4bSmh+8xXlUQrIVJz3bJ89I3mAkBfV2IppV5eT3hdavJ6x5C7Y1TOSIBdDB LPBX5tRwIukR64goSiXbeGPYOlIsuBPayrG3V6zmk2xHHqFbI4lFi91gIb6ndwXkSuSH Ptf0JBiEFctHyVs5SoBHzl/P0IGPS0dL8CqAO4P7os25Ys4P/8pjRNxVRyHxFNEwRrmU Z9dPHy3+L7ShxwlCnMZOEy9nc+9iGABbx2IAA8O6U8mI1/OUgTQGN9gaC1vxpQqQPxTi JE9g== 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 u1-v6si581139pgo.114.2018.07.03.01.46.13; Tue, 03 Jul 2018 01:46:28 -0700 (PDT) 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 S932702AbeGCIpW (ORCPT + 99 others); Tue, 3 Jul 2018 04:45:22 -0400 Received: from muru.com ([72.249.23.125]:49960 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754682AbeGCIpU (ORCPT ); Tue, 3 Jul 2018 04:45:20 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id CD89D8047; Tue, 3 Jul 2018 08:48:15 +0000 (UTC) Date: Tue, 3 Jul 2018 01:45:16 -0700 From: Tony Lindgren To: Belisko Marek Cc: LKML , linux-omap@vger.kernel.org, "Dr. H. Nikolaus Schaller" Subject: Re: omap5 fixing palmas IRQ_TYPE_NONE warning leads to gpadc timeouts Message-ID: <20180703084516.GT112168@atomide.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Belisko Marek [180620 09:40]: > Hello, > > I'm trying to fix warning (for omap5 board) produced by recent change > to avoid using IRQ_TYPE_NONE like: > [ 1.818666] WARNING: CPU: 1 PID: 778 at > drivers/irqchip/irq-gic.c:1016 gic_irq_domain_translate+0x78/0x100 > [ 1.828839] Modules linked in: > > I did look to other commit which did update and without deep knowledge > I just simply do this small change: > diff --git a/arch/arm/boot/dts/omap5-board-common.dtsi > b/arch/arm/boot/dts/omap5-board-common.dtsi > index 218892b..ab2df8c 100644 > --- a/arch/arm/boot/dts/omap5-board-common.dtsi > +++ b/arch/arm/boot/dts/omap5-board-common.dtsi > @@ -393,7 +393,7 @@ > > palmas: palmas@48 { > compatible = "ti,palmas"; > - interrupts = ; /* IRQ_SYS_1N */ > + interrupts = ; /* IRQ_SYS_1N */ > reg = <0x48>; > interrupt-controller; > #interrupt-cells = <2>; > > and it looks board boots fine. Only issue is that gpadc driver is not > working (at least not getting interrupts at all ADC fails with > timeout). I did look to gpadc driver and driver is not using > interrupts defined in dts but request interrupt directly from palmas > mfd module. Any ideas what needs to be changed to have gpadc again > working with mentioned patch? Can you try with IRQF_TRIGGER_HIGH added also to the flags to regmap_add_irq_chip() in drivers/mfd/palmas.c? Regards, Tony