Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8426594imu; Fri, 28 Dec 2018 18:17:45 -0800 (PST) X-Google-Smtp-Source: ALg8bN7gitJzzIwP4QF4AUJRBg0Dse96NJXYQvu5PuTBk42fvQ9ZlGoVO7/tv3cOoMhQxmri7UT0 X-Received: by 2002:a63:cc4e:: with SMTP id q14mr301399pgi.291.1546049865569; Fri, 28 Dec 2018 18:17:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546049865; cv=none; d=google.com; s=arc-20160816; b=CZD0AFHm7zE2zhx29YBJ2fi8tV36KR8gEotWrZJ2hUTTzo9zAgwhc2caufhe9tz9JK xGW+usU7nETisZ+gJVpFsOh6xkX4eIK/2F1d7XE24WMDk/wMMS2D+oy5fH+xhHEjLsYH nMOP0h/GX6Q5RXygm0rCokqoxbqpik2FmAIb842vGdHxkHbMyaOFWM7E2/u3YZQ2U+i8 JWNy4M4r7hzVYluArlCT/U3o8aYtV4whMW6QmzKrnzNA9c0UyVVuml1wGFX3Vq9fGUhf N/xTp3JlB481q/EcUPM93Xfy4Z62F8wVChYVmkkjShOyLqS8jaoBU5t0M1APR3vDAUWl XvDw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=TB9wd4V1lU8rUWRSA3Zy0k9okpjm28MYCb8GMqiX3ZI=; b=PklG+2JdP1qLDXkTOMWdYspW4dngALDKLvfrZ8dv9ts7h1I+xp9InpXlZH7IK36Vuo ygAPztG9+HKD9sOU2fJqFQQjjbaWx/racCJU7pBNy+JqqifyOIzAFUJX2c+xuuFcs1KF 62GzhdSXnza7d1mCTGPMqNwPaTyvmYWy2JyN1/w6RCaKW9QIjXsTsYP+rpggaH2Gn+C7 KY4XxBmrgMw9XZZELCHD9XgEyozDNrknWGF2DESh0m9Pm/3qWszShl6U34a1eSZvxfx7 n4LE3nenbRNqvsQVWEDN2uQGKf/nNY4WFdLl1K9fcT5CUIoHC8fjhdivvSchYjrNeD0r 2JGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UpXVYTif; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 92si19600305pli.220.2018.12.28.18.17.30; Fri, 28 Dec 2018 18:17:45 -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; dkim=pass header.i=@linaro.org header.s=google header.b=UpXVYTif; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729754AbeL1Mso (ORCPT + 99 others); Fri, 28 Dec 2018 07:48:44 -0500 Received: from mail-lj1-f176.google.com ([209.85.208.176]:33959 "EHLO mail-lj1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729597AbeL1Msn (ORCPT ); Fri, 28 Dec 2018 07:48:43 -0500 Received: by mail-lj1-f176.google.com with SMTP id u89-v6so18656139lje.1 for ; Fri, 28 Dec 2018 04:48:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TB9wd4V1lU8rUWRSA3Zy0k9okpjm28MYCb8GMqiX3ZI=; b=UpXVYTif9qGUlbxNsDp7j8a2AYFaxKukSwnsFrvAwKQ/a9v1cPWSN4Faj/Wu0BLWbS Gh2oCNc5DQ63aLtyKCPQqLNKDpt0rWpKI5w6Zyo4lSnKOQslVpSzN98OEC/bXrXXcWov Q/9NzdqBt4vpYQCoxWgaCDUqL01Y0R1X+NtrI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TB9wd4V1lU8rUWRSA3Zy0k9okpjm28MYCb8GMqiX3ZI=; b=AsK5gSPYQSRh6FojtEinVATLetJ6iJzp68s3y9W8DcI3Un/UrYizFb0wUy93P85GsN Q/o907aA2QrptJNL4AzUhjCsPQpA6gparC64/NZM6OBz6SmZR67ccviEWYmGL4Tsa++z 7crgjvjREHdZYopT0Y2eXyGhLbPAOR/ToQwL8KW94KUYCvUJO8bcB04aRFmtv+sRH2Lm rffSjszGucTeBIJ+z/LYZaU2DYERAe4Q5OreeuyYpG7UIeSBikxRQzwhhe8cQf1TIMU5 Cv2DdurcdzvrapUKr32RACm2hKwuZd/7SVm0Nz7gHcSk0xOyvtNERwS8T9i+oqlvrhfU Be2w== X-Gm-Message-State: AJcUukdsDrYDaf+FNzShRSmpz+I0I2NLObO97If8iTDeicukVPIAxx/q 48/xJsMsfpOD8UrOxRmW/aMJO77rcqMmmbwRimqk9g== X-Received: by 2002:a2e:9c7:: with SMTP id 190-v6mr10895366ljj.120.1546001321639; Fri, 28 Dec 2018 04:48:41 -0800 (PST) MIME-Version: 1.0 References: <4085fc648ff5086bd6e6237d74d2a11e945a617b.camel@gmail.com> In-Reply-To: <4085fc648ff5086bd6e6237d74d2a11e945a617b.camel@gmail.com> From: Linus Walleij Date: Fri, 28 Dec 2018 13:48:29 +0100 Message-ID: Subject: Re: Interrupt storm from pinctrl-amd on Acer AN515-42 To: Leonard Crestez , Andy Shevchenko Cc: Daniel Kurtz , Thomas Gleixner , Nehal Shah , Shyam Sundar S K , Daniel Drake , Nitesh Kumar Agrawal , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Hans de Goede 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 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. But I have come to understand that maybe ACPI systems are not so happy about drivers doing things like that? Yours, Linus Walleij