From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 31A13C38A2A for ; Thu, 7 May 2020 17:28:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0315620663 for ; Thu, 7 May 2020 17:28:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="JwlMZYTj"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fw6712JF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0315620663 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YiPVaflHwi3kYBhfUxk1y0OrkV1hOCM/3OS7ysVwpDI=; b=JwlMZYTjItOf80 IXrPW4ApA7am8cN/H2zHW77KN6UDAL2/VsweHjJ97dxxDQ+WksXO0fbNboMfsFm2fQf8xDp83ZXJ3 5cfHYwd1JA4U9nsqA0Io7Xs4YacgSosqWYxLGkbEtPNrdBt+VOBBUK0YKIElFIUnzX/Ii75MqPiMj 2ucMk/LRRbrJhcJAPWhhaJk9YZpS4QVBT1orehMrT8oipXUaRu1staRLrnI0ZYr4Euw2lmUojh9bL FarKrhlFqB45CTwNKVkvvmF3fcqqBpgrEMiapMsOkENPQrKYnxDo5I7adeIc6WYd364WgqX5MDAYn AwRWjBbq9QUdna8K4/bA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWkKO-0000oz-Mz; Thu, 07 May 2020 17:28:56 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWkJM-0008Nk-Ef for linux-arm-kernel@lists.infradead.org; Thu, 07 May 2020 17:27:59 +0000 Received: by mail-pg1-x543.google.com with SMTP id n11so2788153pgl.9 for ; 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=I4Soxy2muOVYuV8cNClryW82W/3odw6ldkj/mFDbQVtZdjfsSgAF52a5JjkdHQZE7V kPz1D4BsgQd5wKEnuv4ibhdDiEsGjjHw5cQPp1ot+Eb0xExKinFKR951ZL2kYd9DRiUN 5xoNHhwj2QGpqwk0aaK7gyyCJGZ2WUGcAu6bVkWOGj8jeuPsClO/2eQWZtlWZNb2k11u ShAFlZLWjo7xeJ4nEUU7hP62dIBMq5gZwQ6JCGMIsp9T01iZUsIZba6a6LaYvzE/hzS2 oSfiBa2ha2H/H9L6xdccrCPaVk0m/TbjROvQOxDf/vUg71bNwm3WiQMgL1CABdR2Isdw qHeg== X-Gm-Message-State: AGi0PuaqEAvh8JTXEBZJIXXM/SGLKYZFPLvdzx1AW8fdx8YZY+W96PSR Hgucr8gZSFQi6G6NxjfnVx/sI1OuwOfrbGnZRek= X-Google-Smtp-Source: APiQypI7YgiQ9vvHBaf8ZcHCNpabxiuE+6U2dZsbLwFTkafu86kfC64HTxUYw0xpEU0ELMf7TkAsxj3N30X42MNPPSc= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200507_102752_586695_F40387FC X-CRM114-Status: GOOD ( 12.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Lunn , Heikki Krogerus , "Rafael J . Wysocki" , Cristi Sovaiala , Ioana Ciornei , Florian Fainelli , "Rajesh V . Bikkina" , Pankaj Bansal , Russell King - ARM Linux admin , Diana Madalina Craciun , ACPI Devel Maling List , Florin Laurentiu Chiculita , Madalin Bucur , Makarand Pawagi , Varun Sethi , Marcin Wojtas , linux-arm Mailing List , Laurentiu Tudor , Greg Kroah-Hartman , Linux Kernel Mailing List , Calvin Johnson , linux.cj@gmail.com, netdev , "David S. Miller" , Heiner Kallweit Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel