From patchwork Thu Dec 3 21:46:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Van Asbroeck X-Patchwork-Id: 11949719 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-20.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C626C2BBCA for ; Thu, 3 Dec 2020 21:47:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CF9B5221E3 for ; Thu, 3 Dec 2020 21:47:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502126AbgLCVrk (ORCPT ); Thu, 3 Dec 2020 16:47:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502110AbgLCVrj (ORCPT ); Thu, 3 Dec 2020 16:47:39 -0500 Received: from mail-qv1-xf43.google.com (mail-qv1-xf43.google.com [IPv6:2607:f8b0:4864:20::f43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A59C6C08E861; Thu, 3 Dec 2020 13:46:50 -0800 (PST) Received: by mail-qv1-xf43.google.com with SMTP id ek7so1784839qvb.6; Thu, 03 Dec 2020 13:46:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=+E+uz7zuA1WB6pwsgKOtfhChnQQmpTGyAUV3IiWnnIA=; b=VoI87Vp1GJvO6oN9QCkaZxu/0CILLPQ5DYwpQ//SNKkXVXzdiazn2O7O3pDPr8IfS8 cELyjT5qIRjIgTw1QBnhU80eNOGQ+Ko/DzP31V1Cr9lXQ1trWzw1YDZpD/Ujb8KU+Dy4 xTx5uLcivVMG6EIUi2C1s1KstTPjUkjWKjXve/Q68i44idW0xo6lm1vj3oIPGn8wE/TB z99beYMIr3dPHqY0YnsH9sKO2pvILFZHPMCnps+oOGpLF40IR8DSCbgsLUtvBkAXagUs XrCZTw7j7A1yRvjLBdhPt2OMowx+HhW+fcmuR4ydaO2iXHtaqoCC0fzwl0Q9UTrT6thW PIzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=+E+uz7zuA1WB6pwsgKOtfhChnQQmpTGyAUV3IiWnnIA=; b=mQIbsdnlfeEt2bUWqxe7GvL3Ly9SnSI0ciXy122MvQODCyCpmh1Maxj13yStMTUBP/ wzGZ8iodWtnrfRser7+l2bHlX4xMwrO8z75moUM6YzfX60LotYe3g3BtsvzNQNlZ7Fwy KTqhh88VIcqeVvfISS117iX0PWmx8PHkNgpaGofNsc6HFznnMrMxjHOO5BGRgMju6cxR nIC/AjCkWhXf42rSoZyatHhbl4y+h9Ywe2Vh1guexpAGg7oDqRkFsL4rVTHIyYH9de9R Oonq+5Zx7bCrC/ta3vnVjMc2PTv/FYyd1Y6zAPmTSWerFfG9JFaMme/9IqwIwhF8Wzh8 qZqQ== X-Gm-Message-State: AOAM532J31vRmgBhlZPAxd8yfNqfC7GwvaYWYMf2km/FEGHbWUJiieS6 1eQ6TZHxUC2vdrlc+Ew3ekg= X-Google-Smtp-Source: ABdhPJxhK8uB4IT40UiGaz7gyVsBmPBETd2FXW2E/lVWEyHrKZmfKWve60o9UlhOY3A9lbOWzNDdNw== X-Received: by 2002:ad4:5bad:: with SMTP id 13mr1195018qvq.23.1607032009842; Thu, 03 Dec 2020 13:46:49 -0800 (PST) Received: from svens-asus.arcx.com ([184.94.50.30]) by smtp.gmail.com with ESMTPSA id d66sm3018268qke.132.2020.12.03.13.46.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2020 13:46:49 -0800 (PST) From: Sven Van Asbroeck X-Google-Original-From: Sven Van Asbroeck To: Woojung Huh , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , David S Miller , Jakub Kicinski Cc: Sven Van Asbroeck , Marek Vasut , Tristram Ha , Microchip Linux Driver Support , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net v1] net: dsa: ksz8795: use correct number of physical ports Date: Thu, 3 Dec 2020 16:46:45 -0500 Message-Id: <20201203214645.31217-1-TheSven73@gmail.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Sven Van Asbroeck The ksz8795 has five physical ports, but the driver assumes it has only four. This prevents the driver from working correctly. Fix by indicating the correct number of physical ports. Fixes: e66f840c08a23 ("net: dsa: ksz: Add Microchip KSZ8795 DSA driver") Tested-by: Sven Van Asbroeck # ksz8795 Signed-off-by: Sven Van Asbroeck Reviewed-by: Florian Fainelli --- Tree: git://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git # 39e367766fe1 To: Woojung Huh To: Andrew Lunn To: Vivien Didelot To: Florian Fainelli To: Vladimir Oltean To: "David S. Miller" To: Jakub Kicinski Cc: Marek Vasut Cc: Tristram Ha Cc: Microchip Linux Driver Support Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org (open list) drivers/net/dsa/microchip/ksz8795.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/microchip/ksz8795.c b/drivers/net/dsa/microchip/ksz8795.c index 1e101ab56cea..367cebe37ae6 100644 --- a/drivers/net/dsa/microchip/ksz8795.c +++ b/drivers/net/dsa/microchip/ksz8795.c @@ -1194,7 +1194,7 @@ static const struct ksz_chip_data ksz8795_switch_chips[] = { .num_alus = 0, .num_statics = 8, .cpu_ports = 0x10, /* can be configured as cpu port */ - .port_cnt = 4, /* total physical port count */ + .port_cnt = 5, /* total physical port count */ }, { .chip_id = 0x8794,