From patchwork Fri May 14 20:54:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alper Nebi Yasak X-Patchwork-Id: 1478684 X-Patchwork-Delegate: narmstrong@baylibre.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=n56jXO9/; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FhglD0WYqz9sCD for ; Sat, 15 May 2021 06:55:04 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 73EFC80C63; Fri, 14 May 2021 22:54:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="n56jXO9/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3025380C63; Fri, 14 May 2021 22:54:54 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7C20A80C63 for ; Fri, 14 May 2021 22:54:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=alpernebiyasak@gmail.com Received: by mail-ej1-x636.google.com with SMTP id s22so340761ejv.12 for ; Fri, 14 May 2021 13:54:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=650vo/JnsO83lncYNMYnBW8MqGL5axE+oic61w9qcts=; b=n56jXO9/+jCyar7ia12Rz5tyCq7xXjiMXwSWIrfaxuYC2pnCriQVXrJgP8Qv1IHPt7 uULYOyi+AszWCf42nQOQ9STfDuYJQmNjmnpSn6yf1NBsQZvthxOGYfLMknMrJMN2FQmb WfebDL1bkZk404OA6aC1Krwc5Y4EhcD5zx7VtTGbQC9Q+HSGl1InPR3SAmAtoQgjaJ64 CB8kjVdVbhpmUOMzh5rvijzdnlONQu8P0r4wYCZgQ1KVpdspt0O3PO2xr8OFIUoHDzNV 2maV+Q67DDZnAqu6vVP1Lq6s0ZzyOLnYCDHl+30e0o5+r86OJQwdRkpdvFo2DEtdlTl2 btug== 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:mime-version :content-transfer-encoding; bh=650vo/JnsO83lncYNMYnBW8MqGL5axE+oic61w9qcts=; b=YgWf4WyUthQXiIXvAGq82xPgDsy8TPKBs/7cC3POT5etSaxqvUtzjOVGSY2zmlzIqm lCFQW+/DcUW73siU7AhyDAawTPKS7GtvaY1SLnuvklU46rXaCV35Fzp5n7caeV1GrCVG KO214CmvgivwKLYPbW7tq/sHeVBudjsn/S7pi3LMXzNrODc4El1xZ3km82hyMnv/aQ/3 2E8dSXzuS/IVeQdHpn7K4+dAW3FWu/Ga2r9Ub54KBifmg7lvd59ygb/HAVf1uHGxegGO LrapZrWhwMcdHp6g+gHyGEE6bTU2qEe0bzcN+BHwRdGnGbXTQjGwLQ+x552f7UY0gRAP X8nA== X-Gm-Message-State: AOAM5314/m5Ri66rRyNam5HoycanTGR8ZCDlzWr0OKKKP3UuzgVMFjsB 3m0G/cTPW8Z3jXPjVCnAsoMblgi7UfI= X-Google-Smtp-Source: ABdhPJxxAtI8MO+CYfvEK8M057aW8L7Ic+rjcEKIlW6xkfoo/fKK4jGDjVx0RwLav/KdEghvgvnkWw== X-Received: by 2002:a17:906:924a:: with SMTP id c10mr11265352ejx.415.1621025690964; Fri, 14 May 2021 13:54:50 -0700 (PDT) Received: from localhost.localdomain ([178.233.26.119]) by smtp.gmail.com with ESMTPSA id n25sm5210171edb.26.2021.05.14.13.54.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 May 2021 13:54:50 -0700 (PDT) From: Alper Nebi Yasak To: u-boot@lists.denx.de Cc: Neil Armstrong , Joe Hershberger , Simon Glass , u-boot-amlogic@groups.io, Alper Nebi Yasak Subject: [PATCH 1/2] phy: meson-axg-mipi: Rename "priv_auto_alloc_size" to "priv_auto" Date: Fri, 14 May 2021 23:54:19 +0300 Message-Id: <20210514205421.65093-1-alpernebiyasak@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean With commit 41575d8e4c33 ("dm: treewide: Rename auto_alloc_size members to be shorter") "priv_auto_alloc_size" was renamed to "priv_auto". Apply the rename to these two drivers as well. Fixes: 4547551aa019 ("phy: Add Amlogic AXG MIPI PCIe Analog PHY driver") Fixes: 7ef19503bacf ("phy: Add Amlogic AXG MIPI D-PHY driver") Signed-off-by: Alper Nebi Yasak Reviewed-by: Simon Glass --- drivers/phy/meson-axg-mipi-dphy.c | 2 +- drivers/phy/meson-axg-mipi-pcie-analog.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/meson-axg-mipi-dphy.c b/drivers/phy/meson-axg-mipi-dphy.c index 8b2469793ddc..cf2a1cd14c7f 100644 --- a/drivers/phy/meson-axg-mipi-dphy.c +++ b/drivers/phy/meson-axg-mipi-dphy.c @@ -389,5 +389,5 @@ U_BOOT_DRIVER(meson_axg_mipi_dphy) = { .of_match = meson_axg_mipi_dphy_ids, .probe = meson_axg_mipi_dphy_probe, .ops = &meson_axg_mipi_dphy_ops, - .priv_auto_alloc_size = sizeof(struct phy_meson_axg_mipi_dphy_priv), + .priv_auto = sizeof(struct phy_meson_axg_mipi_dphy_priv), }; diff --git a/drivers/phy/meson-axg-mipi-pcie-analog.c b/drivers/phy/meson-axg-mipi-pcie-analog.c index 276e6004e5ee..7106c23d508f 100644 --- a/drivers/phy/meson-axg-mipi-pcie-analog.c +++ b/drivers/phy/meson-axg-mipi-pcie-analog.c @@ -229,5 +229,5 @@ U_BOOT_DRIVER(meson_axg_mipi_pcie_analog) = { .of_match = meson_axg_mipi_pcie_analog_ids, .probe = meson_axg_mipi_pcie_analog_probe, .ops = &meson_axg_mipi_pcie_analog_ops, - .priv_auto_alloc_size = sizeof(struct phy_meson_axg_mipi_pcie_analog_priv), + .priv_auto = sizeof(struct phy_meson_axg_mipi_pcie_analog_priv), }; From patchwork Fri May 14 20:54:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alper Nebi Yasak X-Patchwork-Id: 1478685 X-Patchwork-Delegate: narmstrong@baylibre.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=KGrl+AQR; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FhglT4kvqz9sCD for ; Sat, 15 May 2021 06:55:17 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 18C5882B21; Fri, 14 May 2021 22:55:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="KGrl+AQR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9DB0080EEF; Fri, 14 May 2021 22:54:56 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2201380EEF for ; Fri, 14 May 2021 22:54:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=alpernebiyasak@gmail.com Received: by mail-ej1-x62b.google.com with SMTP id s22so340846ejv.12 for ; Fri, 14 May 2021 13:54:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xVfzAYwLEbfrxyfyHF1DvqO+kkiib1l13DQIAXj6XKs=; b=KGrl+AQRd2DVw+LdqJOjWPT6cqgAIFrSjp7svYsrCiKknZhSr8Fz9V3vA7kmjWr+a4 viudKwdsAXROxyCdGH5quBkEG355/upuofnqqPGfs4T5aJn+mJnRHBFzDjw2DztvrsSq 5rM0yQ10kYL/LtIFNfrdOXFm1yMQ7FTAsGcIrPYl99IQ5X0ZxRFxDsJTMMz2jA3c6WTg OvxMUpeK9vWURkAEQRrzLgyYHdylyZ7mC1QNjnlf1Mb0atiscW3VzUiLNlZ+G3C+eLXw mh2QWec7U5aMypctUdw14k4XwWC46e/6xnE9sFWBAD/by79asQYKTlktGqGS6vzmNHxK 9V0g== 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:mime-version:content-transfer-encoding; bh=xVfzAYwLEbfrxyfyHF1DvqO+kkiib1l13DQIAXj6XKs=; b=RahPyC52GVlXjfoJjmGpYjxNVyQP/UIDy8gMZY5HUwYrSFXkv3RU48Q1iDBRwgjOFA dIF9o5Lq51ZLDDf/LIu7AWeDulLTYa2t8zpXB8T4ZlNhClBljJ8q8L0f1eys+L0nDkAv likuWila/Ify1g0UUxKyZCoRRDPEoByX5ldSeA03BhD3NG9vZLZBVAZIKPTvGabUT7Pf GyTzyNYSLZQm4RNZ7U8c3LJMrwUNCBdF2MedJd1jrKEPTw64FJHD84ohQS5I19oIfBub 3T5WEaeWm20Y3Bq6NMaWV5xLE8nuenCA3whmARzk8HhCQsB/VXSjGfUBew/WtiOSnbKt GlGA== X-Gm-Message-State: AOAM5318Jzwcwsc+1J5l+HvGM0sa3o0iUYJjXxhnp+5OssJq4rXHO97h x5INNafUMrIEg/uZCbxfVVP/kL28QJU= X-Google-Smtp-Source: ABdhPJxsUOioDuA/QTt8SqI1EDg9gWApC3k+OpSMn60C0twzsJnZwZX4Kn4U1d6ryb5d141JV3Vtbg== X-Received: by 2002:a17:906:55cc:: with SMTP id z12mr43880324ejp.318.1621025692677; Fri, 14 May 2021 13:54:52 -0700 (PDT) Received: from localhost.localdomain ([178.233.26.119]) by smtp.gmail.com with ESMTPSA id n25sm5210171edb.26.2021.05.14.13.54.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 May 2021 13:54:52 -0700 (PDT) From: Alper Nebi Yasak To: u-boot@lists.denx.de Cc: Neil Armstrong , Joe Hershberger , Simon Glass , u-boot-amlogic@groups.io, Alper Nebi Yasak Subject: [PATCH 2/2] phy: meson-axg-mipi: Access parent ofnode through dev_ofnode() Date: Fri, 14 May 2021 23:54:20 +0300 Message-Id: <20210514205421.65093-2-alpernebiyasak@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210514205421.65093-1-alpernebiyasak@gmail.com> References: <20210514205421.65093-1-alpernebiyasak@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean With commit 84a42ae36683 ("dm: core: Rename device node to indicate it is private") and commit f10643cf8a4c ("dm: core: Access device ofnode through functions") accesses to the "node" member were replaced with dev_ofnode(). Also apply that replacement here. Fixes: 4547551aa019 ("phy: Add Amlogic AXG MIPI PCIe Analog PHY driver") Signed-off-by: Alper Nebi Yasak Reviewed-by: Simon Glass --- drivers/phy/meson-axg-mipi-pcie-analog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/meson-axg-mipi-pcie-analog.c b/drivers/phy/meson-axg-mipi-pcie-analog.c index 7106c23d508f..236ea1ce5ca7 100644 --- a/drivers/phy/meson-axg-mipi-pcie-analog.c +++ b/drivers/phy/meson-axg-mipi-pcie-analog.c @@ -211,7 +211,7 @@ int meson_axg_mipi_pcie_analog_probe(struct udevice *dev) { struct phy_meson_axg_mipi_pcie_analog_priv *priv = dev_get_priv(dev); - priv->regmap = syscon_node_to_regmap(dev_get_parent(dev)->node); + priv->regmap = syscon_node_to_regmap(dev_ofnode(dev_get_parent(dev))); if (IS_ERR(priv->regmap)) return PTR_ERR(priv->regmap);