Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp655600lqb; Wed, 29 May 2024 07:03:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVbqn3RKM4u1k080wY5hR0W8hdudB4WXzFUYq0L5Ram9P1/I78G6+KAu2WlcAnfAR9OAEwAQWnq+ZeFve+U2iZGv1rEXXYG39tJiVmKVg== X-Google-Smtp-Source: AGHT+IFzTRbMPO3m2mJNr+HJSHPa2KQ+qjkpH0kb3n9awfBpQ7SIfoPMfcTx8AFDubfEA+VN9Ziz X-Received: by 2002:a50:f605:0:b0:578:5d83:baf1 with SMTP id 4fb4d7f45d1cf-5785d83bfc2mr8804790a12.2.1716991380115; Wed, 29 May 2024 07:03:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716991380; cv=pass; d=google.com; s=arc-20160816; b=qfgqwNQsGJAy5E9Kc66A4V86XFqY8sCpptldZHl04gcu0pY78QFQzSEMMwsP937RgX Ik4kN7EpU/7lcDi74TMOrvHDoTwzJcIqALFPMaDFIcfLU5EifhGm6BbUuJ5EzflZCy3w +GCI6mqNOcC7mLzL010ADEa2WTIX6u0x2TYpH9fs8BvfwfB1pwpEc6rdgBWw2v9Gl9m1 UlA5bauy1jlWE8vboR3FM6oBHCQu6SPDoJxFJSi/XcOlxUZWwgvXXJF4k21T/X6hyVkN PwzyCX1mhQrVcYrtUuLI4VSQ8tTfP+wkUzIqPiK/SnlD8bwCKFXLHthG+i0lEbSwhKFK KiGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=drrR092edMCoRr+/wYdk+q7wws52Qe8sTNsEh6Ltmis=; fh=MicJaftCkd40PsE9ocOkoGJmkg88dRa70HsspdXeh1I=; b=0oXANqJqwVZ1ACeyBa73Y8em0blY4uJJ4H5AALItGwCrFNQJEa5uMRHKCzShKsPD21 uujRlRXP2W1HXISHsWB77ZRKNTjygWj2rof1JXtPMoJoh5V7+dXNo+Gw8QCElz/Ssvsg 8QIHqHDYatV7zsb9+FN8q2T7beMjTA/ABpje5X/GSvVxbeBd9YZ88Ew39tNDWsFSIiI0 0Y2nRgzxuCMYsPrCuH8hDoQF5I+lyIWPO2Ys9il5mhof//xlGz3LXUqDbio4QLqC9KLA QA1IUHTl3li0ahTwDE701dOINO4oV809yt0b15CHMb9U+8w+59Slo131lyVJPDQBO9O8 MljA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ioooeFAH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-194219-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194219-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57862928629si5589861a12.23.2024.05.29.07.03.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 07:03:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194219-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ioooeFAH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-194219-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194219-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D0DA21F22710 for ; Wed, 29 May 2024 14:02:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A504F1CAB9; Wed, 29 May 2024 14:02:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ioooeFAH" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D11D71C6A1 for ; Wed, 29 May 2024 14:02:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716991373; cv=none; b=U85SxR0o7f85oy0wY+99Vs+adlbrn4zoJIFJpjLSKshc9T27Is4FVKqnqm1AFRE4gcH+5p6eyMSutipLcENSu7Sy3cGDmDuXd5s7OChJsY1NjQowhRmyQbsvSHEYZ7ULadDNFiSvLl7+Bl83MrcDW4qHkYNC9XZD+/gBU/qyKJ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716991373; c=relaxed/simple; bh=ClKliciffLvAYOJd0zEs/omJQhLpuiCBv2RFdMFaVkg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=rusXRe45ssDRkSV2YCfeEOdfy7zq3sMbp75ttxtpQDFSaMN+fapWjIoX0TGsixbMUa+LgaOTJgU7fka/rVEStQxjqceiX7+8dGoURKJCp7gFE6q08cAf1ZvknMqG7eed6oROHg+VlCB4Ia9kdqOIpnApgmUEnojain9B+/hsftI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ioooeFAH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69057C2BD10 for ; Wed, 29 May 2024 14:02:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716991373; bh=ClKliciffLvAYOJd0zEs/omJQhLpuiCBv2RFdMFaVkg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ioooeFAHqJUVENw/TxzwW2AKwslsUnB5913QU+BV3I+cHtjiY4574Ez/5pKv2nlor h75rqS+IhFWufHIL/DbPKdvwh2XU+LAbvIY7lhEDeELB/bFpiKdGcpqiJC40gVY3S7 U1SklR0qELVmyMoWpx/FTGrWloxKD35OUTxIYiejGk/4KkwxjSialuWmsnRgeGXtw3 gjeDfSQimxVUyZ78Pn0FcKT5tWnhdZkHfrKGn/1V8xmMXIIIf8tDfmhoU+hmRHIuqr p6ULJwweJc7LrT3EbkYQaJjSPepzAIJip7BX2bF4UzWpLiJhMLwMu8XKvqP+DbUKDu SHdfThbgsaXyA== Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-62a2424ed00so19646287b3.1 for ; Wed, 29 May 2024 07:02:53 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUTAZF68En3m7rzkfSe95LylsVDHDckKclnBnhRPp4OyJEToSlwXXRJeAjYry+Kmn7v8FNi3bR9zGsjO5pzA8oT/VxPQslzf3cJcSRu X-Gm-Message-State: AOJu0Yx1GilwjOGT9uvkRbk4mVtd3JtIRMWOWlZD/nP9Wh0Q58flDrMy p0j/RXoeOroIKQkD81pgYYWi4fgIQlxPbsCEeF9abFM3I89QfGTo8Ues4IwWKLtYADJwYfyOrnL FRZkOCKdOMNGD7OqiCJB/wNwKzetZFzlkkiltRQ== X-Received: by 2002:a81:840c:0:b0:620:255a:a5c5 with SMTP id 00721157ae682-62a08ea7e3fmr150098277b3.32.1716991372687; Wed, 29 May 2024 07:02:52 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240516062455.106266-1-alexander.stein@ew.tq-group.com> <20240516062455.106266-3-alexander.stein@ew.tq-group.com> In-Reply-To: <20240516062455.106266-3-alexander.stein@ew.tq-group.com> From: Robert Foss Date: Wed, 29 May 2024 16:02:41 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/3] drm/bridge: tc358767: Only print GPIO debug output if they actually occur To: Alexander Stein Cc: Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, May 16, 2024 at 8:25=E2=80=AFAM Alexander Stein wrote: > > Currently the output the following output is printed upon each interrupt: > tc358767 1-000f: GPIO0: > This spams the kernel log while debugging an IRQ storm from the bridge. > Only print the debug output if the GPIO hotplug event actually happened. > > Signed-off-by: Alexander Stein > --- > drivers/gpu/drm/bridge/tc358767.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/tc358767.c b/drivers/gpu/drm/bridge/t= c358767.c > index de62a7e2eafec..8874713bdd4a4 100644 > --- a/drivers/gpu/drm/bridge/tc358767.c > +++ b/drivers/gpu/drm/bridge/tc358767.c > @@ -2146,11 +2146,11 @@ static irqreturn_t tc_irq_handler(int irq, void *= arg) > bool h =3D val & INT_GPIO_H(tc->hpd_pin); > bool lc =3D val & INT_GPIO_LC(tc->hpd_pin); > > - dev_dbg(tc->dev, "GPIO%d: %s %s\n", tc->hpd_pin, > - h ? "H" : "", lc ? "LC" : ""); > - > - if (h || lc) > + if (h || lc) { > + dev_dbg(tc->dev, "GPIO%d: %s %s\n", tc->hpd_pin, > + h ? "H" : "", lc ? "LC" : ""); > drm_kms_helper_hotplug_event(tc->bridge.dev); > + } > } > > regmap_write(tc->regmap, INTSTS_G, val); > -- > 2.34.1 > > Reviewed-by: Robert Foss