Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2503058rwd; Fri, 19 May 2023 06:40:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7cip87d3YN9er7N6WHG2J7GT8EmCX5xxovZNSkkvgsD+FrHsOCtvlNa0XbIHJ6Aj0ZM88o X-Received: by 2002:a05:6a21:3a93:b0:101:962b:8dc5 with SMTP id zv19-20020a056a213a9300b00101962b8dc5mr2141656pzb.36.1684503610545; Fri, 19 May 2023 06:40:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684503610; cv=none; d=google.com; s=arc-20160816; b=KLKvIXsY3e47Ti81CwMnEYUBRbs9S+Q8vjGZDxVHixENafk+2rrXwrv7CNr4oGlvK4 RV4Lr8T8mABKMEcVPpMA/p99GPyHitolSYOsHkp33Lt6p/YRUJzpjpzpMbvS2C3noKaG ibao0RQ3bkWFX0z5zHpcooLoUWzCV9vXbLDU4wIp/SCfDLU4NvDcv5TvVpNH5HzoBBFT kwP+dIM898qD0SBnp39hQG3o94KROA2eaeJAxkQMBlwdGcJQKKouPvH8X7+87Rnr9Hfw mA3UFEmkmh2C+kObJvocEo50f7St55kx36UVbpCjOUk+JaUMv7Go86BSEz3yFagLysM+ ZTWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fASWcQQZFu9vJAgQoBF8AHHKBRfu7PRMfFGfAqrEr2E=; b=E5FdgCV9bfVM6U7dXZuK2H3dRf9O+m5L+qMDPPVsPL0jfgEohK2OuX/gricGT8HhPk Qj3SpwTNIBXEPJuokRKetwFQYw2+9JsV3JY/QUjMHRUgX5dbsaK3eTNz6vYnF29s05Bv 7Ek0WxqdhhO5SJkqVeVGGBu3EPguSjM0l4PkL3Q1Sv9AYO3/+kTEATIJaX54LxxUTjNv eZhojKiKILUY/pw66vqaWPiMJB/ybH198U8fBKQ75+hzvpORIpEqun9JSlcCfhZe0Wal Um7Ir+N999MVzlFLwqnU9wHSnk8xM1V8SVpLr7e5lv4zrBRf7vQiDxzuDDHGRDjQtcNu eBTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=I5lFAz6M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r11-20020a632b0b000000b0051b32aa267asi3498225pgr.671.2023.05.19.06.39.57; Fri, 19 May 2023 06:40:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=I5lFAz6M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231410AbjESNbV (ORCPT + 99 others); Fri, 19 May 2023 09:31:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231193AbjESNbT (ORCPT ); Fri, 19 May 2023 09:31:19 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D4A910F8; Fri, 19 May 2023 06:30:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=fASWcQQZFu9vJAgQoBF8AHHKBRfu7PRMfFGfAqrEr2E=; b=I5lFAz6MfIdiaABPErD7w+7M2B xwmf+C1bL/EsCujrpprezIWb4g2expSKqoYA+sR2iiGy0+FjLwEwtN36+37lNn29NOLBgZePp2mSI uOoHihrDOiN+Re5ZG8FlY4h/eiFTECkaas28R9trMRDBxe3/e8Aiv9DdtE+ydN1n9r2U=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1q00Bg-00DKTX-DY; Fri, 19 May 2023 15:30:28 +0200 Date: Fri, 19 May 2023 15:30:28 +0200 From: Andrew Lunn To: Alexis =?iso-8859-1?Q?Lothor=E9?= Cc: Marek =?iso-8859-1?Q?Beh=FAn?= , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, paul.arola@telus.com, scott.roberts@telus.com Subject: Re: [PATCH net-next 2/2] net: dsa: mv88e6xxx: enable support for 88E6361 switch Message-ID: <85c07e51-8a0b-4328-bab3-acad2ee104e1@lunn.ch> References: <20230517203430.448705-1-alexis.lothore@bootlin.com> <20230517203430.448705-3-alexis.lothore@bootlin.com> <9a836863-c279-490f-a49a-de4db5de9fd4@lunn.ch> <6643e099-7b72-4da2-aba1-521e1a4c961b@lunn.ch> <20230519143713.1ac9c7a1@thinkpad> <7419ffc0-b292-97c4-fee6-610a1a841265@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7419ffc0-b292-97c4-fee6-610a1a841265@bootlin.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > >> Ports 1 and 2 should hopefully be protected by the > >> invalid_port_mask. It should not even be possible to create those > >> ports. port 0 is interesting, and possibly currently broken on > >> 6393. Please take a look at that. > > > > Why would port 0 be broken on 6393x ? > By "broken", I guess Andrew means that if we feed port 0 to > mv88e6xxx_phy_is_internal, it will return true, which is wrong since there is no > internal phy for port 0 on 6393X ? Yes, that is what i was thinking. But i did not spend the time to look at the code see if this is actually true. There might be a special case somewhere in the code. But in general, we try to avoid special cases, and add device specific ops. Andrew