From patchwork Sat Sep 25 13:23:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 514626 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp2424731jao; Sat, 25 Sep 2021 06:25:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJVPVG+NYY7+mDZrBh/GXXtQ2j0T2qu9YDjaTe7nGzQ7sO5oJfb7OI+JHdbbdRve1wHYm+ X-Received: by 2002:a17:906:dbf0:: with SMTP id yd16mr16763302ejb.445.1632576343430; Sat, 25 Sep 2021 06:25:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632576343; cv=none; d=google.com; s=arc-20160816; b=Cig+dZRbHLx3ImGWxU0/zk1BxTELi8wEMxy56/RscLlgNbxrVmojKe0QKJR4N0tJEu 2/CH5GJUfdEhMCQHY2Y1rHZBozq5wE+1YQ4sejjYvPdRz9Rnbj0fH4rPgDjfakJ698CJ divqc/FVNTc5sY3KUQ3mACPYa4p1PPiUuLZ2JnEk/HVPTiQJ4jUK8MFvf8I7KRBdlBuF Om+mohQBR/KxZ89HrDFuvkJc0aVEAWJEx8tY3MtEbsf/nnwbJH3BgEzmMUhHZJMUyLxz bFBcLef92J19C2h0WNeYoxfXx/TmYBZwIA7BuGM1JwkxF6djPC/Zt0U059yazl4/5AIn 3GCw== 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=k04RTdRCY30lSM9g5jnyDip9cxAIKlIITWf3Cit+LsE=; b=w9XGua70N8SDOFn1tBXhcdvZJpvW4chXtWJOO4tEIclqLTFiLT37mtswDT0YcBOA8c PLwdEPVxO8J0rxZYSdFn6qUEUNO46V6jH52mQ9RikNrwLqEGGc7+AZvPajhKiUoKH4FF OUSAwoj6vw+39FOJ513AESHwKZ8ienabUGkPzmKAtrV090X3ryILJucNn71QIHGsdTwz 3wKfA4gwP0SaK9faXfYFxS/Fi/crmI/n9tzCgyKfUV1hn4K/+gn0DIKMqtJ91k3g+KJL OExdSDzXW9BOoGkJXdEKrxD7HChIry5gMGRTmUWqFVY65/nbb/8yS5QvGYPfQb224sBU BWCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ruK58Zs3; 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 y17si11435416edm.70.2021.09.25.06.25.43; Sat, 25 Sep 2021 06:25:43 -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=ruK58Zs3; 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 S245667AbhIYN1R (ORCPT + 8 others); Sat, 25 Sep 2021 09:27:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245633AbhIYN1O (ORCPT ); Sat, 25 Sep 2021 09:27:14 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C2BBC061570 for ; Sat, 25 Sep 2021 06:25:39 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id y26so13532843lfa.11 for ; Sat, 25 Sep 2021 06:25:39 -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=k04RTdRCY30lSM9g5jnyDip9cxAIKlIITWf3Cit+LsE=; b=ruK58Zs3GW0TXGXcuD6HBerLFVCWybbZjClbhrD3/Ybfpzm4J8XFVhozMR2VzO3uzG CeMQetz+eCArXouX69lZ0envKzNZSI8rfU+uNC02Nx5DwFlJsrCBe6awJUr+VMHMC9lZ SpqsxbkR28ycW6Jvp4JGGz9xqGjaY3TtKOy2gIKpnbAyBlgv2I7rwYs9yekoAZ+soC7C LS5pVsZPF6DTAMfX47wHuv0MWxNSDT6RAVULAaLCF7Jdkr1H7RRjFIPhzFTinvBG+ZFW 73kJtujAi6SibismDS/QdvOxjDfFrsIpoP8NgcRSCbdEZlJFDabEbMDpmUQi10SRe2qs pWrQ== 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=k04RTdRCY30lSM9g5jnyDip9cxAIKlIITWf3Cit+LsE=; b=S4kwAFx9HxCYxRYpsNorAcBvX5YUik+2opuZn6a0g/IvBmamg1RgEzJLWoBRR8ykbY ubjeaEV1r8n8jMhv7fEhZ79wk1QWgfZZ2gvU8NJ8jraVLcP50f+MFCNsWGTocGX37acr QyQP30r3Cbq8MmsBrsSOrVn78+w8vk8eX1VCQU9CW7qUdcUoozGyevDy/sAU6931WTcS lZE0/7b7Qh93Dm9wFmy6fZ68NUeps61VUk134mbubc3MYCghQaeMvki9WxklSQOVMGgY 65KqS285ISqWy9/O5vRJWkSKOfaBoDIM3i+05PqqE81vmhIsFxHLq/GEkqFKypBXmSbX Y+lQ== X-Gm-Message-State: AOAM531tJMyN4QPws4p/id0iNQHFK9gqH7rNTU42u6khlYN/Y4bYEyVl YkvTOVdvTAcX69w/Zz2YOwvNwA== X-Received: by 2002:a2e:9f4f:: with SMTP id v15mr17125288ljk.468.1632576337977; Sat, 25 Sep 2021 06:25:37 -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 y25sm199590ljj.23.2021.09.25.06.25.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Sep 2021 06:25:37 -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 6/6 v6] net: dsa: rtl8366: Drop and depromote pointless prints Date: Sat, 25 Sep 2021 15:23:11 +0200 Message-Id: <20210925132311.2040272-7-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210925132311.2040272-1-linus.walleij@linaro.org> References: <20210925132311.2040272-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: DENG Qingfang Reviewed-by: Florian Fainelli Signed-off-by: Linus Walleij --- ChangeLog v5->v6: - No changes just resending with the rest of the patches. ChangeLog v4->v5: - Collect Florians review tag. 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: Alvin Šipraga diff --git a/drivers/net/dsa/rtl8366.c b/drivers/net/dsa/rtl8366.c index f815cd16ad48..bb6189aedcd4 100644 --- a/drivers/net/dsa/rtl8366.c +++ b/drivers/net/dsa/rtl8366.c @@ -318,12 +318,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); @@ -356,7 +353,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;