From patchwork Wed Aug 18 02:17:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravana Kannan X-Patchwork-Id: 499622 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=-26.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT,USER_IN_DEF_DKIM_WL autolearn=ham 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 C7696C4320A for ; Wed, 18 Aug 2021 02:17:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9CACD60FE6 for ; Wed, 18 Aug 2021 02:17:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236781AbhHRCR7 (ORCPT ); Tue, 17 Aug 2021 22:17:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236413AbhHRCR5 (ORCPT ); Tue, 17 Aug 2021 22:17:57 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 149A2C0613CF for ; Tue, 17 Aug 2021 19:17:24 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id l85-20020a252558000000b0059537cd6aceso1270184ybl.16 for ; Tue, 17 Aug 2021 19:17:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=aU2NnwObR3/vWQ4u0/POg45Aj6bfAktvg+f1Ed8jh+w=; b=bxi5ittgZ9mh6tcLPQQ7b9xUAIQ5/sLpcM02KaNvoCL4gJIPPX3Z3AueLjCuJNtlYX bBdQspNsklXJydkvS4K7yps7zltGdUPqKdfcSdBwedGg4hgNLxIIug+jkDhHt3h29nQ6 2FAPCUnIhg47FOaRL349BwJd7jZegB9zvyTykjmnjBXLQcpxfvWFKqUt6x5USFkllvH4 W76Nr+B9pptPsBcmKdBb7wjjT1z4lCcvvMVsy7InCcVxXt8YxMzcfRRzFRN6YKRUYuNl oMsE+25A/M4yW1TvA02Xfz543hK+cLNgNOyg38dopSRGMJdX0OPFpF5YqnRBbaAYhT9v J2VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=aU2NnwObR3/vWQ4u0/POg45Aj6bfAktvg+f1Ed8jh+w=; b=AaJzBa1b29dnNXYWmpQHvkKoUINi5ERNWeoPUC1XUgVSn/nxEJdjqFZzyOzD/ZWeGp Mo8Qk0fymohvq4doTr54iSewK/6U7G3ZSp/DbUlBGlo3I9QAvCST2s9CkogsvyWuL8/F xM0Dfb/ldpqwS7nC0xlX4uWZAm/9dTIJB3EDJYa/5Ms1wmUF40DxzpB8yQbMQOEA0Yur ZWpMOjtFGYB6E/bbo+FxYjHS5rLXzTK5rbf6i/f203a8UnD0QNqG3aABrdaSFD2BWdT3 SVDTX5ue4Mr8Tnrb/pVNpf9E6QCXSDvGBIED1PwCcfN9VdlBr6/hkfE/+xUXh3MgC1iQ tkOg== X-Gm-Message-State: AOAM533R0H59mpcsW4Hei6XMkIqkrKyKEH9SjQROc2bQzTiXA1gbkQOn lOg6U4DO1+y632tBbKyzxNvGMIaf2VvtojA= X-Google-Smtp-Source: ABdhPJyNfDSXQfFmt2nxKDc75KDdbk6WVOvx/5kOmOksyJitPli2Kb36pRWtwSBAy3X8HxRS4q7pOAJUl1iexME= X-Received: from saravanak.san.corp.google.com ([2620:15c:2d:3:7750:a56d:5272:72cb]) (user=saravanak job=sendgmr) by 2002:a25:c712:: with SMTP id w18mr8231275ybe.390.1629253043246; Tue, 17 Aug 2021 19:17:23 -0700 (PDT) Date: Tue, 17 Aug 2021 19:17:16 -0700 Message-Id: <20210818021717.3268255-1-saravanak@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.33.0.rc1.237.g0d66db33f3-goog Subject: [PATCH v2] of: property: fw_devlink: Add support for "phy-handle" property From: Saravana Kannan To: Rob Herring , Frank Rowand Cc: Saravana Kannan , Andrew Lunn , netdev@vger.kernel.org, kernel-team@android.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Allows tracking dependencies between Ethernet PHYs and their consumers. Cc: Andrew Lunn Cc: netdev@vger.kernel.org Signed-off-by: Saravana Kannan --- v1 -> v2: - Fixed patch to address my misunderstanding of how PHYs get initialized. drivers/of/property.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/of/property.c b/drivers/of/property.c index 931340329414..0c0dc2e369c0 100644 --- a/drivers/of/property.c +++ b/drivers/of/property.c @@ -1291,6 +1291,7 @@ DEFINE_SIMPLE_PROP(pwms, "pwms", "#pwm-cells") DEFINE_SIMPLE_PROP(resets, "resets", "#reset-cells") DEFINE_SIMPLE_PROP(leds, "leds", NULL) DEFINE_SIMPLE_PROP(backlight, "backlight", NULL) +DEFINE_SIMPLE_PROP(phy_handle, "phy-handle", NULL) DEFINE_SUFFIX_PROP(regulators, "-supply", NULL) DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells") @@ -1379,6 +1380,7 @@ static const struct supplier_bindings of_supplier_bindings[] = { { .parse_prop = parse_resets, }, { .parse_prop = parse_leds, }, { .parse_prop = parse_backlight, }, + { .parse_prop = parse_phy_handle, }, { .parse_prop = parse_gpio_compat, }, { .parse_prop = parse_interrupts, }, { .parse_prop = parse_regulators, },