Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp280743lqd; Wed, 24 Apr 2024 01:58:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUg1jCO5eqNI+Z2FK/osgt2BHhJwaV0QW3od1uMMOzEnonI4+WEJ4lGUtsVxz6c4/TR5sAdxE8Vffeu+k0VwLTjcNcj4KVds9MyPUjIOA== X-Google-Smtp-Source: AGHT+IEV7NvzfrYfVG5gR80U5xzoEgbzpL4RgbRo0NKY435hTYQ5I/68QQbG/JRewRodM1SKJ1EW X-Received: by 2002:a05:6a20:9f8b:b0:1aa:7097:49e2 with SMTP id mm11-20020a056a209f8b00b001aa709749e2mr2464763pzb.50.1713949103286; Wed, 24 Apr 2024 01:58:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713949103; cv=pass; d=google.com; s=arc-20160816; b=v6z0H8U8DBLxFAqaw9iAIPPL8gR3i3xRovlCXhnVzbA8n31tSFem+g6jkf/mIRNjuj 8ly4cQLCW3fTki0OAhJ9OJUViD3zCrCXrP+rCbHIjbQBlQoHtrv4DVomk9Nmuywtblan WFplxr+WoKeWNO2L7pxkAOu2oKR19osjRYHTyq9kTMN270cnFqdANaCNRd4eXJzWOah/ vLt8VJFjyw/X+10wiRVemF5QAKuB1AOanizhZeSBuhuOPaSTRzK2sZcqGj9V2FK+y2uM AGee4rXvmpTZ+ybR5i50cSSeIoRn/oeVlWfQQ7uRN8922k52MfpynbB25KdNAUSPp6ox uFKA== 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:message-id:date:subject:cc:to :from; bh=muLxEq6sr4onqJFj6TTFjpquRfuRkJOb1yoyjshLA2w=; fh=asqeH3O/QnyRb7t/jKhooxi2j9EYs9s/QOPv512F3oU=; b=iN9xdjDez35aX+wmHlZqznsL55x8D61I3qNMf1h1k2I0oVAgd55mccNNoW5LDK/8kb mPAxhA3yBBVnS7Nwi/iwEGKodZoDcOvFZMwu4iAbVWwVz8i/TE5EmrdNyD2RkF3rrrk+ mvzDDeg9o6iriTvWmDwLDfZmXGOEKDlPKvRZd1FwWOTJU05HLSzWR5KyqhfV9GWc9haU vzrRlTHCyW0nzp3z1gtMwAa2Flwu6qDqzP6G4AX+8eFBx/ryJkY2IB28nmDikOe55A9V KxGneWoad0zTVm6CxF666usJqSpEVqpegu7HfL+OBC8Y/yXAD6Y4mlcGiBxK7VWoBgji CGSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-kernel+bounces-156572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156572-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id t185-20020a6281c2000000b006e628dd06efsi10923845pfd.260.2024.04.24.01.58.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 01:58:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156572-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; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-kernel+bounces-156572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156572-linux.lists.archive=gmail.com@vger.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 998A5B256AB for ; Wed, 24 Apr 2024 08:46:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57AF2158A2C; Wed, 24 Apr 2024 08:46:17 +0000 (UTC) Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 64E62156C78; Wed, 24 Apr 2024 08:46:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713948376; cv=none; b=utzmTM9j8kTdXUzfqJWbluYc2Cl47ybMxTr6u4TEFmWOE/LxyOQndaTDSU2VXOo+y1/DbwKfvCm77pgqad8gEaG6EqOIvfYUdNSJaiKhKmO9frN7ik4r4VvXmmlj7Q/+TRtZdpuez7xUkEH0ne1Sag51VhWALGcOYTbR5ITQgGk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713948376; c=relaxed/simple; bh=U9WEx/BCuYxzfID62sP6/0+vS8kW5OxyjS0bTYk41Zk=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=MDeBm+6dx0PNOxgdbct24BpKCQ9F/JB7HkgbjLUTAk3QvYQF6b+uAyfgizg4MHxn3Vo5Rpxcc21Z1g8cjceQ+/Jpo3pFzfBoIhtBLs9tcZHn9bISKjMZfadIqd70hKW8uoN80hkWeZoqoKYK0OHMkcpMrCNS8QPADGp0NpQSbcg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 43O8jun572217172, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 43O8jun572217172 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 24 Apr 2024 16:45:56 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Wed, 24 Apr 2024 16:45:56 +0800 Received: from fc38.realtek.com.tw (172.22.228.98) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Wed, 24 Apr 2024 16:45:55 +0800 From: Hayes Wang To: , CC: , , , , Hayes Wang Subject: [PATCH net-next] r8152: replace dev_info with dev_dbg for loading firmware Date: Wed, 24 Apr 2024 16:45:32 +0800 Message-ID: <20240424084532.159649-1-hayeswang@realtek.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: RTEXH36505.realtek.com.tw (172.21.6.25) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback Someone complains the message appears continuously. This occurs because the device is woken from UPS mode, and the driver re-loads the firmware. When the device enters runtime suspend and cable is unplugged, the device would enter UPS mode. If the runtime resume occurs, and the device is woken from UPS mode, the driver has to re-load the firmware and causes the message. If someone wakes the device continuously, the message would be shown continuously, too. Use dev_dbg to avoid it. Note that, the function could be called before register_netdev(), so I don't use netif_info() or netif_dbg(). Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 5d6aeb086fc7..51e9f5b2dccf 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -5274,7 +5274,7 @@ static void rtl8152_apply_firmware(struct r8152 *tp, bool power_cut) rtl_reset_ocp_base(tp); strscpy(rtl_fw->version, fw_hdr->version, RTL_VER_SIZE); - dev_info(&tp->intf->dev, "load %s successfully\n", rtl_fw->version); + dev_dbg(&tp->intf->dev, "load %s successfully\n", rtl_fw->version); } static void rtl8152_release_firmware(struct r8152 *tp) -- 2.44.0