Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5016161pxb; Mon, 15 Feb 2021 07:24:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJxsQrJ4H3CRl3VGVGiS6ZMgDsUHfsat+Kfr2FvOaHaudA5/qAY7dszUtLTBVI+8VcSemCzm X-Received: by 2002:a17:906:54c7:: with SMTP id c7mr2939659ejp.161.1613402667991; Mon, 15 Feb 2021 07:24:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613402667; cv=none; d=google.com; s=arc-20160816; b=yS2KnhyJ1/9nJbTwm1gOuUmWw2c5/WUrSN2LeTi2VDl7BZExrK+IXLiqr+BUZI2u7A njAM0k03J3jKxzz7zXsuCCER+5hKkDjFcdm/zbXI7L9fi0Ejpsheov5Ldz15ZHu80vUt 0ra0wACWtbaD8TmUPjEiwHESCGgP/JXP0/8NR2fDkgO1XMEPhtHVITYGQU6HQglReZKz +dIWK3Xc/Lo59lFHE33bS5sSK7iyDZf5jy3G4r/uF1hPtihxGI+KXehZsPAAHRUxZu9m BoYEkTS89yn3ZDU6pxaF00hC1VQxkvd/o38TkHs34yE8KBtjRYf9stPRHeCphicRR9zb p/cA== 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=0rSXsWgkIPp9LcQforsSfMG6IosnkE2y+0kuGemcWec=; b=nPJjQyBFdRvxlLpPcAZ65IFRMBwNpAZkWo49tBQyOr28HCD1LI6MDxaNVeKapxxCPH UEEMBzWhWX1RnY4B7VKrLmO98VswHQy1qWIG+yvk2WQ7Tu9qf86pVme9CIPF+Qs9q9YR JEfPYpxhgWvgRaq9gybeuZRsP7GWcO17B2dr6adxNhMR4rXIcOb7zKNi/iPCnEfvqf/W aNl4jsnudjbdoS1XdtbATLeISkaVa+FUpTXUlRjcrhefDHrOpwG4tSi7HyprmLqrwamz HSqp2ymwHHZYUX3knv8HHB0T9R9UsDGyVFt4AcBxmTIdusKyRMmditYVLJ/QbidQZZJX FSVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dpuJndH3; 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 i19si2403110edq.587.2021.02.15.07.24.04; Mon, 15 Feb 2021 07:24:27 -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=dpuJndH3; 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 S229936AbhBOPUs (ORCPT + 99 others); Mon, 15 Feb 2021 10:20:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229888AbhBOPQf (ORCPT ); Mon, 15 Feb 2021 10:16:35 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A0BFC061574; Mon, 15 Feb 2021 07:15:52 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id cv23so3895502pjb.5; Mon, 15 Feb 2021 07:15: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=0rSXsWgkIPp9LcQforsSfMG6IosnkE2y+0kuGemcWec=; b=dpuJndH3wLvC1smjtwpWiso7TjKO+CHXqm5me8ElygIzH7E2zcebDLGoIxFvsb7sFC FBjKpDWWrsFAGy0zaTySceq2GNCbUmz94XAHzGfXYhsFVITqQkF1giOndmRTochCYsr2 k8xqGMZe8569vazxMC08vUNfc/iH7+MtKCQvwyUMu09u/E2+I9vy6op3iVd+3DAnzY19 +utxNRJW7Q+RQl8EcYOP4ZtmktDzmVsIFpIG+KGuyStvj4X4DErvq3HxqJM/KkpZwy9b iy+C/MY2dbLil5jvy0mag5dOOW7ajf8SfJ3iCh0Iax3GF0lcg8W6oJy9xdqq51v5w8BR xpfg== 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=0rSXsWgkIPp9LcQforsSfMG6IosnkE2y+0kuGemcWec=; b=qSU6Fl+2w0E9O4aSqzjgXufzvnQQZqrEuSqr+5xEDzcTcy6o1frqVNH1db07Ow/BH0 qmsxocsxnOdfbwNMBu0kJdll5YKvhZV7jv1YnCsgJ3dwr+RjvVU5phg2Ef0foyn3je/i u7Nj0E7b7RBTFnHIGIQrS0aLvE0itFX1E06eDQqQsIG+z9U+vFFpRX69vW7LwfsuwSLU c1/MhUx40gC2erbSxF5J5w7PVOnKVn5IDF8J74ntT1Ypyon4Rt+cgBSoAMHroewdRAAk caSXWea6taPWSoxJ8BPbUOnhXkUGhqCrMoG4OQuM0MEyMolmrZRGHBkZad0Swk0V60y6 LECA== X-Gm-Message-State: AOAM531zP5cgk6Qu4G7S8+tlRjIWSvDN6dAIiY1H1rnSoDXqyYkBHjXk Q4W0qOKplGOBYPJgav888Ar+4b9vtnDuTKLrltM= X-Received: by 2002:a17:90a:4fc1:: with SMTP id q59mr17212917pjh.129.1613402152155; Mon, 15 Feb 2021 07:15:52 -0800 (PST) MIME-Version: 1.0 References: <20210208151244.16338-1-calvin.johnson@oss.nxp.com> <20210208151244.16338-16-calvin.johnson@oss.nxp.com> <20210208162831.GM1463@shell.armlinux.org.uk> <20210215123309.GA5067@lsv03152.swis.in-blr01.nxp.com> In-Reply-To: From: Andy Shevchenko Date: Mon, 15 Feb 2021 17:15:36 +0200 Message-ID: Subject: Re: [net-next PATCH v5 15/15] net: dpaa2-mac: Add ACPI support for DPAA2 MAC driver To: Calvin Johnson Cc: Russell King - ARM Linux admin , Grant Likely , "Rafael J . Wysocki" , Jeremy Linton , Andrew Lunn , Florian Fainelli , Cristi Sovaiala , Florin Laurentiu Chiculita , Ioana Ciornei , Madalin Bucur , Heikki Krogerus , Marcin Wojtas , Pieter Jansen Van Vuuren , Jon , Saravana Kannan , Randy Dunlap , Laurentiu Tudor , Linux Kernel Mailing List , "linux.cj" , Diana Madalina Craciun , netdev , linux-arm Mailing List , ACPI Devel Maling List , "David S. Miller" , Ioana Radulescu , Jakub Kicinski Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 15, 2021 at 5:13 PM Andy Shevchenko wrote: > > On Mon, Feb 15, 2021 at 2:33 PM Calvin Johnson > wrote: > > On Mon, Feb 08, 2021 at 04:28:31PM +0000, Russell King - ARM Linux admin wrote: > > ... > > > I think of_phy_is_fixed_link() needs to be fixed. I'll add below fix. > > > > --- a/drivers/net/mdio/of_mdio.c > > +++ b/drivers/net/mdio/of_mdio.c > > @@ -439,6 +439,9 @@ bool of_phy_is_fixed_link(struct device_node *np) > > int len, err; > > const char *managed; > > > > + if (!np) > > + return false; > > AFAICS this doesn't add anything: all of the of_* APIs should handle > OF nodes being NULL below. > > > /* New binding */ > > dn = of_get_child_by_name(np, "fixed-link"); > > if (dn) { Yes, of_get_next_child() and of_get_property() are NULL aware. So, the check is redundant. -- With Best Regards, Andy Shevchenko