Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp775243pxb; Tue, 5 Apr 2022 22:49:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdeZOJJnutmw0ZerEKs73W44Xd9Q8rxiITxm0/qMaGoUc6ueqUyKYcx3+fUfVUdcVqO+2a X-Received: by 2002:a17:903:1212:b0:156:3ddc:84bd with SMTP id l18-20020a170903121200b001563ddc84bdmr6861582plh.70.1649224162482; Tue, 05 Apr 2022 22:49:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649224162; cv=none; d=google.com; s=arc-20160816; b=hBGKwj8eFoC2ohKzm7fbQ/e1WbTGmE3iBcoLJIgQNCfFyLw+m5gofREcXFhwGCkClg cKH9kTTqICWnm+WfJyinOfY0ZnXKt1zdks9cOyK8DJ7HqV/WXGhuR7f3NvH7xZQhayer J+M8RNIfNcB07b6YxsjCMzTrUej7fBLKWYHX3t3DODiu+e4dZrLTck1VbBIZcSwbhDGI oOj9hizcc74KliBxE+zSpfJr4iqQyn47IhT1l/j1wY0cPvp1mC/O9fFYwk5tRC7EVxaX 7Cs1LO7O85N1hw6RrtVUAfAAzkVL4r/aNMIEbFYY0WFTWxB1KW+2cRZdvlof0bEr+ImZ 2L7w== 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=EObZra2J2DNF7JHX8kmn2YgRW16ruDFpBBD35pTDrEE=; b=Y3TrQwk1GojxIBbYZmljjbEnQVB0W8tUinVPwOEcbZog8OSzDLQVvrG9c9paJIAG+f tZPGhOPvic7ESoEymtkJa1j8xsmkJ7EI7PIkDAry12jRdYxIyXu6W0aXm7v4VhfTiQDh foGoLjXL3dbMKtJfohtZMFa/+7fYzBmTZTv9jL+fFA36Cf+MdpaKCnHCw3OsCv03eRzJ tyUP/GnqRpU76ohx30Uo1yiGC6AvS9rAlj/rCMO36XiKzN8PjLVg6hTl4SZiJPb8siYk PUQX4gV3qbKjZ2Sa3NPAkrPV4W788n+1/lOsXESXhd8rHhyMY+CttHw8JsPbH2z6vmy4 6/zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="2Bp/upSP"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id i11-20020a17090a64cb00b001c6fdf85547si3828635pjm.88.2022.04.05.22.49.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 22:49:22 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="2Bp/upSP"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8A77F49DEA0; Tue, 5 Apr 2022 22:22:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1840115AbiDFBHM (ORCPT + 99 others); Tue, 5 Apr 2022 21:07:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1457609AbiDEQQZ (ORCPT ); Tue, 5 Apr 2022 12:16:25 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43FEF192A4; Tue, 5 Apr 2022 09:14:26 -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=EObZra2J2DNF7JHX8kmn2YgRW16ruDFpBBD35pTDrEE=; b=2Bp/upSPrGCRvSAEjivuaeF5vI rUCBH9VZ+sO1MqFPoiuEsA+VeVx04f8KO4VLyltt0VmQanX8/uryVnLEFBWo2z8nUBKkf2Bjpgsyv QqPJIizyO/y4NyoIwUbrpOePuLNt0UKcpr49YLWH0miTWgq/g+KT2Q30R6knI0+USECg=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nblop-00EGgz-K3; Tue, 05 Apr 2022 18:14:11 +0200 Date: Tue, 5 Apr 2022 18:14:11 +0200 From: Andrew Lunn To: Ivan Bornyakov Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, system@metrotek.ru Subject: Re: [PATCH net] net: phy: marvell-88x2222: set proper phydev->port Message-ID: References: <20220405150305.151573-1-i.bornyakov@metrotek.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220405150305.151573-1-i.bornyakov@metrotek.ru> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Tue, Apr 05, 2022 at 06:03:05PM +0300, Ivan Bornyakov wrote: > phydev->port was not set and always reported as PORT_TP. > Set phydev->port according to inserted SFP module. This is definitely something for Russell to review. But i'm wondering if this is the correct place to do this? What about at803x and marvell10g? It seems like this should be done once in the core somewhere, not in each driver. Andrew