Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp7486223ybn; Mon, 30 Sep 2019 14:49:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwv2QyWaM1FG6jovHnabekpkZf0LD+j74dLODLyQjiYI26IfqysrQX7pUKxy+iOP5VLWtbQ X-Received: by 2002:a50:91b1:: with SMTP id g46mr21664874eda.255.1569880161290; Mon, 30 Sep 2019 14:49:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569880161; cv=none; d=google.com; s=arc-20160816; b=t7AhTJXBJwxmjaiytlD0UC+IuKQvXpjAx3gQ3B5a9kZEGdpt7JPCb7M79MczX5RZUS OoobEkDaT31CNA3dvJH4zlYAaCYU5MseSCKwnLrRt/h0/+iMABxfwO70MYZrsPlfo2qF kvWg3C94CuY/iN+KLEhh2cTGiD9tQ1CVgu9/Q329L5+Bj4stEUitlzdUu5pXIt9XqaVU qXGTFzfDP1EwImuknueDpKtUxJHjKAqIx/VUpVi0iyxDi1V5p5AvDT4Pf1kzjOWmCtyv Buvl94K5UOUrnt6f5Iyos/V50HYIQ1BM9e4m5CP5TG63xw1xTv2FM9GPkHgcFcDOFLcf 6sQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=+YWAtzoBnEztAQbDDCFKRfgmzyiwGjPbGFlYN1yog1o=; b=Sm3sWAVnul7TYwdqKfgPXbIUb8irXnzQnkL5dIs2aymAv2aVBAenoNOrDgquarr29D NLiCW8u4xNMOP5FvhnFiVPUllPJfqzm+JddLdkXsodD4i7a2Q9lDYw3nPYHF7Q9vp6gf W8cIuyqBOW2WHRxA64NHd9f3gH59ckXwkE8QyBTlgEj4NdJJ/1m8mfcdQNCSNVW22A5R sVmOQzhccZVzpeorSj9cnbrFusFNGxBI4JbU0nDPHr7xoZjIjoWOaDGwAyMAGqMk2lb/ qm2ory0JWhxvP3PVYEczKybuulcNBtzmTBfz+EvUXmsr/jNDH1AEXn5Z3+8nCQ7GnEGD Mtjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v12si8174497edf.212.2019.09.30.14.48.56; Mon, 30 Sep 2019 14:49:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732196AbfI3Vq0 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 30 Sep 2019 17:46:26 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:39192 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726314AbfI3VqZ (ORCPT ); Mon, 30 Sep 2019 17:46:25 -0400 Received: from localhost (unknown [IPv6:2601:601:9f00:1e2::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id C994C15435B54; Mon, 30 Sep 2019 11:06:54 -0700 (PDT) Date: Mon, 30 Sep 2019 11:06:51 -0700 (PDT) Message-Id: <20190930.110651.1802452095339417928.davem@davemloft.net> To: michal.vokac@ysoft.com Cc: andrew@lunn.ch, netdev@vger.kernel.org, vivien.didelot@gmail.com, linux-kernel@vger.kernel.org, f.fainelli@gmail.com, hkallweit1@gmail.com Subject: Re: [PATCH net] net: dsa: qca8k: Use up to 7 ports for all operations From: David Miller In-Reply-To: <1569488357-31415-1-git-send-email-michal.vokac@ysoft.com> References: <1569488357-31415-1-git-send-email-michal.vokac@ysoft.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-2 Content-Transfer-Encoding: 8BIT X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 30 Sep 2019 11:06:55 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michal Vok?? Date: Thu, 26 Sep 2019 10:59:17 +0200 > The QCA8K family supports up to 7 ports. So use the existing > QCA8K_NUM_PORTS define to allocate the switch structure and limit all > operations with the switch ports. > > This was not an issue until commit 0394a63acfe2 ("net: dsa: enable and > disable all ports") disabled all unused ports. Since the unused ports 7-11 > are outside of the correct register range on this switch some registers > were rewritten with invalid content. > > Fixes: 6b93fb46480a ("net-next: dsa: add new driver for qca8xxx family") > Fixes: a0c02161ecfc ("net: dsa: variable number of ports") > Fixes: 0394a63acfe2 ("net: dsa: enable and disable all ports") > Signed-off-by: Michal Vok?? Applied.