Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp983118imm; Wed, 20 Jun 2018 09:38:23 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIAm/73iOm5E8/KC1Rg1lGED8LFhkxxJYZ+ez4gnVgqMc1sw7uj5pynVLnyXjiW9eAn5K+Q X-Received: by 2002:a62:6710:: with SMTP id b16-v6mr23850321pfc.37.1529512703177; Wed, 20 Jun 2018 09:38:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529512703; cv=none; d=google.com; s=arc-20160816; b=io8MO3zKhQk1yniBZ7jcV7BHDtGjUtVFd66DA69qq8CXk83Wu1KWaLm/RYkkVQTcn9 2f6ULycCodI8BF90OjJvnRTweRrn6nY0hOpSy15Qw2oBkMfi2d4k+Kxhlmsa0en4rN+/ ZYQJqPsqpTFcNPd4F4u+f2Q2NR8yYlxtZfBZsdWQYV2FSk4TrotvanjypwdMTn131exr CUneUNP7z/AH4h25H7CyrpZi3U3ErQ8J0c0L1fElhDDw9Md6GKw8UdDDcgu43w8kEs+r CSkMpty6YRL4MSOtVyHMurMqUj0KqvBBU7mD99ezkYdRTDXfPHPzygHLLpDBwlWHdTrX kZBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature:arc-authentication-results; bh=heUlefXVeVr7ZSpoHl63kOfpk0kzmwVF3vQ9Cuq9Wdw=; b=et9VZl2BiyB6Tcn/4b5U+/vmbokkL13HYqM3U6J3mLAW0JhOm2wM1LM7hNeQOJaR+E F8GvHPr2ArACbM/mPOvI4Co5BYfqTvz3eWkMBjwryFInydWFZZHR+ZPmYS5VfCA6MKQW cppX4Ws5tM9bapafu1zznopaLObKV9HrsZo4x3sfleAS6E7atcE3LjwAEjb8obY7hKSh OK86dVFbfd/nNbnKcH/A3KEp4azsINvmXd9AK3+yObiJSdo08PajaOMZ6tvt+8FDIfGe T3gTPvaI/6H61IR+QB4G236MIzR3id/VBRJU8i4NYueS1HoLImhlUXdTkWXyrdT7CHgc qTiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ltWH/oIL"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a39-v6si2846430pla.510.2018.06.20.09.38.09; Wed, 20 Jun 2018 09:38:23 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ltWH/oIL"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754356AbeFTQhV (ORCPT + 99 others); Wed, 20 Jun 2018 12:37:21 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:37783 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754144AbeFTQhT (ORCPT ); Wed, 20 Jun 2018 12:37:19 -0400 Received: by mail-wr0-f195.google.com with SMTP id k6-v6so188025wrp.4; Wed, 20 Jun 2018 09:37:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=heUlefXVeVr7ZSpoHl63kOfpk0kzmwVF3vQ9Cuq9Wdw=; b=ltWH/oILqD0OP4lcIyPu+qCFXUUVJkj/HwrR4V/x8vyPLaHQk3T93jEuu1qNrHo9zq SNC3m91D2KYG7AR4JjwCjONVaGxUVR+TyD8clDv8MadeKuuksA4BDPyTm90sZ0x2smof yNJIDN/oQLd/NmdnLKZxlR6M+uq3tk1h6Z0sqYhjqlLW5dAyCkX2JGBrFK+crJbvnTCE PwcERJ58KXgwT5XPxpHaZbo3UJmp47AIgNCb+MKzUhtjSnhjc5Ogn0Mtlt2vUI7oxDyy iy1mGpcn8ca9w06PN8mAQkLzYFjDgeRWAod3rLc6MDG/QWwRZ52qcxr5vhBJWxXVnSnr Zo5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=heUlefXVeVr7ZSpoHl63kOfpk0kzmwVF3vQ9Cuq9Wdw=; b=V9Ac9AWGKZNJ5JOGoqvlfPdX91OZHjP/FWwIi6NRRJ2R6YL7yHE8HP5WZhwatW+iJP TQ2lGpDh1k/UsBJUeJKUSF6q37yxafWn0yWIWGqKnLleN8JaVAM23FcMEWkS1MWXDNTh wlP8iaFt3m1NMUis+tmyMfCQo3zFqIiR1WoYp/cjc+W2b3YWqYHZTU8A1F4AvpdgEp2e Va+hPz9wVs84bGFbmJcxCQVrW67DbP0bfkSCpJmo1G071F+RfwLxzOmd203Xzl9hkWsD SAl9wvKmbrG035xwL3vnpLwPcV2HRjFAtlL5Qo3oPWfGQZphFHxQ1XOMfOXZ3hMZdoVp in+Q== X-Gm-Message-State: APt69E2d8CDNRU4rkO67ZW12k4/VBB8YoRC6LI3YPAuL3xGxCicbjFgw KDHeN9ZRCcySk4kUGHcLIFth6uz8bis9P1u/X6G/ow== X-Received: by 2002:adf:9525:: with SMTP id 34-v6mr17422968wrs.99.1529512637825; Wed, 20 Jun 2018 09:37:17 -0700 (PDT) MIME-Version: 1.0 From: Belisko Marek Date: Wed, 20 Jun 2018 18:37:06 +0200 Message-ID: Subject: omap5 fixing palmas IRQ_TYPE_NONE warning leads to gpadc timeouts To: LKML , linux-omap@vger.kernel.org Cc: "Dr. H. Nikolaus Schaller" , Tony Lindgren Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? I tried to use also IRQ_TYPE_LOW but in this case board cannot mount rootfs so I was thinking this is not way to go. Thanks for any hints. BR, marek -- as simple and primitive as possible ------------------------------------------------- Marek Belisko - OPEN-NANDRA Freelance Developer Ruska Nova Ves 219 | Presov, 08005 Slovak Republic Tel: +421 915 052 184 skype: marekwhite twitter: #opennandra web: http://open-nandra.com