Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp23653pxk; Wed, 16 Sep 2020 17:49:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCPWHJ1kesaHzffAlqbAWh/EGHY2A0gNAi6TeMIkFQa5MM8vDGdgilEeoPkPMNV0/0PKY9 X-Received: by 2002:a17:906:934e:: with SMTP id p14mr27646422ejw.348.1600303744079; Wed, 16 Sep 2020 17:49:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600303744; cv=none; d=google.com; s=arc-20160816; b=jgugiNEK2Zlv8wIHOelB0n2YPsAmcR1IbMqPqsjX4hMjbilsAeCIx1XiyG5i0Sjxr6 i35cz5w8mNQw3DZ98A8it72gQ20nD0PjV/pADnRcN8Oe2koyo3bLR/COclhTE0aLRgzN AIvpKu+YxgcTZmByM+63+T/90XkVhiyvEaF87hKRxKTFZPgMbAwwRS2r2tbsrdS+D/YN z+MLWD5nnDK6DIEq6fAxroyfQ7cqMDBt+bCBatVW7A4GrXBhjBqMIzmng2RUu9qEtCcU NZkbDZQ1uP5w0AQcawEvnXxMX9KU0JWisH+K4cKDJ5V7ZTKjDXshIsOXRfzl0uJbQfvZ rTDQ== 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:from:subject:cc:to:message-id:date; bh=gGmE9jFkO+PDa19mbVWgzSk+SbxH0VUAMpXWPUs/QEw=; b=PU/DIHWHmDxi7ON4sQCzx1lgpiJCCOMj4lgWGhw7YQpDBqak4WWBSZd+Fwo0ZKeOJM 0WLv0XuUth5Ujy6tpB3Si913K2lLp9se0eD2+pOeuErxinko84qWUmDWDVOF9oBFbirw eMG6i+9PSkiaWP97smTE+6LqpY1GBn7qocSMFriJdH0Ll3yA5cXqoPmLxZ4AtPLdRfds N4XELH+sG+qsX/q9OYqcKYcWItq/12ma9DyE1Ej3YyBaoAVlruqVhQcPXdatPzUC4JxX wvsfDMVZ1WDjtA3oSZfFvENdSq4b99NY0VCg8kaSwYDuqdR9y6zzyt+IPe9lP68yvvtv /U7Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r25si12591129ejz.567.2020.09.16.17.48.41; Wed, 16 Sep 2020 17:49:04 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726196AbgIQAr3 (ORCPT + 99 others); Wed, 16 Sep 2020 20:47:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726004AbgIQAr2 (ORCPT ); Wed, 16 Sep 2020 20:47:28 -0400 X-Greylist: delayed 491 seconds by postgrey-1.27 at vger.kernel.org; Wed, 16 Sep 2020 20:47:28 EDT Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62CFBC061355; Wed, 16 Sep 2020 17:47:27 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::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 975BB13CB9FBE; Wed, 16 Sep 2020 17:30:37 -0700 (PDT) Date: Wed, 16 Sep 2020 17:47:23 -0700 (PDT) Message-Id: <20200916.174723.110340106752086972.davem@davemloft.net> To: matthias.schiffer@ew.tq-group.com Cc: woojung.huh@microchip.com, UNGLinuxDriver@microchip.com, andrew@lunn.ch, vivien.didelot@gmail.com, f.fainelli@gmail.com, kuba@kernel.org, codrin.ciubotariu@microchip.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] net: dsa: microchip: ksz8795: really set the correct number of ports From: David Miller In-Reply-To: <20200916100839.843-1-matthias.schiffer@ew.tq-group.com> References: <20200916100839.843-1-matthias.schiffer@ew.tq-group.com> X-Mailer: Mew version 6.8 on Emacs 27.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [2620:137:e000::1:9]); Wed, 16 Sep 2020 17:30:38 -0700 (PDT) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthias Schiffer Date: Wed, 16 Sep 2020 12:08:39 +0200 > The KSZ9477 and KSZ8795 use the port_cnt field differently: For the > KSZ9477, it includes the CPU port(s), while for the KSZ8795, it doesn't. > > It would be a good cleanup to make the handling of both drivers match, > but as a first step, fix the recently broken assignment of num_ports in > the KSZ8795 driver (which completely broke probing, as the CPU port > index was always failing the num_ports check). > > Fixes: af199a1a9cb0 ("net: dsa: microchip: set the correct number of > ports") Please do not a tag into multiple lines. Especially do not do this with Fixes tags as people will do string matching on it. > Signed-off-by: Matthias Schiffer Applied and queued up for -stable. Thanks.