Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3168212pxb; Tue, 12 Jan 2021 07:57:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJzgYfB6C/x0Jy4VuaPJgR2JYXu79vrwTJnRH3+faJ7MnOWB97q7h9+GyjKBdmprs4nlHR0D X-Received: by 2002:a05:6402:17a3:: with SMTP id j3mr3881321edy.333.1610467060856; Tue, 12 Jan 2021 07:57:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610467060; cv=none; d=google.com; s=arc-20160816; b=uCVUDHNJpb29pGePFl4K25luSm7w5cbvF094oMkJNA6WhVyU3fsYQNT/mPUdRFU+X6 prjbp7276FU1ktZdf2dCixmNYgOQuIob9sizxfUEjDwZ84jVb74sSlEzUh0oU3YVOLrx fotsOzRm6wTfZRiL+5RGt300vM0i2d6iblxCew04QTiYcDbZx5Lt2/nNf47dvQKgkAai 9Jk6tEQD4WjQUvAFU1FItvWXzQGWxKXck+B6nwZMQP0S5RUCDNoIEM9UVGfQ36t3y5Sv O2iNWvAhsG6T4vWISWMUc4PkcX8yObq8w5jXWqCi8jDcUNL4eZKN92UrU1Ux3x3emI1R 2TnQ== 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=cAG/VZYg1tbBVWV56Yza/FNpS4EtYQ911pPNLEyfbHs=; b=n92mdxu1lEFYDQNUAkTDmIfvYk7Z7FYpCoN52hJdF0bfhRFpq0xx2Xlei8PtJ6f+b2 mz3dBqIGO1z1o77l1MOXjCh6YoehFxOcCxwk9fkus4Kc+Z5H3Of5w03Z+kImV08o1Dgo IkuTYjzM0w27wWY9g2qrat7HOKRnqO5dKuic6L/ALgKGqf4F69q4h9kQzjOxcLNfzcpb x3N/kp8irOGrT7uzplQFzl5ChIUXU/H1h5Rp1Xgfppok1kMqRywj349boELbJrNWfB57 LdZtkewOyRge5sFSS7q02CagUj/HDx0W+eWPSwXxtfqd/IlR3gUn+yvOZzPTbx3E9yO5 SFRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ys1KzpZ+; 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 x8si1706081edl.539.2021.01.12.07.57.17; Tue, 12 Jan 2021 07:57:40 -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=Ys1KzpZ+; 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 S2404122AbhALPzq (ORCPT + 99 others); Tue, 12 Jan 2021 10:55:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392072AbhALPzp (ORCPT ); Tue, 12 Jan 2021 10:55:45 -0500 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD09CC061575; Tue, 12 Jan 2021 07:55:05 -0800 (PST) Received: by mail-pg1-x529.google.com with SMTP id q7so1712115pgm.5; Tue, 12 Jan 2021 07:55:05 -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=cAG/VZYg1tbBVWV56Yza/FNpS4EtYQ911pPNLEyfbHs=; b=Ys1KzpZ+2UTQ9MULoo45Xeb2yGMin33tUSG8zraaH36nWyUwv4nhZfAbh3dQ9pBXSz rJa79m6ncPB8kZaHaNws7medrUAqpVMgX1IV2V8qkCTtzxs+geeHlrMf0wcY3QD6gkUt KD7u47jhGWw9uPdsJ8w/n/yz0ZZGV/1vXFmvwokvDTSgmTLo410s57X/3Qe2Z5jx1i3m lKkHq9HMd46wAQYciF72BEUH4tW6R0U2G6oYOg5dAVd/AESkKb0h71yZ3/34vynd6UxX JR15TiJOCkRp0ZXNJNqM78O/0GwSymOOSay/aZwTM1dmreGn1IaDvnEmo1t1LRgDacuZ ciXA== 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=cAG/VZYg1tbBVWV56Yza/FNpS4EtYQ911pPNLEyfbHs=; b=G/+3hp7H+aVDRyfdhQxHyt1vP+PMZrUWRi3q1Hc4uc36h20AEkNY4CDo2pP/aqH+r7 FotAyLdTFu0pbAqhBozCJQVwn6wN1iMO+ePxE4oH2AK7ADOQBq7afm0/YT2ky3KwyQ9f c4tAIRcZSszo+fUxhVg1cfLAyjrHSUhmep0chW1J2TTC32CTNHOZktHgTw/tUQ4PVuHW 0jHKRV3ygOrUDSOBwatDF6BCclNovnQcHVAM//rFs4ZMR9p+cSyUZ5bvyhNPHlFp4SJn u5pjKgYcFtvAHovItoxFvauoY1UlgE2pH9S+x6EXdSnSP2XkhaGUuV4GSm06KNGD9hYU uXtQ== X-Gm-Message-State: AOAM530Ch3TQPVVUWq+UxscbGJP74ZMSgZCkcsRq9vOZ4B0ZsNgiW/pI OVq//b57D4dhVADIjLsoOGRpciX8+0ayd9ExpA8y7qzYvSY= X-Received: by 2002:a63:74b:: with SMTP id 72mr5405532pgh.4.1610466905294; Tue, 12 Jan 2021 07:55:05 -0800 (PST) MIME-Version: 1.0 References: <20210112134054.342-1-calvin.johnson@oss.nxp.com> <20210112134054.342-14-calvin.johnson@oss.nxp.com> In-Reply-To: <20210112134054.342-14-calvin.johnson@oss.nxp.com> From: Andy Shevchenko Date: Tue, 12 Jan 2021 17:55:54 +0200 Message-ID: Subject: Re: [net-next PATCH v3 13/15] phylink: introduce phylink_fwnode_phy_connect() 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 , Diana Madalina Craciun , Linux Kernel Mailing List , netdev , Laurentiu Tudor , ACPI Devel Maling List , "linux.cj" , linux-arm Mailing List , "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 Tue, Jan 12, 2021 at 3:43 PM Calvin Johnson wrote: > > Define phylink_fwnode_phy_connect() to connect phy specified by > a fwnode to a phylink instance. ... > + phy_dev = fwnode_phy_find_device(phy_fwnode); > + /* We're done with the phy_node handle */ > + fwnode_handle_put(phy_fwnode); > + if (!phy_dev) > + return -ENODEV; > + > + ret = phy_attach_direct(pl->netdev, phy_dev, flags, > + pl->link_interface); > + if (ret) Hmm... Shouldn't you put phy_dev here? > + return ret; -- With Best Regards, Andy Shevchenko