Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1090631pxu; Thu, 17 Dec 2020 01:46:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJwIGnmlMcN5AwUhBxXtnA12ZLkhiQGPdSWaha1GdIqJRdwX4DkC9zsLGC076nKzmeB+bR4t X-Received: by 2002:a17:906:d930:: with SMTP id rn16mr34629737ejb.412.1608198390689; Thu, 17 Dec 2020 01:46:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608198390; cv=none; d=google.com; s=arc-20160816; b=tUI4x6w1HHgT0uAQJ/otun00ZJMYZK6xw3FdkYcd/TEeFT838mGshdD2noyOXUSs5J SpfKCvZxBoWiucF4R4vIL6t1rIaa1Z29AG4YchRDSRmluuC5i2iQ5pTRdhmhKlYjfPPm It+8j7bduchfsUVJH7VMx7cNGSIBlsyHjpK93oLhbRj/aCSIB3R5+bqcSZwvPf11LMsb OtDcRCfVt1TrnYH+icKY6RGkWhnvCDtHGYNaehRJj5wK009WNM3buijmXE+GAiQ5ibf8 iZj2rP1e0ahL6zHhhyv7VneK1s8JF/24nmrb3SqvkxMKXfWAyslTfV4QcQFnpJ7pqWGn Q2pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/biV0j4oPyBDlCc0KD7PgZ5xhcMTjG11uj+u1mWK9zQ=; b=Y5qVCykX6NukWnJqBCkkxh9pKXGC0jC5qRZQoFv40InoxHR2slDi0BI3bYDxZOm1Gz A5T3yzMJQBGnWxWSRMw8O+qwwCPCf172trmBttD7/lzhgZ2VIwd6GbvbCeXX1MxBUYA5 z1wwIWHwv5Sg4lyPPGxDyA575l5h+IyrMsnnolUKtLXp4re2EZtC8/YmZo5q3evFczID 8U/Y0QhsAdd1qRuhWjYzHCQ06K4cC0jpI1vHTb6BEDkB7ZO5CK1U+33PdiIIrw1zsFkl nb3XmRU9gnFdl0ogb+FbmBhWqYFDKWk/wGKhLA06cJYyM/blc1dA8RxjtbmsP8ifAxSG oN7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lqpUUnmD; 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 h12si2393977eje.122.2020.12.17.01.46.08; Thu, 17 Dec 2020 01:46:30 -0800 (PST) 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=lqpUUnmD; 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 S1727899AbgLQJpg (ORCPT + 99 others); Thu, 17 Dec 2020 04:45:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727381AbgLQJpc (ORCPT ); Thu, 17 Dec 2020 04:45:32 -0500 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44E4DC061285; Thu, 17 Dec 2020 01:44:52 -0800 (PST) Received: by mail-pl1-x62e.google.com with SMTP id v3so14828866plz.13; Thu, 17 Dec 2020 01:44:52 -0800 (PST) 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=/biV0j4oPyBDlCc0KD7PgZ5xhcMTjG11uj+u1mWK9zQ=; b=lqpUUnmDzJZ6oVXsh/B9dcOr/1+RqrbuxyF3agHwYTZrWF0e7PbmpGhqbHgD51iulM H3OP1/+4scC0XufolApvlZDNK3mn5Dv4HlmEa7QO9ng33e7pCN+WmOa0psYkvKdYdyNO HMMjCo/0xmELTrG94ggPeFS9k/c0M7won4f5Hq0co5tSc1G5drkluKc2Ez0FdfDsG4rn +bgMBeOuLJBRbo80rLe0pKPYc6rzL8NegOxdJxBztWpIG1mFe+nCvolDXOI3E5hGatya 4O8fqYUidRKMgM8Ncsst8FF2gfJHzgXqw60rX4MKAs3lKaxfyu9VsQnJpCpQQWCiSN+l wsbw== 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=/biV0j4oPyBDlCc0KD7PgZ5xhcMTjG11uj+u1mWK9zQ=; b=rnqhTeaxCcQkl7Jm1gvnzV/ybiPNQPt/1isT7I0TGSWU3IN542QWFXhk6SfgBS0d2q YHN+y4UdLIr2cyLyzyk6H11nBm4Qx/xoBmjL8kOc2uM2Zc2CKXYfr+K7PFpXeSsbzXqf LD+tMyOkO6yRTVa10t0h7b7tKCUFFKzRYdYnbW+5P3qVQpGeZdp2zBWqO+A7mrs4Bmto hhP6HhZQLqTY7fh0A/hp88BPudZmCcjebjBajE8l4rahiYWq5UCLJAIFKPLMmpcZXO0b lKs1CiGdA4QlL7OKUQoQZeSTRakQiAqvBfjX/abwj3yT6EVxzqVN770BWya7gsQw17Iy 5Deg== X-Gm-Message-State: AOAM530dBlTyyuetJh9BwSgnjJkNSddSv0l7eUMEWPHcHOwKgmyGNeHO J0idd/21Xy/S8h99syKudmBbLZPsj9iAD5SEh5g= X-Received: by 2002:a17:90a:c592:: with SMTP id l18mr7201456pjt.228.1608198291744; Thu, 17 Dec 2020 01:44:51 -0800 (PST) MIME-Version: 1.0 References: <20201215164315.3666-1-calvin.johnson@oss.nxp.com> <20201215164315.3666-5-calvin.johnson@oss.nxp.com> <20201217082804.GB19657@lsv03152.swis.in-blr01.nxp.com> In-Reply-To: <20201217082804.GB19657@lsv03152.swis.in-blr01.nxp.com> From: Andy Shevchenko Date: Thu, 17 Dec 2020 11:44:35 +0200 Message-ID: Subject: Re: [net-next PATCH v2 04/14] net: phy: Introduce fwnode_get_phy_id() To: Calvin Johnson Cc: Grant Likely , "Rafael J . Wysocki" , Jeremy Linton , Andrew Lunn , Florian Fainelli , Russell King - ARM Linux admin , Cristi Sovaiala , Florin Laurentiu Chiculita , Ioana Ciornei , Madalin Bucur , Heikki Krogerus , Marcin Wojtas , Pieter Jansen Van Vuuren , Jon , "linux.cj" , Laurentiu Tudor , Diana Madalina Craciun , ACPI Devel Maling List , Linux Kernel Mailing List , linux-arm Mailing List , netdev , "David S. Miller" , Heiner Kallweit , Jakub Kicinski Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 17, 2020 at 10:28 AM Calvin Johnson wrote: > On Tue, Dec 15, 2020 at 07:28:10PM +0200, Andy Shevchenko wrote: > > On Tue, Dec 15, 2020 at 6:44 PM Calvin Johnson > > wrote: ... > > > + if (sscanf(cp, "ethernet-phy-id%4x.%4x", &upper, &lower) == 2) { > > *phy_id = ((upper & 0xFFFF) << 16) | (lower & 0xFFFF); > > And perhaps GENMASK() ? > > Sure. Will rewrite accordingly. Reading this again I'm now not sure these masks are needed at all. -- With Best Regards, Andy Shevchenko