Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp281121pxb; Sat, 21 Aug 2021 02:27:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJiy7n5K8M48fZ/BnWVDTi75Snih2Yxk3mRdyCf+GmWqZdBRr0WTKYLQ5BRrZtTsIvOOvz X-Received: by 2002:a02:cd09:: with SMTP id g9mr21103983jaq.87.1629538036265; Sat, 21 Aug 2021 02:27:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629538036; cv=none; d=google.com; s=arc-20160816; b=am8oaxpHsrIImFheqecAoEU30mgaGqKLXx2MvId2bp7HTkQv917H+QR0Kox6jAJzMJ Yj45x3c9eFyFWkwrWnd2EOywUF7UFz5A1Q/I09ZRfz6drv6tEvLIl4ljfdxOB7UdxBGL Au61RW0MTNZXSScMhrXS/O4oy+1YW+MVP18TJzwSLyUNzw6sfBQih/15juvBSNTOIKVf 549TAf60WWZIx2Ag+KFALuxxCLQegmJ2BMhhc6MhGvSGtfr/Oa+xHM91dLcdSzRSKTuN u9JwuE/x8cTzGYGt4utTqlP0KOnrPY0sVpzp6aob661Tj9Ra1T/aQSqqbGdHfHe08JS6 /vZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=PpogMjG25YH0sNXAh7J5UreXYmDYD5n6ptf5vNIjRo8=; b=V3CtRGR56dxJh5luTpVY1/N/Ub2sxa9UXX7KVqE+/6NzgCKnJY0ktJtchbF+W1L34e dE92v7H4JiU+l5iR4Mg2RsBcH6dQ4wJ+mzbO+NhpEawtfmPH8yRSC5AQDwW6MpCVtWJ8 bws52rDxlXibAY/gI9catbrIzIHzJjtF+uX0YXYDKc0bMzYQ2iG5BbZB0wA4Fn1UPe+0 Hg1/X2fReKW3cucCRppJTEbeEBwXhPjjY3UAAeu4yIa1Bw+lPKh+mn3MI7UpL/tv07/C WEOdwYwkWGLjMrP6YoGGr4WO2VT2UhURpnmEaamKuODGfsWWFtV9Lb1j+/pIYI917WTL 5mGw== 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 e28si192356iov.1.2021.08.21.02.27.04; Sat, 21 Aug 2021 02:27:16 -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 S233730AbhHUJ0C (ORCPT + 99 others); Sat, 21 Aug 2021 05:26:02 -0400 Received: from elvis.franken.de ([193.175.24.41]:41935 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233306AbhHUJZ7 (ORCPT ); Sat, 21 Aug 2021 05:25:59 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1mHNFe-0005Uw-03; Sat, 21 Aug 2021 11:25:18 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id D26F9C086C; Sat, 21 Aug 2021 10:42:05 +0200 (CEST) Date: Sat, 21 Aug 2021 10:42:05 +0200 From: Thomas Bogendoerfer To: Vladimir Oltean Cc: Alexandre Belloni , devicetree@vger.kernel.org, UNGLinuxDriver@microchip.com, Horatiu Vultur , Rob Herring , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH devicetree 2/2] MIPS: mscc: ocelot: mark the phy-mode for internal PHY ports Message-ID: <20210821084205.GD3555@alpha.franken.de> References: <20210819170416.2252210-1-vladimir.oltean@nxp.com> <20210819170416.2252210-2-vladimir.oltean@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210819170416.2252210-2-vladimir.oltean@nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 19, 2021 at 08:04:16PM +0300, Vladimir Oltean wrote: > The ocelot driver was converted to phylink, and that expects a valid > phy_interface_t. Without a phy-mode, of_get_phy_mode returns > PHY_INTERFACE_MODE_NA, which is not ideal because phylink rejects that. > > The ocelot driver was patched to treat PHY_INTERFACE_MODE_NA as > PHY_INTERFACE_MODE_INTERNAL to work with the broken DT blobs, but we > should fix the device trees and specify the phy-mode too. > > Signed-off-by: Vladimir Oltean > --- > arch/mips/boot/dts/mscc/ocelot_pcb120.dts | 4 ++++ > arch/mips/boot/dts/mscc/ocelot_pcb123.dts | 4 ++++ > 2 files changed, 8 insertions(+) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]