Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp918758ybj; Thu, 7 May 2020 10:29:40 -0700 (PDT) X-Google-Smtp-Source: APiQypLriHi5wYVGTf3XzsjMSlXn2TuklUi10L666jp7nYOtb5l3MEgnaJabJmL7uutVHD9vRsf7 X-Received: by 2002:a17:906:724b:: with SMTP id n11mr13575138ejk.355.1588872580391; Thu, 07 May 2020 10:29:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588872580; cv=none; d=google.com; s=arc-20160816; b=ZnDyZm8dG8U0ftoIl9jCt3vYuhBgUZWpL5QzFw3PpruZehg0q5tYf+jl/GuADxK6iP vN0ehNUXLxBfFUJz97TFeIxA3BQZlx7T7A2T0/8hmTmZJBAWRLDGwaUXMEdle4iug4F4 dSeJPR9zkB6HaHbGGHM2j1y+4YGU4GIMxpeuoBXHfq/gUuto6PEwvHmMeEJo/1A35FHb REH8giOtfg33rpRPdPtMFT5RIwpp6nLdJYqhIVuViQf9RiDIZvvCaxsGenDJZiLwFaN0 ZoxvorKUTJ0f8A4zzdcpqswNBuFtLu2tel9phg+ynVqRlhnQDJbCuPBWd6bGaL5DfJ5B sBZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=sI6MW+ENUHkNJh2ieEfqb2bnhAZ3RCNTWxJcYdnJPQ0=; b=xemVUhzjLkbVg4gQlFoPrZgXjAnaq3K7sRDt/b1sPe+i0ISzNARURA6PYH/yUGx+9y 1pGgoOFXVYJztewDdDJt4hzlUYWtbJOgqM5v3Y8UBlgAw2A4+E6xClwxCHToKHesKjRa JchTDD/D+RuAURB6Iv1iZHjAEyeZ+zCl/PxpTPxmmT7mcCdbTB+KtneqSHxIMdrQjcPJ rPL4bUZl6orLL1aYnHeBQ2hiKekNSgC41sko/htKiuJLAo2L5rqvYeQoVCk61TDctZLv T2QEcQJxyfwTSU1XWQewFtqqb1zcwEdxXCbfHy9CpCxQc0HcjKcEDcUzoGfFnVnGrgkg T/kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fw6712JF; 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 w2si3322601ejq.225.2020.05.07.10.29.15; Thu, 07 May 2020 10:29:40 -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=fw6712JF; 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 S1727778AbgEGR1w (ORCPT + 99 others); Thu, 7 May 2020 13:27:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726222AbgEGR1w (ORCPT ); Thu, 7 May 2020 13:27:52 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF6C4C05BD43; Thu, 7 May 2020 10:27:51 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id v63so3307695pfb.10; Thu, 07 May 2020 10:27:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sI6MW+ENUHkNJh2ieEfqb2bnhAZ3RCNTWxJcYdnJPQ0=; b=fw6712JF9/XP6LQunEFLYb0L3Hu5ZvOjiwZaYjUOYARWSTU6cUpPwT1mREY73Q0lcz Ux/KeXELOEUHJXhu+fQdD2m+PvZLEgLRXD9LHp5MtiJP9eimFksIXjI/cy3nfvc3vo6c EnHUBiCI3w93ddm9j9zO6dnfk9CkchHGY/+2IAZNTQoXNwBPgeZyh71Spr8dvDJIyw/+ UbXKl1uzTrdWUsPYYMIzS4tnSCKePPqGcXUK7g5HcX9zheTZs6yjaODjo8LMj7+RYfuG Z0ayJgokLlO3FWlitIERjSFHHzD510h8OGBamTktyIiycyrQAc/XdIxYy0AJQpUE4o6R lJSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sI6MW+ENUHkNJh2ieEfqb2bnhAZ3RCNTWxJcYdnJPQ0=; b=Fo3tyPYzLH09wk65N029Gl23MuTtFwe8juh7+QRzBV/XCGrV7fKqG5oS5JbAznQAMp 4XziOia+nCLZsOUOZYgPxpglTHhWpmalCuhCZXmMq1eMw+z4XMjUHcLokSk8YaOaZAGd hqWp71FWc/2dA8bgEyBNNzGxvM1E+hvR08Q1+Xt6u67lNKt7c+HY7g8Q8EhVoPSa/Vze Aqrov8i7lr9OsjYA0B51R1WVW9MrWHnwQU8MPwT2LJA4JZb/Q7/sh8U/r4iHCTwkkLJw kUqYXzjOJ7PlvkV/vS1Pa1d1CLHo25RWIfCWSzhaxE4wMF2LKNcEVg4mkpE5d+jndaMD kLWQ== X-Gm-Message-State: AGi0PubCWR604p4UBy0gWOgsAc6ZasAqwacVQbQg+lreVLPLWTx2XNdA +n5IymJZKAU7qvFsz+GI8yGSlHxGJjgzsllOYG4= X-Received: by 2002:aa7:8f26:: with SMTP id y6mr15059528pfr.36.1588872471304; Thu, 07 May 2020 10:27:51 -0700 (PDT) MIME-Version: 1.0 References: <20200505132905.10276-1-calvin.johnson@oss.nxp.com> <20200505132905.10276-5-calvin.johnson@oss.nxp.com> <67e263cf-5cd7-98d1-56ff-ebd9ac2265b6@arm.com> In-Reply-To: <67e263cf-5cd7-98d1-56ff-ebd9ac2265b6@arm.com> From: Andy Shevchenko Date: Thu, 7 May 2020 20:27:44 +0300 Message-ID: Subject: Re: [net-next PATCH v3 4/5] net: phy: Introduce fwnode_get_phy_id() To: Jeremy Linton Cc: Calvin Johnson , "Rafael J . Wysocki" , Russell King - ARM Linux admin , linux.cj@gmail.com, Andrew Lunn , Florian Fainelli , Cristi Sovaiala , Florin Laurentiu Chiculita , Ioana Ciornei , Madalin Bucur , Greg Kroah-Hartman , Heikki Krogerus , Varun Sethi , "Rajesh V . Bikkina" , ACPI Devel Maling List , Linux Kernel Mailing List , Diana Madalina Craciun , netdev , Marcin Wojtas , Laurentiu Tudor , Makarand Pawagi , linux-arm Mailing List , Pankaj Bansal , "David S. Miller" , Heiner Kallweit Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 7, 2020 at 4:26 PM Jeremy Linton wrote: > On 5/5/20 8:29 AM, Calvin Johnson wrote: > > + if (sscanf(cp, "ethernet-phy-id%4x.%4x", > > + &upper, &lower) == 2) { > > + *phy_id = ((upper & 0xFFFF) << 16) | (lower & 0xFFFF); > > + return 0; > > + } > Isn't the ACPI _CID() conceptually similar to the DT compatible > property? Where? > It even appears to be getting used in a similar way to > identify particular phy drivers in this case. _CID() is a string. It can't be used as pure number. -- With Best Regards, Andy Shevchenko