Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6516354pxv; Thu, 29 Jul 2021 17:13:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgpoXhI2ldVFN8WHoqok7lf3r0CmU23zEa7EH3vTm0H45g93wi8WFjMdSBF7vRHBYQb5UU X-Received: by 2002:a05:6402:898:: with SMTP id e24mr8989319edy.197.1627604026076; Thu, 29 Jul 2021 17:13:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627604026; cv=none; d=google.com; s=arc-20160816; b=WGZHdY2nlYabEUOY4raByeYAgyCF+AMcNOw/yo6wqUJ1jgxKVw86nHI7GcabS8VQZB 2MezIXEVhqD42ic+l4MWMz8TEcnBxDEl4P7SPxqIGrin2APSv+FIBpqytDZhlUQSRScK +MkON1DpOfnReQ/oU+2lkegMoSA0V8OTfahSjg0h8pc0MY9OGXz9gopN5xrx6VicC2zF +j0oahk5H0WQzFVj8x6NhI+a2IG9o47gSZZT4E5UQRZl1rVedL1Vgn4NGjwxVPGiO/RK cdWxkRGEpM7ODAsi+0IFDQZs4n5Pz0qWDG5UKhqlpS7b9HegeanCrkkcE7GNkZe7fvoE Ipbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=KvNrFVgss6eSO6kUoQ3VU0X35CeoRY7KVDc86f4fQm4=; b=cbu3zjKH0ytpiT3gtCMiku6AyDpa4Sf5wj1EUpKU6kJnGkcddl57smvvumUj++Ehs7 CQFQEKHizZfokywxCgOqiYrA23zu9Q8AvjV8D+fllsqucln/nxF2TCkRxxiSnuzJ3NcZ 6qlqMpszdABqFQhg4gP1Vb47lXWj4KIJDlDqOw9sXXw6iDA4m9pIDBWDj3c0Gcn9aCBa MZcPtxWddFArGqczerR2nt1l2r/4puYdFRPh9jkgVB7cFEaTAdWjwBrIFtauLH1+s1pK tL+pTF0tejSqrB8no42hFfeEQ1tDv2Jt+h4NcPcjBq9nOEqsWbOggdZg/+rTphVW4EwS o4bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kOZQR14U; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v8si4063504ejx.192.2021.07.29.17.13.21; Thu, 29 Jul 2021 17:13:46 -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=@gmail.com header.s=20161025 header.b=kOZQR14U; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235339AbhG3ALB (ORCPT + 99 others); Thu, 29 Jul 2021 20:11:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235124AbhG3ALA (ORCPT ); Thu, 29 Jul 2021 20:11:00 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07E3DC061765; Thu, 29 Jul 2021 17:10:56 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id mz5-20020a17090b3785b0290176ecf64922so18177589pjb.3; Thu, 29 Jul 2021 17:10:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=KvNrFVgss6eSO6kUoQ3VU0X35CeoRY7KVDc86f4fQm4=; b=kOZQR14Uy3g//5gbl3xlpGsDHTkZtnRt2eygeLvJGcHjKB5XzT7Ldokpq0NHg1qAFQ xrUuJh8cOjV96IFiAb3OEqVzDWXY9A9Iz4H+WomwEZv8pWvjbfnAGH/WBA0megaHfwAb FrZmi2FAWLjncp47tvP1GZz6eGYY3U0P/lCKl8QgOFdgFjhPely2k0UWryrc85QzoocQ nxpsUlu9rex7WQydEd8E2OP286Wjz5qgZt5sbHFjX6+q3MgLSpSZBwlrr445ZibTmdHB qMvuvtM3WGGw1NEYtucOdcPeFgMgOFEVG362GtLpgC47HKmy1NEok10Kr4JNtYkChDnx FZaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=KvNrFVgss6eSO6kUoQ3VU0X35CeoRY7KVDc86f4fQm4=; b=kNjqOfQn9RyZNWaeWDtzz2ncEeCOKi0Wb2wusHK0StHso0yGJmW9HItrvHwbf7vDcn 9QK2fTjYTA6lN5ABXonMWmusvnDoPpFgaCoF2NkRsRLQSg17AMFvlQgGNFkeVOc5JRZm caYoTQjhWyj4foz452/QKUP6rZFvyczJCy4BHXhmBUawfYfkFuK5AA+byVLYDaON/UOF l+SCS4O1dgEFZ4/W9zh6RJQPKkzxT1jFTPa+lOixr0+LzMZrzpviTidzxcoKKh3PdusY 0jM4uFUlmH5wDVdusDUoYO87lqTuIdNLXOuTm0WvwAsdQfWshVr9a6+P43ZRTEIn3LV9 z3Aw== X-Gm-Message-State: AOAM532hpkQyqiD1AcmGkZ/d/zQ09jZtPHPWwwpD5mQr8mXv6qkfSP+K bAxBVoG16n2oiUSB27LTD74urXV/wSU= X-Received: by 2002:a65:42c3:: with SMTP id l3mr698563pgp.377.1627603855087; Thu, 29 Jul 2021 17:10:55 -0700 (PDT) Received: from [10.67.49.140] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id f15sm5154339pgv.92.2021.07.29.17.10.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Jul 2021 17:10:54 -0700 (PDT) Subject: Re: [RFC-PATCH] net: stmmac: Add KR port support. To: Daniel Walker , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Russell King Cc: 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 References: <20210729234443.1713722-1-danielwa@cisco.com> From: Florian Fainelli Message-ID: <81fca68f-e0c4-ce02-6b2b-e5c22a0c3152@gmail.com> Date: Thu, 29 Jul 2021 17:10:45 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210729234443.1713722-1-danielwa@cisco.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/29/21 4:44 PM, 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. > > Cc: xe-linux-external@cisco.com > Signed-off-by: Balamurugan Selvarajan > Signed-off-by: Daniel Walker You are not adding KR support per-se, you are just hacking the driver so it is happy with an unspecified phy_interface_t value and assuming 1000Mbits/sec, this is not going to work. Just add KR/backplane properly or use a fixed-link property hardcoded for 1000Mbits/sec and be done with it with no hacking, which would be just way better than what is proposed here. -- Florian