Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp7006062pxv; Fri, 30 Jul 2021 07:52:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0S2G9HOHLTEGWToV/RAs5jjJKsLGHWDaUbBfII1inoErkQESOX7x2B+UF+TGfAO9FZwTd X-Received: by 2002:a05:6402:d68:: with SMTP id ec40mr3458663edb.344.1627656747534; Fri, 30 Jul 2021 07:52:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627656747; cv=none; d=google.com; s=arc-20160816; b=Rz5EdTQW2Csklyhesc6NDtakXkJod99z3aUlR2iKh61S68WUhg61nSTwzZeqGAIa1R 0Fyl88nOaOwmT62Mmpp7l/huo01OvKNT5TbKVIadlNnXeNjn+XV5iG76SwX8Co7h1qi8 EdIBoxzbOswnT83q4L5gk8qKfZFtEmmBAQH2RUqX0oUEcXXIhEjvtu7pZ9xvtntXZyf2 TTO0Pp+Teib+rv7YEEyPponFaqYctKm13SJSQnkIbe3j9kui9Hc24pjiizp+FfWMxPZU IGzONXQhqlwD1LKEliG04kvsr1/pIIFcS2VEKnE7eDWJC4kn/qSS1BW6rXq7pdiJf3Ek nI0g== 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=OO7WMSBuE7boDA3ORsu+u+dos6vY95FT9OdapKOWm20=; b=fbxiwBaJB9/sstc07kEXJSNiFDaYAGhhL2vS/GKotjyf8Am1uEtJnXdMn0wLgo1IyV UWqpDoxXt6mIrczQMhgjE/VxpwimPtlKMsUkZdXk+rcwOwmfHDn17Yvlj6l0KxqcIhst niaG/RUhYy1JDEw8gcKthYyNA8O/FORSrExtJCii04fCxHcfDcObkCLd93lDKM3dC/GO sj5rDAu3ZUBdQ0T1BomzTZ0YA7thXdAkyTOWeRuNOy7I/tJi09dYqUPnQhLWptQyD0RB N2CMDkMEIjXswv/QocC2JDYSJi7A47EgA8Yv3XcmfxSGzvGVPo8L9jTeZkq8xbrfszrq kUaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b=GaXjf1ep; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d13si1695376ejb.391.2021.07.30.07.52.04; Fri, 30 Jul 2021 07:52:27 -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=@cisco.com header.s=iport header.b=GaXjf1ep; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239244AbhG3Osj (ORCPT + 99 others); Fri, 30 Jul 2021 10:48:39 -0400 Received: from rcdn-iport-8.cisco.com ([173.37.86.79]:17910 "EHLO rcdn-iport-8.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231272AbhG3Osj (ORCPT ); Fri, 30 Jul 2021 10:48:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=795; q=dns/txt; s=iport; t=1627656514; x=1628866114; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=n3PkM/+InBuHzKFjtN6VP5Z6K9yetavVDut1DYLO1yY=; b=GaXjf1epBtd1HnTsagrEGjG58G2YFum4ImwgBK61Bi9DTP5EiAqpBpH4 x4FM74NMtsXQF2Xa8Cqtk1+lLpMzwooDhgxJd7b67O4RVNhTqRcTSPP+F Oeu5CF+ETt3e9K8vBrUmq6Qt1w0W/fWxlTo5Y9l7Z//bF1i8DOV3BZagd A=; X-IronPort-AV: E=Sophos;i="5.84,282,1620691200"; d="scan'208";a="915063875" Received: from rcdn-core-5.cisco.com ([173.37.93.156]) by rcdn-iport-8.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 30 Jul 2021 14:48:32 +0000 Received: from zorba ([10.24.25.85]) by rcdn-core-5.cisco.com (8.15.2/8.15.2) with ESMTPS id 16UEmUWR021352 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 30 Jul 2021 14:48:32 GMT Date: Fri, 30 Jul 2021 07:48:30 -0700 From: Daniel Walker To: Andrew Lunn Cc: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Russell King , Balamurugan Selvarajan , xe-linux-external@cisco.com, "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [RFC-PATCH] net: stmmac: Add KR port support. Message-ID: <20210730144830.GO1633923@zorba> References: <20210729234443.1713722-1-danielwa@cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Auto-Response-Suppress: DR, OOF, AutoReply X-Outbound-SMTP-Client: 10.24.25.85, [10.24.25.85] X-Outbound-Node: rcdn-core-5.cisco.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 30, 2021 at 05:01:44AM +0200, Andrew Lunn wrote: > On Thu, Jul 29, 2021 at 04:44:42PM -0700, Daniel Walker wrote: > > From: Balamurugan Selvarajan > > > > For KR port the mii interface is a chip-to-chip > > interface without a mechanical connector. So PHY > > inits are not applicable. In this case MAC is > > configured to operate at forced speed(1000Mbps) > > and full duplex. Modified driver to accommodate > > PHY and NON-PHY mode. > > I agree with Florian here. Look at all the in kernel examples of a SoC > MAC connected to an Ethernet switch. Some use rgmii, others 1000BaseX > or higher. But they all follow the same scheme, and don't need > invasive MAC driver changes. Can you provide the examples which you looked at ? Daniel