Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1001416pxb; Fri, 22 Jan 2021 04:58:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7QpKhSwiTL4hObtrM8gPqWmXZ1Ju9tF2PIQ4h0IfAFCIgnsuWQ6v8W7TedW2w/zGuworx X-Received: by 2002:aa7:d905:: with SMTP id a5mr3228223edr.78.1611320308492; Fri, 22 Jan 2021 04:58:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611320308; cv=none; d=google.com; s=arc-20160816; b=djgUy4hWr3QTvEMyJSSvB6JJO6leLq4GUCut0jzReKNz1vcpb8Hl/wdTZCX3xiaX+0 EGQj26RayKOqeZbztlqiVVvSAjrF5lS2gGfwjqrwY0Xh6yzOMgO1LYqy2ahK2zR1jgJk 7n+6Tgqo1ekKPN3xKOGNADt5O85v/DXCNyZcjD/cTIKMS9AVkxLFWv3fYJwsm7aTTdG9 iAKuPzWCFNWQYRFp9BTtD4C2jVxXj8C0U16u0oDYNcWf3pQYUe9t4puToTB4ivQjHFwl YSaw2a6pbnC5CchHWqX+IpWQIJYJmYwP8m3U4t6cHOVFHA4KSpNp1qPVFos9gfYjh+F5 w5SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=hbysKLgwDzAo+nX90SpxzAyrCCK68/bvQhdhyAtkNpo=; b=OG6Nu3hmlz4Yz5yAV0Otjl2svwH2GZz+/N7JaVEqYlgfEMX/fECgxgE3oiiUPDNBN7 Tj478RtKj8avtrHtK7ER9gbVhxw6fBpyr8ncxmUfV4mHuVBwyDbwA2LogljH3tBqXOyA eQOX4OvNYkXvck8EKiAHsSSQLR6Hc3QTWUadasyaSu6jUNG5mAsTIk6P9tY2QfH/YvYb ptB+4TnN7UdCPBcSPDXeHTUPQOWuL3s9Ntr9C8qnNDxdrn0wirlZ06mBxuigw70D+rft JmbkDCyCzFphEWRq/4+PCQRvD5TsGDsYmYFhb0Qt+VGFhS4Fixe43FOg6j/dhGhMrRQI kTPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QDULxrSt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id ay26si2995054ejb.195.2021.01.22.04.58.04; Fri, 22 Jan 2021 04:58:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QDULxrSt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727499AbhAVM4x (ORCPT + 99 others); Fri, 22 Jan 2021 07:56:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727010AbhAVM4s (ORCPT ); Fri, 22 Jan 2021 07:56:48 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ABF0C061786 for ; Fri, 22 Jan 2021 04:56:06 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id o13so7409564lfr.3 for ; Fri, 22 Jan 2021 04:56:06 -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=hbysKLgwDzAo+nX90SpxzAyrCCK68/bvQhdhyAtkNpo=; b=QDULxrStPPn057tG9barLLBFRTBLJ8ylUfC0+F54+qfA4SNlZv40pBLuzSI0N/59g+ SapNPHtGBn0koEhPx0looQTZhW4s0UFM5EVkuMCzoapTRXpEDyc69fqvsU908jFwJhl1 j/yvSpIt2HaWfzv+03V9uyp8XZPdrS6Fth+Ku9EuwOJYLiz4LOmW9KBVV+H7uB9ILTHo 76d+qxuVb/0yZGYHVhgwPn0OxgWrekrE33QMuejE4dqntZ4GJoOtPN0Jyx7bDRdcr5qZ m6CggsFCwzDH7b5b9jySKPwtmQ3X/dswem/zBMF8fVnBErlwmXTgKtFmBiztB4LRoPvI ipow== 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=hbysKLgwDzAo+nX90SpxzAyrCCK68/bvQhdhyAtkNpo=; b=Sil0qLX+NwpkiR+lB5hFdf0ZeiQxJSTF6a9NDgWhRkW6Bc7Jse25mqr5Bd0ZrvdPpK IB1yiRqBLa2oLCFdKpl/kMieuj05bG+Jjw5oJ9fAVpReweHinFS6YxmaMn7eIbrC37WM IRSIB0qNleIHAL7R7W89jj0sKk/ZC+hYpBsEEzoX7kGx0tzMAjqdOJeQzLpTAOL9JioO j5kxzqmYzSo9fPJrYesT6jEX36Ktkt4fZX0hWyzPCtM0AU7JCyeiREVYc5isJjDkC7fG BzG+TL/zr7eMGIbic8/HWjbV4Xz7qi5X0kyuEqCDJxOU/ut9nwCoKXHBTKFIC3FCX/Z6 ymuQ== X-Gm-Message-State: AOAM531W6Ouzs5RNJTn2+D2kquny63kyHZc1p4Lwd7szsogp5X49cZFi UN5NmPGE4QIcCOc1UN69GXFIO7Q7a0EvYWhx7GiuMw== X-Received: by 2002:a19:8bc6:: with SMTP id n189mr129571lfd.291.1611320164547; Fri, 22 Jan 2021 04:56:04 -0800 (PST) MIME-Version: 1.0 References: <20210120004548.31692-1-digetx@gmail.com> In-Reply-To: <20210120004548.31692-1-digetx@gmail.com> From: Linus Walleij Date: Fri, 22 Jan 2021 13:55:53 +0100 Message-ID: Subject: Re: [PATCH v1] gpio: tegra: Fix irq_set_affinity To: Dmitry Osipenko Cc: Thierry Reding , Jonathan Hunter , Laxman Dewangan , Bartosz Golaszewski , Matt Merhar , Peter Geis , linux-tegra , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 20, 2021 at 1:46 AM Dmitry Osipenko wrote: > The irq_set_affinity callback should not be set if parent IRQ domain > doesn't present because gpio-tegra driver callback fails in this case, > causing a noisy error messages on system suspend: > > Disabling non-boot CPUs ... > IRQ 26: no longer affine to CPU1 > IRQ128: set affinity failed(-22). > IRQ130: set affinity failed(-22). > IRQ131: set affinity failed(-22). > IRQ 27: no longer affine to CPU2 > IRQ128: set affinity failed(-22). > IRQ130: set affinity failed(-22). > IRQ131: set affinity failed(-22). > IRQ 28: no longer affine to CPU3 > IRQ128: set affinity failed(-22). > IRQ130: set affinity failed(-22). > IRQ131: set affinity failed(-22). > Entering suspend state LP1 > > Hence just don't specify the irq_set_affinity callback if parent PMC > IRQ domain is missing. Tegra isn't capable of setting affinity per GPIO, > affinity could be set only per GPIO bank, thus there is nothing to do > for gpio-tegra in regards to CPU affinity without the parent IRQ domain. > > Tested-by: Peter Geis # Ouya T30 > Tested-by: Matt Merhar # Ouya T30 > Tested-by: Dmitry Osipenko # A500 T20 and Nexus7 T30 > Fixes: efcdca286eef ("gpio: tegra: Convert to gpio_irq_chip") > Reported-by: Matt Merhar > Signed-off-by: Dmitry Osipenko Ick, sorry for the noise! Reviewed-by: Linus Walleij Yours, Linus Walleij