Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5363332imm; Tue, 19 Jun 2018 09:13:21 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJRozvpCD4phy9hqz9RY4K3vnB465UKespwhZhVKdwHuTV2K6Jdssx/12FVoUUWsDtUFUlJ X-Received: by 2002:a63:3e83:: with SMTP id l125-v6mr15696711pga.355.1529424801855; Tue, 19 Jun 2018 09:13:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529424801; cv=none; d=google.com; s=arc-20160816; b=n28CmH1/biHfbgu8V5BIuP6sXCFedGnctctZNwBxIgGf4rVm/vG1EBjfrCSKEsmq4u BQNQ2zhJ1VEIy2BBgI+s30wHRzWMBNzGgANRrmdN7Cs1sOo95R7YJGrE0X9RupAtw/mQ k/H9denQXFwQWc0QycuTFWQ/adO8BhB1ONsh9ao2G/jz5WVN+fb1gkSHhWVrre1IopF/ 5mEk4xhGhiYAprP5UKmQIjnCa9HTE6C+yvnU3gIhbLEU2J2IImVGZP07jNRcaGRgPnKV oOuKYrnTfFavQfmtZA9etzdPGC8hUbn5tjsY93iEyJgrvZuszVlKPDoYuWwACPAW1Or/ QJKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=V0eszlvvLll1jSCx8Hip/81hnp7ScaDxD1FHTBML81M=; b=FMROaLiwypA0VIUL5siuI2MPrjN6vybMoFDITOlwMZhomG2wdHkeFo8nB3pMrDCERn F59nqQOZCxQtLZEo6GzIthGEfhJBpp8kK0UWdf94InzOFLpEV6Sx/pAh9BgzOaCsi71Y Ufn9M/Dt+x8g32bBvbgFTdN0tv1f4yZRP92GQFaSIj9WF1q8lGh/GbgJV1hL/pCdQE23 xVFZRMX691i4dkIFSPMpwJDde4DieaKklKSvtDypdw9chjdQZKMyHXXHGkdXF7rqvvQG HSOj11KgecuCA8nSL2+MEMqttsnayYpuLxPPpnDXN6aviMR0ylMHrncLLtYEV5uSNkV6 vnCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=Pup7JuNJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a65-v6si58154pfa.148.2018.06.19.09.13.08; Tue, 19 Jun 2018 09:13:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=Pup7JuNJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967098AbeFSQLL (ORCPT + 99 others); Tue, 19 Jun 2018 12:11:11 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:39002 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967036AbeFSQKB (ORCPT ); Tue, 19 Jun 2018 12:10:01 -0400 Received: by mail-wr0-f196.google.com with SMTP id w7-v6so233691wrn.6 for ; Tue, 19 Jun 2018 09:10:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=V0eszlvvLll1jSCx8Hip/81hnp7ScaDxD1FHTBML81M=; b=Pup7JuNJPsFQJmBrceWSEs+VH9dBEmsCHIYo2HIu9Idvbh6YdnURDYkuFxMr7Ytwxv tAZv5dtEUoOtyTfU9ql3NxGHIvNRGDFrKyWbudD0Nw8Sw0pJdysfFVPphv8n44sEtUrJ 6a1fWvEFihfJ9NkPkPK5askHHnsxZzPpyYsK0XPnRSn1UUQ/aCWnKeW9J3QMKdJjvCFq VMXXaAu8CjKt72VPhjNkeWTG0KnI8RRuj8B9pAoJuojHiy9ivab2bkrLMeFpcqoTVfIR AuJOn95quBCl0vT09/c4U6JZ7pTVXksL+zfVrCRYmZUniK/dNqyNE9340bII+azBDwUw KMgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=V0eszlvvLll1jSCx8Hip/81hnp7ScaDxD1FHTBML81M=; b=aJ35VybXHWARBFbRCyGEPsa6aHPpB1IcdGeLFcFQdh4nRX7VyIxOtxIE9NUQXmUER0 iU+qNhw/6yTjUDzqWnhrbCpUCvUwzOHUPLXX8iv1/PBK8s5ZubJ+j3vJhEo2Swp86xRj IL5JzNiprZvgAXgPIKG5EcDM1iPYv8SiKca/l/OCCLPKVDKFBRJS7ila4OKjieXBAUER esHqMlPkj0fD8kJdVbnn0V0tFJhVfEYVt6u//ziNzhbqqlqwa+vjb6K5Cbtu/J1Wqvcf U9ORW0ghDgVSLH/qAhmix6jW4V3EYlrLEWxNQLZ0t7Dc7vGOgANXi1Mk6zQopfXI3tuC Cc+Q== X-Gm-Message-State: APt69E01KkTXKBfetXK8ev0IXqoZQs5AxnsA05zoSiZCdPMTyOFhSDuY F0b8p0K6VP9fx9EtNp/EWqtICQ== X-Received: by 2002:adf:9187:: with SMTP id 7-v6mr15765097wri.69.1529424600789; Tue, 19 Jun 2018 09:10:00 -0700 (PDT) Received: from brgl-bgdev.lan (LFbn-1-7080-22.w90-116.abo.wanadoo.fr. [90.116.249.22]) by smtp.gmail.com with ESMTPSA id 74-v6sm619327wmt.31.2018.06.19.09.09.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jun 2018 09:10:00 -0700 (PDT) From: Bartosz Golaszewski To: Grygorii Strashko , "David S . Miller" , Florian Fainelli , Dan Carpenter , Ivan Khoronzhuk , Rob Herring , Lukas Wunner , Kevin Hilman , David Lechner , Sekhar Nori , Andrew Lunn Cc: linux-omap@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 2/3] net: phy: set the of_node in the mdiodev's struct device Date: Tue, 19 Jun 2018 18:09:49 +0200 Message-Id: <20180619160950.6283-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180619160950.6283-1-brgl@bgdev.pl> References: <20180619160950.6283-1-brgl@bgdev.pl> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski Copy the of_node over from mii_bus's struct device. This is needed for device-tree systems to be able to check the mdio device's compatible string. Signed-off-by: Bartosz Golaszewski --- drivers/net/phy/phy_device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index bd0f339f69fd..a92d5ee61813 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c @@ -411,6 +411,7 @@ struct phy_device *phy_device_create(struct mii_bus *bus, int addr, int phy_id, mdiodev->dev.parent = &bus->dev; mdiodev->dev.bus = &mdio_bus_type; mdiodev->dev.type = &mdio_bus_phy_type; + mdiodev->dev.of_node = bus->dev.of_node; mdiodev->bus = bus; mdiodev->bus_match = phy_bus_match; mdiodev->addr = addr; -- 2.17.1