Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp490746pxb; Mon, 25 Oct 2021 12:16:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxkhEgMzrc6cMQvKMWzAFxhXg6UQBir7z7ZUua99mTJlDMyKrlxntPl6gtO2cKgucDM0xj X-Received: by 2002:a63:7445:: with SMTP id e5mr4022154pgn.482.1635189389261; Mon, 25 Oct 2021 12:16:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635189389; cv=none; d=google.com; s=arc-20160816; b=KJigM9QsZU6wrL2MP0cudzE7D+UJPxogeMqySczmbDO2o7mKXhfAmOGUf6mc+mKcT/ 71QfZwGnmYIhp/PosCYtFXsqAdLU0DeLbQDSCIu9hWhnNzMHWYdkwN7q/yAWjDFUB3VX Ax8kPQX6m/vYJRt3JchrWPScSoO8OPJ0A6UAbN0b12nshK8UNEUngttlH1HoAxD3sdgV eTOSXNCIPHexVFeNktVdxjEMhd8LSK5rTeowd8XJflzgDO0x59HD6MElwgA+/Gf4GBN8 7JeEl3M4yEcn8+/24C9ofDDaOTTTRzpTPGleFhUguYerMjpzxN9dPJCUhjAfqKGAbSoE bX+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NOrDzObtYE0WfmB7tKYPuoCUN1Hvn3KQ83p58bbccNU=; b=AK12ZVA0K0gReOaVrBbi+LdZdoX9wv/WizWMykl0J0tH32wFg4hqeyE4eLCv5fNThx KFVaQDDrAFD1/0Wow0ZzmYRukLEDUAYPU/xyBYEiFtVmIQ/C0OzEz/AbwvtxcXRt8UYT 76OpBkyJZYcjI9ma1Zi9yyL45OtpCu2Rn+1aRPgjw1IsIvndD8qjeOGHhtidt8nJmLiH fShLGcaHyZekYWl+vmgiuKS9nj3JNtmenWI73uQj3aZW+OcZmftTFsIu0J+yHzOQeU6G BvMvfYLQjWFEn1r+lMdoyhhlfVhyrV0qpCczxehH8vk1fiWcpa1UNmPGTBjeSpkWS8iq MhOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ChVuSE5N; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z10si26367652pgi.529.2021.10.25.12.16.16; Mon, 25 Oct 2021 12:16:29 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=ChVuSE5N; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234485AbhJYRDR (ORCPT + 99 others); Mon, 25 Oct 2021 13:03:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:55192 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234296AbhJYRCl (ORCPT ); Mon, 25 Oct 2021 13:02:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F0CE561002; Mon, 25 Oct 2021 17:00:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635181218; bh=KEtFHe4vfFE4MH25FdjTxHe81mQy02OTwbpqGbESiKQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ChVuSE5NI5X7eGcv9CL8ci89G44FlttEp5oI/oXF9UKqgIP34C0QUzSargN1LytEz V+2GXUdnQAWZfOU1WSSu88YmrtlOUR1eQ5Bs6W0AGz2+Yo8sxnbQfgj9YzEqa2B4Lc vsBDcMySWXpb5fI6JzbBGpiTOZo3y98QsK59sikoYFmFLH6mHLZlNc6k2Kxyj6+Cdy sMtMMG4JZdbCKFdN13D7SBVg1ZyeilI1g/30lL9HVqQWrCC9P3z4qW/g9LiMrQJVpn HgeuHOrcr0dCaVC1qfnlsv7zSRGL+rAJQAtaZsf2TrYjEka59DaWLi8CTDRfdXoUHZ FK+eJRT7dlgEg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Erik Ekman , Martin Habets , "David S . Miller" , Sasha Levin , ecree.xilinx@gmail.com, kuba@kernel.org, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 5.14 16/18] sfc: Don't use netif_info before net_device setup Date: Mon, 25 Oct 2021 12:59:29 -0400 Message-Id: <20211025165939.1393655-16-sashal@kernel.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211025165939.1393655-1-sashal@kernel.org> References: <20211025165939.1393655-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Erik Ekman [ Upstream commit bf6abf345dfa77786aca554bc58c64bd428ecb1d ] Use pci_info instead to avoid unnamed/uninitialized noise: [197088.688729] sfc 0000:01:00.0: Solarflare NIC detected [197088.690333] sfc 0000:01:00.0: Part Number : SFN5122F [197088.729061] sfc 0000:01:00.0 (unnamed net_device) (uninitialized): no SR-IOV VFs probed [197088.729071] sfc 0000:01:00.0 (unnamed net_device) (uninitialized): no PTP support Inspired by fa44821a4ddd ("sfc: don't use netif_info et al before net_device is registered") from Heiner Kallweit. Signed-off-by: Erik Ekman Acked-by: Martin Habets Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/sfc/ptp.c | 4 ++-- drivers/net/ethernet/sfc/siena_sriov.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/sfc/ptp.c b/drivers/net/ethernet/sfc/ptp.c index a39c5143b386..797e51802ccb 100644 --- a/drivers/net/ethernet/sfc/ptp.c +++ b/drivers/net/ethernet/sfc/ptp.c @@ -648,7 +648,7 @@ static int efx_ptp_get_attributes(struct efx_nic *efx) } else if (rc == -EINVAL) { fmt = MC_CMD_PTP_OUT_GET_ATTRIBUTES_SECONDS_NANOSECONDS; } else if (rc == -EPERM) { - netif_info(efx, probe, efx->net_dev, "no PTP support\n"); + pci_info(efx->pci_dev, "no PTP support\n"); return rc; } else { efx_mcdi_display_error(efx, MC_CMD_PTP, sizeof(inbuf), @@ -824,7 +824,7 @@ static int efx_ptp_disable(struct efx_nic *efx) * should only have been called during probe. */ if (rc == -ENOSYS || rc == -EPERM) - netif_info(efx, probe, efx->net_dev, "no PTP support\n"); + pci_info(efx->pci_dev, "no PTP support\n"); else if (rc) efx_mcdi_display_error(efx, MC_CMD_PTP, MC_CMD_PTP_IN_DISABLE_LEN, diff --git a/drivers/net/ethernet/sfc/siena_sriov.c b/drivers/net/ethernet/sfc/siena_sriov.c index 83dcfcae3d4b..441e7f3e5375 100644 --- a/drivers/net/ethernet/sfc/siena_sriov.c +++ b/drivers/net/ethernet/sfc/siena_sriov.c @@ -1057,7 +1057,7 @@ void efx_siena_sriov_probe(struct efx_nic *efx) return; if (efx_siena_sriov_cmd(efx, false, &efx->vi_scale, &count)) { - netif_info(efx, probe, efx->net_dev, "no SR-IOV VFs probed\n"); + pci_info(efx->pci_dev, "no SR-IOV VFs probed\n"); return; } if (count > 0 && count > max_vfs) -- 2.33.0