Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2790550pxb; Mon, 18 Oct 2021 01:45:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbVb8WAxP3CW89v1vt9DZtePA9dIzqH2HaebUuWCs6zuqqosxoyiXAoUOjopILwC1QeuqD X-Received: by 2002:aa7:88cd:0:b0:44d:d844:4f55 with SMTP id k13-20020aa788cd000000b0044dd8444f55mr3653598pff.81.1634546721810; Mon, 18 Oct 2021 01:45:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634546721; cv=none; d=google.com; s=arc-20160816; b=KVLmCWaLbVifSIuoHMDxE4ebjMpbMU4Uh9wZat0omXoeMzVvFll0/lR1IRDSxnxU5w KzRHJ/sLwd8dcQw1yMQ1n7UNgaB4lF28SOgginHl8XP54RhEn1/BpGLjr68oigcLLuNf Z6Z1F3huJu3eOJZR5rfkUX1z9YnX/TUxxEfCoYLhZTeQ+zTBe023+s3Di2eEfkpejANl q5qw5E7EUCAd5B/P37PDZF08R9DkbM36QQ0yJ+YGosPBsoO4FZ9kS5Ih9LM8PQ6Zb4Gj eq84vQN0WmSOvNRgFJ4G0kXqoojOdj8GllrYLvTqFufHxJ1HUqkBV0R/UaGFt4XCIjD8 VL2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-disposition :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=DAyRWJeM7WcXBmJfC8EYVSatAo1tUAa025hjrvqygj4=; b=p6V/CJKg7WxIhZ000uaCO3sZFBE4tThYApQyktWWLuPDGA6yctNzFrslkTpJmFDDLy p33kMiDz+SiQ+vG4BKKOnfd9ZqIsYkvRR97tPtYpYOHAxfq4lAUmUnu8Er14nMJhmy4Z sjkdZ/FOnoY46/Hgec9ROe8uqS84JJS8TK2Jh7O306YOY2Ih1jwPazqT9p3UiEtawPs4 Ij2mILcTjbNTQDVQiqFgHDuQmHAiIxERtll5oGTAhb+6VHl6Kw3ybTuO/jeC+xb5/Ftm +3nRi3FpzjmrhlO/g796L5+oVKCTvlX3Xrhprj+qdgWeMziGA69PJ2sAwJrkCOs8qT+B CdJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pjkO0Mkd; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lr14si34872073pjb.91.2021.10.18.01.45.07; Mon, 18 Oct 2021 01:45:21 -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=@gmail.com header.s=20210112 header.b=pjkO0Mkd; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231202AbhJRIoy (ORCPT + 99 others); Mon, 18 Oct 2021 04:44:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230006AbhJRIou (ORCPT ); Mon, 18 Oct 2021 04:44:50 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D6A0C06161C; Mon, 18 Oct 2021 01:42:39 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id ez7-20020a17090ae14700b001a132a1679bso4113466pjb.0; Mon, 18 Oct 2021 01:42:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-disposition:content-transfer-encoding; bh=DAyRWJeM7WcXBmJfC8EYVSatAo1tUAa025hjrvqygj4=; b=pjkO0MkdRmY5FkfWW+EfXlo7coSyNA0UvLvaremgQ0bVxp1yk8zUfFBuLWo3vptr6g a8MwQHjz+iMGgp1Leq6G2BYTatimamqvnfcfKKxI1+WbcOLJAB8UBAp+r9iZ5Xg+mHSa 1NuHjrmSUkaD9IKUixkCzMpvwe/0C+iOgTBN3CjWMmQzjMuVnXenqGHQfdlxzDe6CKWv z1SeLPMNTGiSepavXDsSHZoDc5NkxoPsQZ9/3ffhRep3fA8UPncN+0RfiGU+6TD4TOHb rscUJw5JZ8NQZ6ea+J42gVaBQREDiL/TFnYprSWPeYQ0fzOXDc22Z++8CoKi5p6kNNG5 JLwA== 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-disposition :content-transfer-encoding; bh=DAyRWJeM7WcXBmJfC8EYVSatAo1tUAa025hjrvqygj4=; b=ox0S+115MIIDF4VCRnN896peLxd1sLMtWqknl/gyqJ+2MAE5SQq+keSpgkizi0lwI7 GihMIh8sggYtsb9SZmyEhlnRcZfYcWoY6toa57fjmpLmnLoP7GAvRFcdpgdUlV/EKc0O 1cQyUmxec+I8WvyWzvlw3gWxsq2tLZAcHEG8qu8lOfeBUR3oeimPXqG8bF/LhP9AWH0y m7+AMGNo6rXhn7naFPquJL4meVA4kBzMFGuRj6t6HSQ5riTH5wxkpuwc1mpK4NWhsNTA lGv83b+t0fget060G2iSu7+ZoHHd//s+GcBNseOdnJWofXiwdQJtW0YCNk68usmLhae7 fGxA== X-Gm-Message-State: AOAM531CbJ+G0NZFYQZ2AG9WYc04IbyigrList1WWBlhJTtsWs0aqmWr gJPsoXj6SsRqWgY/VdCpz6o= X-Received: by 2002:a17:90b:1b49:: with SMTP id nv9mr31231964pjb.134.1634546558838; Mon, 18 Oct 2021 01:42:38 -0700 (PDT) Received: from localhost.localdomain ([171.211.28.7]) by smtp.gmail.com with ESMTPSA id x13sm11727906pge.37.2021.10.18.01.42.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Oct 2021 01:42:38 -0700 (PDT) From: DENG Qingfang To: Florian Fainelli Cc: Sean Wang , Landen Chao , Andrew Lunn , Vivien Didelot , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Matthias Brugger , Philipp Zabel , Russell King , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH net] net: dsa: mt7530: correct ds->num_ports Date: Mon, 18 Oct 2021 16:42:30 +0800 Message-Id: <20211018084230.6710-1-dqfext@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: <20211016062414.783863-1-dqfext@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 16, 2021 at 07:36:14PM -0700, Florian Fainelli wrote: > On 10/15/2021 11:24 PM, DENG Qingfang wrote: > > Setting ds->num_ports to DSA_MAX_PORTS made DSA core allocate unnecessary > > dsa_port's and call mt7530_port_disable for non-existent ports. > > > > Set it to MT7530_NUM_PORTS to fix that, and dsa_is_user_port check in > > port_enable/disable is no longer required. > > > > Cc: stable@vger.kernel.org > > Signed-off-by: DENG Qingfang > > Do you really want to target the net tree for this change? Yes because I consider this a bug fix.