Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp93536lqo; Wed, 15 May 2024 23:25:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUpAX0veLLQulIJvM2t6mpfzz2fAT4M6bDW92Ia7usAzPrWnCZCZXCDxzCazh0IE8Ok9sumSgz5QvDyuW/HTdx5UCfN6Tp7mdJWYw8q3A== X-Google-Smtp-Source: AGHT+IE1oRNtHtOalgWGPvatruERJ8twmPbjrkwycek4tWsGv9gndYIYF6V2+dVizQPgoXoXbDqT X-Received: by 2002:a05:6808:b1a:b0:3c9:677d:bf72 with SMTP id 5614622812f47-3c9970c8a6dmr19799757b6e.48.1715840748582; Wed, 15 May 2024 23:25:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715840748; cv=pass; d=google.com; s=arc-20160816; b=RcnnN1CaCNSveHmfGFdvImtimALhuLI9O1TDl5EEoigdPGv7ltpP2jnsaiRD/mHB5h YGkfyRjyfP5xDDPxyQrLF2wHuBeA2ht7jHLXNt0CiAyHrtU7o1qPgqlIf0RJmPszVcG9 AmHvGjDR85X0IA0O/M8ua/saxv46iR8a+fGNjrvLyOupjdV56b9wg22q7sp/vMonM9r+ S9UBg5oCVvXsjIQgNcBMn/r617zAY6rAcDPQnh8dmuC53HbCWQYuB1IA+x/8BqA0VUMx HobkCNPzRqjo7L0ICaa//XI2ClMdo5irw4T7rvIG6QVBGZlcaqd3oS/UyA5ocQO7aJP9 q33A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:dkim-signature; bh=ivJGdfB0We0kranfdHPe4hL+Enb5dv3W/8BGkP2mIFc=; fh=i4D4fpoKQyYP7X2YfmnfJNAKZdIoinDfQ4wTNJaduS0=; b=rpsPZWGCOnk4SdAP3lSsWXBdcYbo/B01Q+KkfwBiSA5+iHtj5atU8eq2JISG0aaZyV SAxr65z5QX9CrIhWVilIQSOIk6slXO7z9rVtA35r82L9rTondfbSYSdd7Ad7ZH3bI5Do 7WHePlvueN89zyYqQ80YVVAPto3nipGxy/ttGEJRORx7V3eE2h9Chi8YcmOaoZs72Xmm Tm6zcItQkv5mI5w/mECJQnSNF3+aKC/KoUa9enHwWk/ArUaahY2humCCN+DjeYxVxJ5M hFdXhhIVRQAColzWYx2SvUxGG8T91xFd+Hr6SiiPBgBHykFY3nyyrfgNg7DfJ6VKdEcE SEqw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=E1z0LPal; dkim=temperror (no key for signature) header.i=@ew.tq-group.com header.s=dkim header.b=LMfjlKy4; arc=pass (i=1 spf=pass spfdomain=ew.tq-group.com dkim=pass dkdomain=tq-group.com dmarc=pass fromdomain=ew.tq-group.com); spf=pass (google.com: domain of linux-kernel+bounces-180672-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180672-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-637368826acsi13254276a12.307.2024.05.15.23.25.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 23:25:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180672-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=E1z0LPal; dkim=temperror (no key for signature) header.i=@ew.tq-group.com header.s=dkim header.b=LMfjlKy4; arc=pass (i=1 spf=pass spfdomain=ew.tq-group.com dkim=pass dkdomain=tq-group.com dmarc=pass fromdomain=ew.tq-group.com); spf=pass (google.com: domain of linux-kernel+bounces-180672-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180672-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 35FF8B21718 for ; Thu, 16 May 2024 06:25:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC6342C6A3; Thu, 16 May 2024 06:25:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b="E1z0LPal"; dkim=fail reason="key not found in DNS" (0-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b="LMfjlKy4" Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) (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 99E37225D0 for ; Thu, 16 May 2024 06:25:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=93.104.207.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715840718; cv=none; b=lewiZ5cpeFyoWF/GBgP8svu4Cc8FhuLuPKyIoHRJl7ko4UjYe/rpJdeCB/Po5iI+YO9QmVPN/VVxdn+HwCT/cuqDW08xu0r2hai9E1AImYOcSDT1r0OuH+2fFB3/fm1qhB0Lq0fCBKXMbXM9w6hsI3W0yWFJarT9BEC5hVSUpMs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715840718; c=relaxed/simple; bh=gjTBTFOmFlUHEWlJWq5ipC//VVCiq4P3QuH99HQTlNM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=iKr+Y1Mta4MG8mFrqp04AdP4nkemJYfVBNHw8cR79vGbIm3VzQXLiHi2d5m8Ikb9fgk0j6a2nIkrB/7LaAGvJ25Kbv74OdJwMI0zljz8tImwTORwX544p3EUUWMOTSN1/ljKW949M0FvXUeUVJBl3rNld7SgxoXs2cN76Ck/Q+0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com; spf=pass smtp.mailfrom=ew.tq-group.com; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b=E1z0LPal; dkim=fail (0-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b=LMfjlKy4 reason="key not found in DNS"; arc=none smtp.client-ip=93.104.207.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ew.tq-group.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1715840715; x=1747376715; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ivJGdfB0We0kranfdHPe4hL+Enb5dv3W/8BGkP2mIFc=; b=E1z0LPal4b3Zkq9GmwR4I2v8+S5zHBJoMB3rWyUClVKeLHkPu+DNd0Kr qv3CkfiLNSUffV2dJmMcHL0YQuSW0uZ5bTqAStBBJEpZsGL89h8FcK8v4 V4Ap5b2gYhNYh4qo++cew2vha+ukU4gLKvi28goi4mMocl9CTRrr4VHl4 BNpppV82qUFLuZ5B3Q9Pby0V1HKi0K3lrLPHTWCkXhd1xQXXCDOakSKYG MC6O18PUqaOjR7nm57X4kZTeEOSv2zPePZG2vnR2ok5iaQXswdCn/d8t5 EmziJapca/y+4IZZ7QrJXGKS8qNnwPVTLZ5aZve4QFNPNj1kJKZv932Gc w==; X-CSE-ConnectionGUID: UYcMj9TdRsyGzPZ36lEgJw== X-CSE-MsgGUID: EpIeAuzbQmSeikKVQIY9Mg== X-IronPort-AV: E=Sophos;i="6.08,163,1712613600"; d="scan'208";a="36926962" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 16 May 2024 08:25:10 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 63ED5172EAE; Thu, 16 May 2024 08:25:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1715840706; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=ivJGdfB0We0kranfdHPe4hL+Enb5dv3W/8BGkP2mIFc=; b=LMfjlKy4qv5svpwRzxRrtrslK3KvpTcDdd+RkdxGMQYqFUgIS6rjkzTgWkMDsb0D3jA0W+ MiRXFTh5uTxsemyAVlgRdEl7E+LHC5NkvTGlkEFrJP0Th0YD8xFY/PJoHoG/03U/S7O6aJ pE3sSRsKH+4X/J+MJdsGWwjY2I95OC1sr18eJuMaGk1Nqg8lhSjnMMGxgWjN6uxscXQYBo tdRcff9++0bdYKlyjypnR1NFUIJ1QZZqE6hVZJ7YCSLPsI3/vLDUJAuQ5xPhfrLT7IzT4Y alrmiVsDKFvO/p7V1FBtC81Zw6SvmZv0gYSlQ6IUpsiZylXOe4QgGUt+JZ8GjA== From: Alexander Stein To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: Alexander Stein , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] drm/bridge: tc358767: Only print GPIO debug output if they actually occur Date: Thu, 16 May 2024 08:24:54 +0200 Message-Id: <20240516062455.106266-3-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240516062455.106266-1-alexander.stein@ew.tq-group.com> References: <20240516062455.106266-1-alexander.stein@ew.tq-group.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 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/tc358767.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 = val & INT_GPIO_H(tc->hpd_pin); bool lc = 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