From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Subject: Re: [PATCH] [v7] net: emac: emac gigabit ethernet controller driver Date: Wed, 17 Aug 2016 14:25:00 -0500 Message-ID: <57B4BA0C.2080602@codeaurora.org> References: <1470255143-3979-1-git-send-email-timur@codeaurora.org> <20160804175541.GA2832@rob-hp-laptop> <57B220C0.3060608@codeaurora.org> <57B31780.5030106@codeaurora.org> <57B3878D.1000805@codeaurora.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:54545 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752975AbcHQTZE (ORCPT ); Wed, 17 Aug 2016 15:25:04 -0400 In-Reply-To: <57B3878D.1000805@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: Al Stone , Rob Herring Cc: netdev , "devicetree@vger.kernel.org" , linux-arm-msm , Sagar Dharia , Shanker Donthineni , Vikram Sethi , Christopher Covington , Gilad Avidov , Andrew Lunn , Bjorn Andersson , Mark Langsdorf , "jcm@redhat.com" , Andy Gross , David Miller , Florian Fainelli , Lino Sanfilippo , "Rafael J. Wysocki" , "Abdulhamid, Harb" Timur Tabi wrote: > > The question, how should adpt->phy.version be initialized on device tree > and ACPI platforms? > > The reason why this is confusing is because there are conflicting > perspectives of this "internal PHY". It both is and is not part of the > EMAC. It is a separate block in the chip, and can be replaced with > other SGMII blocks, and in the future there will be a "v3" and maybe a > "v4" or who knows what. In fact, maybe using version numbers is > inappropriate and we'll need to use vendor names or something. > > The problem is that the internal PHY has mechanism for > self-identification. There is no ACPI or device tree node for it. There > is no register you can query to see if it's there or what version it > is. The MAC part of the EMAC has no knowledge of the PHY part. The > driver just has to know it's there. > > This is why I'm advocating a separate property (DT and ACPI) to identify > the internal PHY. So we had some internal discussion on this. Different compatible properties for DT are okay, and for ACPI we'll either create a "phy-version" property (DT-like properties are called DSDs in ACPI) or use an HRV (a specific property for the hardware version). But this speaks to the greater problem of mapping DT compatible strings to ACPI. Like I said, the ACPI equivalent of a compatible string is the HID. But unlike DT, we cannot create new HIDs whenever we feel like it. The process for generating and assigning HIDs is much more involved, and we do have a very limited namespace. -- Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.