Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp429592ybz; Fri, 24 Apr 2020 02:58:37 -0700 (PDT) X-Google-Smtp-Source: APiQypKcZZxCnXJQBYIMn2aMk8sNqJwu7HL2OeaxeFxftkWfxHZZHrZoOjHbNS2dH/Z1m/YDgEci X-Received: by 2002:a17:906:1303:: with SMTP id w3mr6331791ejb.275.1587722317758; Fri, 24 Apr 2020 02:58:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587722317; cv=none; d=google.com; s=arc-20160816; b=a8FIbpRW4w33FFVrJNLsnvEn8M/YPqcSUXiYeXNe5lrgXD/Uzvxpxdan596NeZdsTE aYrThEIXxoKdrOOlpH66graEQgAyOAnZDJexxocyZnqMJ5gQTzo9yPFvnpZYfofzVvQ0 NqeNWkdKVxaOqxkZlboVeHVF++XPCyzIdPmjAi0eVAl4lNPqKEPbBlRRWukPZe4B73NO L6YNBSSV0+N5/GCNO5EokVl8jclZzrgPezQZ7+4s6FUxoqdel1AjH/gjglxHfjhDRRrV 6PSv5xFyHYgIJnYHbx5xXlvov5uH76dELSHy0zLbxbgksBBaJF3Chh51akMh6BrtkuYn bcVw== 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=8g1Qeu2PJu2OXoQ3lMahtFGRconFZq/a+DVsXd6HwAs=; b=zcJ0Hzpb9es5S8cUCWmjasEMeArPoz93NucAVKGkGoHw4ASpQEBgZItDKsysOGnGp9 NFm6Hsf+EX/SMOIU9o++6f5inoRHWPY4V6x5ASUOBDUCRftgzWA3mpjcL99ZYMN7dCGd hbMJtSrnAQjh4b6BAAWzu9bOclClDN/uQee+Hg94xTgfkWBWEUXQwFtRgsGSmsRgcQeQ a10vFtetIMilK6gwcg1gWszhlifLRKjtQO5rczwNfw1btAzoebEPpKe+pm+e4swoboxY 40id4ZvFWr1fEC8AvNJRNIuM1rDGWbMcK4D4nfPjAv2rZXovMB69vkEQm7X7yxe/jQ3O ha7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EDPb40iE; 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 e3si2610768edj.169.2020.04.24.02.58.14; Fri, 24 Apr 2020 02:58:37 -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=EDPb40iE; 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 S1726857AbgDXJ4p (ORCPT + 99 others); Fri, 24 Apr 2020 05:56:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726839AbgDXJ4p (ORCPT ); Fri, 24 Apr 2020 05:56:45 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 958BFC09B045; Fri, 24 Apr 2020 02:56:44 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id o15so4416565pgi.1; Fri, 24 Apr 2020 02:56:44 -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=8g1Qeu2PJu2OXoQ3lMahtFGRconFZq/a+DVsXd6HwAs=; b=EDPb40iEk4xe3gjopzZRdm0PXV3UNcBpXaXQwvVkK6Gks2ubrPWTqneru4oMuXdOQ+ m7wy7cLJ3DarRKECjTxse5/OCNU8WhkX9FzcjaAsbkcSJjgUqg9VujC2sVwjqPSN3tyA /ANiw4DBFT5aOy0Bku0574L44kTcWhA4BioScPGRYTP/Z9SKqeC8o8RzXN5EK6K83lym Xh7XjAfAxREZFaFXIbMziFSjKK1KTPY3/8ZZrPvK3zwGMd59OGKyaH/uAmT1ctyVznxb l1TOx83AIqjULTw+Oxi1uQKjo5n/eRoROEUseVnCN2ta84Kd6xXTNnPJLShRiFASMzbl azdA== 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=8g1Qeu2PJu2OXoQ3lMahtFGRconFZq/a+DVsXd6HwAs=; b=ewq+Cc8G8RZhoknsgZyzHiyOrvn6vqKnDO1pyQ/dPT/Ndt4hMnaTXW84GBEGmdtVlF Qf6l8pXJFuxDOCzlzJonYRnCRjU6BnfWmOAeahVxDDNn1to7mjOdYba/lCqiCuXtvlwf zGSW+pcnzmB1KUNeHjQF6tdwZhlQM4pj5fyJJqXspR0TUqC6AX4eV9yYixKeQ1bXb9Bh RQNfaELRsGjCWbIdYn6V+nW0QIJrJK48GyZGTimOYtwwFIWFcegqIcYfjdcuWklwqrl4 UVSr7+hcoYfn2H60yrczeh0mfEt3cX+hYa4rwxbcsR+N/Pg3RQBY9gq5awPPuubLSxl3 V71A== X-Gm-Message-State: AGi0Pua9DD/qNKz34hkYEtenx4ycPHuO2bigPst+K+uF4XWpT7l0uLwG 4OY9OR9PeLShf5sl3jlbwSIzeIEa6BDHbp/NLjs= X-Received: by 2002:a63:1d4:: with SMTP id 203mr8109776pgb.74.1587722204197; Fri, 24 Apr 2020 02:56:44 -0700 (PDT) MIME-Version: 1.0 References: <20200424031617.24033-1-calvin.johnson@oss.nxp.com> <20200424031617.24033-3-calvin.johnson@oss.nxp.com> In-Reply-To: <20200424031617.24033-3-calvin.johnson@oss.nxp.com> From: Andy Shevchenko Date: Fri, 24 Apr 2020 12:56:37 +0300 Message-ID: Subject: Re: [net-next PATCH v1 2/2] phylink: introduce phylink_fwnode_phy_connect() To: Calvin Johnson Cc: linux.cj@gmail.com, Jeremy Linton , Andrew Lunn , Florian Fainelli , Russell King - ARM Linux admin , Cristi Sovaiala , Florin Laurentiu Chiculita , Ioana Ciornei , Madalin Bucur , Laurentiu Tudor , ACPI Devel Maling List , Diana Madalina Craciun , linux-arm Mailing List , Pankaj Bansal , Linux Kernel Mailing List , netdev , Varun Sethi , Marcin Wojtas , Makarand Pawagi , "Rajesh V . Bikkina" , "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 Fri, Apr 24, 2020 at 6:17 AM Calvin Johnson wrote: > > Define phylink_fwnode_phy_connect() to connect phy specified by > a fwnode to a phylink instance. This function will handle both > DT and ACPI nodes. > #include > #include > #include > +#include Looks like broken order. > + if (is_of_node(fwnode)) { > + } else if (is_acpi_node(fwnode)) { > + } I'm wondering if there is an API that allows you to drop all this stuff. In property provider agnostic code we really don't want to see this. > + if (!phy_dev) > + return -ENODEV; -- With Best Regards, Andy Shevchenko