From patchwork Mon Sep 13 14:43:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 509796 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp669334jao; Mon, 13 Sep 2021 08:35:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvxCJtVeoUA3/OfyNV3BhsiCg/ZEzruwWySPlZKawTHv1mA5/Ob1K+hSVRk8ONiF6etnJJ X-Received: by 2002:a17:906:39cb:: with SMTP id i11mr12501392eje.168.1631547300773; Mon, 13 Sep 2021 08:35:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631547300; cv=none; d=google.com; s=arc-20160816; b=uOYO9YFsP6Oyo6+nCkw/Cu1O54+v/Cz91fUjCbIjtMuECV/JEBkgaseSueE0ClYtxI ZhXP5vy+LOy9rbTbSTl8b9Efnar/7RB7z9H3AqSuAomAWH7IlUn2H4vYqWW2pjD8u2hs 7DPSksSCelsnlRvqYz0txfTFOx0qu+hu6hs429tc/w7UPo0H3qqPqii4x6S36kg6U989 ef/MbtaGJSxhNYfNcybFcm3VCYJt8+OubGCrELahkzVPREiKiJEVKhaMxD3/HTxkEYjH VjbRC73KJYJIUXEzQEp48vCt9e8kDWUwvOM7EBfT0qhi258UYKixVeyO9iv68T0fvryV 8yAw== 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=TW72UxNYbzv4qy0lUe963kdNXAzTIo48VP5lfoV3wMY=; b=fK2daE7SQRWBUO7aIrPQLK/j6BzZzd22IM+6POqAl9vbiQqnVGAWZ10IxYSFANlO+w NILTUMAvu9FWWvmOBcbq72fRxi2h41Wq8uFtBJzOwTpKOgvnzsbkvXBXw67A4aAq/7YD TbXrC6KovOu8Hzu4GhU/2C8FCve8A+YP0U1NNxSIKermZdu0LVhcFaq2KdOdzgpGsAtE o6F0+lcq132Huq3K1EvdLrw4jG5cw5H334Yhb/oi61k0S5QoHxmcFsK3rsRE8ubUz1RA crNqQSr7BZND6LKJFOtEMUwn+SUptmXoWFHOuvkuHq/IRllMKprmpsFGbu7e4NQpmHpS Mzpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D6tgEkIX; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e1si7844974eji.452.2021.09.13.08.35.00; Mon, 13 Sep 2021 08:35:00 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-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=@linaro.org header.s=google header.b=D6tgEkIX; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232830AbhIMPgL (ORCPT + 8 others); Mon, 13 Sep 2021 11:36:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241181AbhIMPfa (ORCPT ); Mon, 13 Sep 2021 11:35:30 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A874C12C75D for ; Mon, 13 Sep 2021 07:45:45 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id bq5so21629068lfb.9 for ; Mon, 13 Sep 2021 07:45:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TW72UxNYbzv4qy0lUe963kdNXAzTIo48VP5lfoV3wMY=; b=D6tgEkIXRm/WemOYu7la3Im2tL8nIEMHEpcTJD/ZI4zbaFdyNpKjcqIjwLE+408xe9 DK8lwxI01vyfBTT3sYWa8tmfQk7Rd2tv1CyHu0CRTmJoBcQaSmZVc5rDPU3VW7qN1BYq 5Ls5O7P/XhcnV8wfEW10uH4S2OGzeriH/s54KHKsUo8ih/WpyNhRKnBK60h4q7mW9miw O0YVk8yMGc5iUFvpGtJBZoIx48yn7weCp1Gnva37+EuXcbHaHHo5DwSSuYFRl3EpJI7h HTLWFUKL8lLjH/SD9XPo0xP0OSyPXTHAdDt8vfI3YLJ4n7tNKEZ7XO5HQM9ewlhYtT11 eLrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TW72UxNYbzv4qy0lUe963kdNXAzTIo48VP5lfoV3wMY=; b=wE2535mBnvLOE6jZN4ZOMPeSBZW/hY88++AUHPnlqGPg9/PMWwl0nh5rIsR8u1wpIl OS/40BibnmUQmB55/ZYYWrhPlb9slsIFPYwBet2VpfgJi/xOQhNQqJIIWNo/oIbQjWUS 7I1zbo8VTzu3WTodVxuoXODPPRus89/Is0BDxSOrPGGaOjkD/wQUdCwsE5fZvxXWGZHJ 0z+CjBbDvNYaJ8C/w0S6VNlE7+qS3Z/u8FQXxQK6q9sNWzoe56NuSXzLrQQ/wDF/ZhaI 4TiQ6mOei9WjF0vBz0+L1L3fu5W0VtUFrLOuqowVGQn17oN33NLD9TaIY/Yrbr1h6qWs PkeA== X-Gm-Message-State: AOAM531GV/sloJwLhQkttbEdhUkwNu5Yr7G2VUJaucTbc/ITeOpYamwE nRYe9xqV75axKR7hgJEK2ItPHQ== X-Received: by 2002:a05:6512:2213:: with SMTP id h19mr9371515lfu.598.1631544343759; Mon, 13 Sep 2021 07:45:43 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id i12sm849825lfb.301.2021.09.13.07.45.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 07:45:43 -0700 (PDT) From: Linus Walleij To: Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S . Miller" , Jakub Kicinski Cc: netdev@vger.kernel.org, Linus Walleij , Mauri Sandberg , =?utf-8?q?Alvin_=C5=A0ipraga?= , DENG Qingfang Subject: [PATCH net-next 8/8] net: dsa: rtl8366: Drop and depromote pointless prints Date: Mon, 13 Sep 2021 16:43:00 +0200 Message-Id: <20210913144300.1265143-9-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210913144300.1265143-1-linus.walleij@linaro.org> References: <20210913144300.1265143-1-linus.walleij@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org We don't need a message for every VLAN association, dbg is fine. The message about adding the DSA or CPU port to a VLAN is directly misleading, this is perfectly fine. Cc: Vladimir Oltean Cc: Mauri Sandberg Cc: Alvin Šipraga Cc: Florian Fainelli Cc: DENG Qingfang Signed-off-by: Linus Walleij --- ChangeLog v1->v4: - New patch to deal with confusing messages and too talkative DSA bridge. --- drivers/net/dsa/rtl8366.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) -- 2.31.1 Reviewed-by: Florian Fainelli diff --git a/drivers/net/dsa/rtl8366.c b/drivers/net/dsa/rtl8366.c index fd725cfa18e7..cf2e9d91d62d 100644 --- a/drivers/net/dsa/rtl8366.c +++ b/drivers/net/dsa/rtl8366.c @@ -325,12 +325,9 @@ int rtl8366_vlan_add(struct dsa_switch *ds, int port, return ret; } - dev_info(smi->dev, "add VLAN %d on port %d, %s, %s\n", - vlan->vid, port, untagged ? "untagged" : "tagged", - pvid ? " PVID" : "no PVID"); - - if (dsa_is_dsa_port(ds, port) || dsa_is_cpu_port(ds, port)) - dev_err(smi->dev, "port is DSA or CPU port\n"); + dev_dbg(smi->dev, "add VLAN %d on port %d, %s, %s\n", + vlan->vid, port, untagged ? "untagged" : "tagged", + pvid ? " PVID" : "no PVID"); member |= BIT(port); @@ -363,7 +360,7 @@ int rtl8366_vlan_del(struct dsa_switch *ds, int port, struct realtek_smi *smi = ds->priv; int ret, i; - dev_info(smi->dev, "del VLAN %04x on port %d\n", vlan->vid, port); + dev_dbg(smi->dev, "del VLAN %d on port %d\n", vlan->vid, port); for (i = 0; i < smi->num_vlan_mc; i++) { struct rtl8366_vlan_mc vlanmc;