Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp367619lqt; Thu, 6 Jun 2024 06:13:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXgZ2OteAMF+6A8rNzYpawzUWb2ZXsbmKpS+sbt7i00D301BnrfHSoem+Sh15LYBm7MEhlm3coW6GLe73ESEtLfFsb5w/5jXXErPOOMig== X-Google-Smtp-Source: AGHT+IHgQcGkEfo38W8le70AeijORfsoJhVa2PxZz7GQEkwfmmoUHH6+p90/RE6D9RKJGYD+/3Bj X-Received: by 2002:a50:d752:0:b0:578:5f53:f017 with SMTP id 4fb4d7f45d1cf-57aa5405bc0mr2282871a12.6.1717679616415; Thu, 06 Jun 2024 06:13:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717679616; cv=pass; d=google.com; s=arc-20160816; b=nWD5ZjQdgq5I8tPemuDxj8p4+63/tYudYNsnegTPUXRdtPCRsLSI0gnZq1mtswnGzd Lrg0a7/d5V+fMVVoXmNcr2j8O0EEXHGLrwzXJu7hAzE3IiiBI28B8j0rF0WOoKICPZVf iEkQgBn/w+DCCm7CV5AxD4vmBMbySh6/gtQBOrIA3sAEJ4lrI+0/n06bttfuFL38fy8T aeMx0A7idIqf8ZctcS3iFedY2Ybi9M6HRusTDKg59hQjzSMo3DtscWpPJ6bR3vaaJxUr HwSVzl4SKyz2EiBUkMhABNRzAFBjahn98aN2IcuBJPIeO3n6gRdi4UCX+OjHrvf8aMZx 290g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qxLXUJYoql242lphy3eB+73ttg/HGC3RBqjvzOTKpt8=; fh=FC9+jri0/UuNvEscR48G+Xjjy9/QT+UDDaLLHMtH8U8=; b=hnTZXz+S+cBcpw5A8l5Seq1mR5LmwmleMyP/Z6N1MbCQ1aJ4bcs5f2TjMijIY3QGja a9xY3HW0Jxq1u3f8ipZzjbHw64jTEhHBpq6A6/arquNG677U9YZyumQKIs0PWRtCw+UK L/mYsnrp16ERB1CNFSz+YYLVQkXGBs6IhsjnpE1MzxI7kEbgwvi3YpfBIKNpbZMOVHzF VvnAksrvqK33nnxSRvLqcelAAthYBcHBh2qPwKj4/BstDVTuWSZPpKN98UZv1mfyvqjk 2IJdYPieZdJDYalPG8wnh1GIajZqTW0I6uLGW7xPT6xKZ3qiq1BNkWmRgLmfJkeEHY+6 TAjA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=FI0Wio6W; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-204330-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204330-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57aae0c5da7si669381a12.15.2024.06.06.06.13.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 06:13:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204330-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=FI0Wio6W; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-204330-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204330-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 386721F213FB for ; Thu, 6 Jun 2024 13:13:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A7EE1196430; Thu, 6 Jun 2024 13:12:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="FI0Wio6W" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95419195F34; Thu, 6 Jun 2024 13:12:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717679554; cv=none; b=u61y0U0kcjrJJ8aQbe2Ip9+RX3YVQ965PxAZmQnOnrECBDpOFPx8SHkwOCLHThq4Lh7BmbtIJOWvtBBLs+2glfD7W+K8pdkJNdWZWDZS9dPA15Z42esCn57zBx2eE38jyoukKJ7MINtG1kWfbqBDa+BTJ4egzU4EoREnKM9ZmHw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717679554; c=relaxed/simple; bh=t4Yrc4YSgi5aw6OYsIIwbSUEnB+XhTy6yQ2BhFHTQ3Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HYcMfdU4jK7cb1NrwdKgfinXCPkuRC2iX4u41ZUAgOerIB3rSOHOJkGWI26+8hi1noVpC/33HCbsJ1blnNj48JGioK8r6mLdJjFNrEPQuKjX2LT16kJQ3SXUiDoUM/68ciBltxjDmEQbLAqQrLUbpeDOONLJJL2VjRa0AY9yJTI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=FI0Wio6W; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch 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=qxLXUJYoql242lphy3eB+73ttg/HGC3RBqjvzOTKpt8=; b=FI0Wio6Wp9bZlIiHYC86O6Md3M bgzBQ9NSbW0xJ6UuYewHJcqVK1VWZsS+zXMbeO7hasU7Ue4gFSczKss/PrrccYG6GFrMZi/X8NpbA p1R9rPmcXFPGq8RV58jNrlDgI11e0hugrGwZP1bPIKQIA6IqG9SedElqPvGTcwVPzE0c=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1sFCuZ-00H19p-O0; Thu, 06 Jun 2024 15:12:11 +0200 Date: Thu, 6 Jun 2024 15:12:11 +0200 From: Andrew Lunn To: Selvamani Rajagopal Cc: "Parthiban.Veerasooran@microchip.com" , Piergiorgio Beruto , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "horms@kernel.org" , "saeedm@nvidia.com" , "anthony.l.nguyen@intel.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "corbet@lwn.net" , "linux-doc@vger.kernel.org" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "conor+dt@kernel.org" , "devicetree@vger.kernel.org" , "Horatiu.Vultur@microchip.com" , "ruanjinjie@huawei.com" , "Steen.Hegelund@microchip.com" , "vladimir.oltean@nxp.com" , "UNGLinuxDriver@microchip.com" , "Thorsten.Kummermehr@microchip.com" , "Nicolas.Ferre@microchip.com" , "benjamin.bigler@bernformulastudent.ch" , Viliam Vozar , Arndt Schuebel Subject: Re: [PATCH net-next v4 00/12] Add support for OPEN Alliance 10BASE-T1x MACPHY Serial Interface Message-ID: <79f61e42-c32f-4314-8b77-99880c2d7eeb@lunn.ch> References: <0581b64a-dd7a-43d7-83f7-657ae93cefe5@lunn.ch> <39a62649-813a-426c-a2a6-4991e66de36e@microchip.com> <585d7709-bcee-4a0e-9879-612bf798ed45@lunn.ch> <732ce616-9ddc-4564-ab1f-ac7bbc591292@lunn.ch> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: > I believe my client is configured to wrap at 70th characters. > Not sure why it is not doing it. It could be you also send a MIME obfuscated copy which is not wrapped correctly? > > > 1) Can we move memory map selector definitions > > (OA_TC6_PHY_C45_PCS_MMS2 and other 4 definitions) to the header > > file > > > include/linux/oa_tc6.h? > > > Also, if possible, could we add the MMS0, MMS1?. Our driver is > > using them. Of course, we could add it when we submit our driver. > > > > Interesting. So you have vendor registers outside of MMS 10-15? > > This is not about vendor registers. The current oa_tc6 defines > MMS selector values for 2, 3, 4, 5, 6. I am asking, if 0, 1 can be added, > which are meant for "Standard Control and Status" and MAC respectively, > according to MMS assignment table 6 on OA standard. But why would a MAC driver need access to those? Everything using those registers should be defined in the standard. So the framework should handle them. > One example I can think of is, to handle PHYINT status bit > that may be set in STATUS0 register. Another example could be, > to give a vendor flexibility to not to use interrupt mode. But that is part of the standard. Why would a driver need to do anything, the framework should handle PHYINT, calling phy_mac_interrupt(phydev). I really think you need to post patches. We can then discuss each use case, and i can give you concrete feedback. But in general, if it is part of the standard it should be in the framework. Support for features which are not part of the standard, and workarounds for where a device violates the standard, should be in the MAC driver, or the PHY driver. Andrew