Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp589839pxb; Wed, 27 Jan 2021 16:02:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJxFJJ+x4ypu3rM+gK4sKu/h8GFtBEvCNLkvQSHnDVWYG8/ayqsGW3ZQKsVXoCwH/dw98E8n X-Received: by 2002:a05:6402:20e:: with SMTP id t14mr11339995edv.178.1611792155196; Wed, 27 Jan 2021 16:02:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611792155; cv=none; d=google.com; s=arc-20160816; b=w1qP/pp2Wz3gIgWwSheGu5b5VeKdMHyOkVdCqBD4iGhiVm3/awHdam08Yp4ewXMQRV EVXXkghWMFeGQgrxVfVozLdo3scKBUtmMoX5vE5DdMjZew9GRCVB1wsKWCZmBP3up+bc 2LB/M0MKifQX5oQB3FPHbCB+YnZgtF+n1PVmREqESIXowhIWY+ZBpwrVi5PbgBacwp83 9sAXoBdDQaGVwaxoOo33Dnz8GKZKrwSDpR97B5LH1jHiqLcxicM2uneVHNTDQbB/v+j2 fjWJYLO9wrBIqGoic5V9SQbvolyunLRENyLtak1H52p8LpTeVno2ymP6eGGr3LsEp1l1 TFcw== 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=LB+KnXDk08QSztygvS1XRrmtygQ3Z6NLwB4B/K64vk4=; b=aBhAe5QcPJCF+O4Xiazk/vCH5ny9tBDLblMnhfAzVXYIJlRRufb7DhKnSqX9IftaOc peTdInrjMgm9afj0DRahT6LsjyS2JOZGYP1R4aLPNKz53cNvZjPXfpJb6LoyDzgVmoxM d8DlEYvQxfq6rtJmX6WGlibupjWhjVSYlUxXoDIpDkMpqZASSVAw12Ms0fE81vUlhSSs P/l9CioDh5ZKEAJHe56EUHKDoGcu5S4Uh9wms9TkJ4qswLFZHIjkFxCVtYHKc2mdAMe3 e+5aX6Tk8PMx+CweNgmS4mk5KgDvGWzLJY5WBJ+3Lu2NsnpT+O5AN9edBNPWjtwaJeqH xfMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=MCq9nT9s; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si1923250edn.558.2021.01.27.16.02.10; Wed, 27 Jan 2021 16:02:35 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=MCq9nT9s; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234382AbhA0OrF (ORCPT + 99 others); Wed, 27 Jan 2021 09:47:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234240AbhA0Oqy (ORCPT ); Wed, 27 Jan 2021 09:46:54 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4B9CC06174A for ; Wed, 27 Jan 2021 06:46:13 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id ke15so2971086ejc.12 for ; Wed, 27 Jan 2021 06:46:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LB+KnXDk08QSztygvS1XRrmtygQ3Z6NLwB4B/K64vk4=; b=MCq9nT9sjOH/xAmhsgEVlDS04AvCloSKoqpwLu4kkOM9mXA5U807sI6Bq+S0kWd1q+ hVdknbWzaif7Mpl0GXvRD6W48szElaiBkZpwzK4g3z3ezTApPwstKC9stF9yQTey2aTT 23RmLCQzkzXAuXHb8Zo8RbYDcGG53pTUXkhA4yLSlUYeWXHVKkEYOm4ZA2kwxN0mnNMF qTU3Z07/1z2VIrHlJYvIMj59fGwPnRGVlPPPk7FJQ0uMCeJFfb3CUfQOPZNLAbkaCeNZ 1GH8J0+NeysPMLvfMKWBrktDcpsTiNIDZ3BNjdyXUJ3jxNotrmD9eEgRBxGkRo8G5h/m pb+A== 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=LB+KnXDk08QSztygvS1XRrmtygQ3Z6NLwB4B/K64vk4=; b=o2y+nhNdByOqIiGwZNyCx7CjvF4PFAZUMFP2vYUoZ/U8KrIa+D6QZXLg4qX8+2ujLo +jFV82cdDRX/K6nApoaHprmZ5WpM5hCLEIvo5BptJP7dG1ZIme8RS2127NUbstdwAOs0 4hX9idu+ZuZS/U0HSVYdspttP4zF32htiPn7CE4iins7iJUDGPfTEHcuR8MwMX65lkAi u2OQ1mzW8pqV5DFM7KhwyKse+BVs1rF9O3xVAJwOMZZAAC2Jk/iR1NGdrWaikVSWYib3 cxbTlomsckbegxwhc134GdpjdWeqlmU0lZCJ8558MVWOs129/Wb7nXguZCEGEp5YAn9v lcgA== X-Gm-Message-State: AOAM5310CHsqjYni9989PmkaoQnlWNtxvw1kCXdb7Ae3UNTT02UyNrCW 2HM2qmZcooh7y9LFD3PX0u9p2ElMjQpixkf8gmTNqA== X-Received: by 2002:a17:907:2632:: with SMTP id aq18mr117344ejc.445.1611758772511; Wed, 27 Jan 2021 06:46:12 -0800 (PST) MIME-Version: 1.0 References: <20210120004548.31692-1-digetx@gmail.com> In-Reply-To: From: Bartosz Golaszewski Date: Wed, 27 Jan 2021 15:46:01 +0100 Message-ID: Subject: Re: [PATCH v1] gpio: tegra: Fix irq_set_affinity To: Linus Walleij Cc: Dmitry Osipenko , Thierry Reding , Jonathan Hunter , Laxman Dewangan , 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 Fri, Jan 22, 2021 at 1:56 PM Linus Walleij wrote: > > 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 Patch applied, thanks! Bartosz