Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4828641imu; Tue, 8 Jan 2019 07:03:27 -0800 (PST) X-Google-Smtp-Source: ALg8bN6OghhIIRYlsoJLe5OzXEaan+nkCIXS0+Fhd70ZyKKdINZl6adnjQqycn/Yhd3dUZfkfUVi X-Received: by 2002:a63:ba4d:: with SMTP id l13mr1818153pgu.194.1546959807451; Tue, 08 Jan 2019 07:03:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546959807; cv=none; d=google.com; s=arc-20160816; b=0Jh99Fv2jIZfht3RNYdlhELk+SScxvga1REt2wG243satenlRQu4mGVm2ab7QniF1q nB6dHvoqq75ceIRIN2RX1jb9o0IVi8Kgf+lKSB22hKOcMBNg13mimrje9WfYNgcPKbXA 6BA3ALEZ3ERsNLUXJQYWPHZLl3trEASs+JKvaAYEKP+newS2EDldHvsKUVFTxaUovkq7 m2Za8l+4IZbdc3L2PDiadpHMorsyYeIra0pZc8f0VjK7zyKGgB6u2tJC+McoBtPMD/dI 0Axo/RJil4TucehWIQ9TqY7sKMjuSdvEcKh61IwcR9sSYtokjxZTTXVuLU9JwYrQUpuF PPsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=N6i6cOZMDYP0uunuqQip4JtqaO+OHqPx2IINnMVW6F4=; b=h7BEkHVx1UD0jb/9+EUctmyn4CibwpLxUQURQQ7T9LHls0CDD6tKXt3r4+Jtyu/wr0 u6yM+dvezRjQB6yDlvdyrDCUuoJggWFwENZQv5l4CKVy3g5GnEVM5lg5aAgqvtMxnu8c oKIcwD87L0ijMe6YfgNakTWVcF6QRhh7z9DYeo/smDGZAgXdcvp3iCVZqoM1QhgH1mpQ YG5UgC47aSMxA5CaNRnDnvWRJpPujnBpXU8nNbM6FPq7do9gQRCXdnJeIYkav3XqpWOb dlUvE1zaLvLZokAb+2aWkUXZIGHMRPF4MoKeF+8e3bHR4vBADH4PzCuRB+6d3HpdETnb jTxg== 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 g11si10190656pgn.32.2019.01.08.07.03.08; Tue, 08 Jan 2019 07:03:27 -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 S1728226AbfAHPBm (ORCPT + 99 others); Tue, 8 Jan 2019 10:01:42 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:51981 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727764AbfAHPBl (ORCPT ); Tue, 8 Jan 2019 10:01:41 -0500 Received: from [5.158.153.52] (helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ggssn-0004Dy-Q8; Tue, 08 Jan 2019 16:01:33 +0100 Date: Tue, 8 Jan 2019 16:01:33 +0100 (CET) From: Thomas Gleixner To: Linus Walleij cc: Leonard Crestez , Andy Shevchenko , Daniel Kurtz , Nehal Shah , Shyam Sundar S K , Daniel Drake , Nitesh Kumar Agrawal , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Hans de Goede Subject: Re: Interrupt storm from pinctrl-amd on Acer AN515-42 In-Reply-To: Message-ID: References: <4085fc648ff5086bd6e6237d74d2a11e945a617b.camel@gmail.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 28 Dec 2018, Linus Walleij wrote: > On Fri, Dec 28, 2018 at 12:02 AM Leonard Crestez wrote: > > > Digging a little deeper it seems the touchpad interrupt is active on > > boot and since it's configured as "level" and no touchpad driver is > > available yet there does not seem to be any way to clear it. > > I think these are called "spurious interrupts". > > > I don't know how this should be handled, booting with an active enabled but > > unclearable interrupt seems like a platform bug to me. There is even an > > option to set touchpad to "basic" which does some sort of ps2 emulation > > but the IRQ issue still happens! > > > > One workaround is to explicitly disable the interrupt from the handler > > if no mapping is found; this will keep it disabled until > > amd_gpio_irq_set_type is called later. > > I don't know how x86 and ACPI systems usually deal with this stuff > so I'm kind of lost. On the embedded systems that I develop on, > I would just disable all interrupts on probe() (usually writing 0x0 in > some interrupt enable register) and then they will get enabled > once consumers need them. That's the right thing to do. > But I have come to understand that maybe ACPI systems are > not so happy about drivers doing things like that? Each driver has to invoke a request_irq() variant, which enables the interrupt line. So there should be no problem when disabling all interrupts on probe. Thanks, tglx