* [PATCH 1/2] phy: meson-axg-mipi: Rename "priv_auto_alloc_size" to "priv_auto"
@ 2021-05-14 20:54 Alper Nebi Yasak
2021-05-14 20:54 ` [PATCH 2/2] phy: meson-axg-mipi: Access parent ofnode through dev_ofnode() Alper Nebi Yasak
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Alper Nebi Yasak @ 2021-05-14 20:54 UTC (permalink / raw)
To: u-boot
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 <alpernebiyasak@gmail.com>
---
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),
};
--
2.31.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2] phy: meson-axg-mipi: Access parent ofnode through dev_ofnode()
2021-05-14 20:54 [PATCH 1/2] phy: meson-axg-mipi: Rename "priv_auto_alloc_size" to "priv_auto" Alper Nebi Yasak
@ 2021-05-14 20:54 ` Alper Nebi Yasak
2021-05-15 15:19 ` Simon Glass
2021-07-27 8:34 ` Neil Armstrong
2021-05-15 15:19 ` [PATCH 1/2] phy: meson-axg-mipi: Rename "priv_auto_alloc_size" to "priv_auto" Simon Glass
2021-07-27 8:34 ` Neil Armstrong
2 siblings, 2 replies; 6+ messages in thread
From: Alper Nebi Yasak @ 2021-05-14 20:54 UTC (permalink / raw)
To: u-boot
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 <alpernebiyasak@gmail.com>
---
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);
--
2.31.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2] phy: meson-axg-mipi: Access parent ofnode through dev_ofnode()
2021-05-14 20:54 ` [PATCH 2/2] phy: meson-axg-mipi: Access parent ofnode through dev_ofnode() Alper Nebi Yasak
@ 2021-05-15 15:19 ` Simon Glass
2021-07-27 8:34 ` Neil Armstrong
1 sibling, 0 replies; 6+ messages in thread
From: Simon Glass @ 2021-05-15 15:19 UTC (permalink / raw)
To: u-boot
On Fri, 14 May 2021 at 14:54, Alper Nebi Yasak <alpernebiyasak@gmail.com> wrote:
>
> 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 <alpernebiyasak@gmail.com>
> ---
>
> drivers/phy/meson-axg-mipi-pcie-analog.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Reviewed-by: Simon Glass <sjg@chromium.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] phy: meson-axg-mipi: Access parent ofnode through dev_ofnode()
2021-05-14 20:54 ` [PATCH 2/2] phy: meson-axg-mipi: Access parent ofnode through dev_ofnode() Alper Nebi Yasak
2021-05-15 15:19 ` Simon Glass
@ 2021-07-27 8:34 ` Neil Armstrong
1 sibling, 0 replies; 6+ messages in thread
From: Neil Armstrong @ 2021-07-27 8:34 UTC (permalink / raw)
To: Alper Nebi Yasak, u-boot; +Cc: Joe Hershberger, Simon Glass, u-boot-amlogic
On 14/05/2021 22:54, Alper Nebi Yasak wrote:
> 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 <alpernebiyasak@gmail.com>
> ---
>
> 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);
>
>
Applied to u-boot-amlogic,
Thanks,
Neil
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/2] phy: meson-axg-mipi: Rename "priv_auto_alloc_size" to "priv_auto"
2021-05-14 20:54 [PATCH 1/2] phy: meson-axg-mipi: Rename "priv_auto_alloc_size" to "priv_auto" Alper Nebi Yasak
2021-05-14 20:54 ` [PATCH 2/2] phy: meson-axg-mipi: Access parent ofnode through dev_ofnode() Alper Nebi Yasak
@ 2021-05-15 15:19 ` Simon Glass
2021-07-27 8:34 ` Neil Armstrong
2 siblings, 0 replies; 6+ messages in thread
From: Simon Glass @ 2021-05-15 15:19 UTC (permalink / raw)
To: u-boot
On Fri, 14 May 2021 at 14:54, Alper Nebi Yasak <alpernebiyasak@gmail.com> wrote:
>
> 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 <alpernebiyasak@gmail.com>
> ---
>
> drivers/phy/meson-axg-mipi-dphy.c | 2 +-
> drivers/phy/meson-axg-mipi-pcie-analog.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Simon Glass <sjg@chromium.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] phy: meson-axg-mipi: Rename "priv_auto_alloc_size" to "priv_auto"
2021-05-14 20:54 [PATCH 1/2] phy: meson-axg-mipi: Rename "priv_auto_alloc_size" to "priv_auto" Alper Nebi Yasak
2021-05-14 20:54 ` [PATCH 2/2] phy: meson-axg-mipi: Access parent ofnode through dev_ofnode() Alper Nebi Yasak
2021-05-15 15:19 ` [PATCH 1/2] phy: meson-axg-mipi: Rename "priv_auto_alloc_size" to "priv_auto" Simon Glass
@ 2021-07-27 8:34 ` Neil Armstrong
2 siblings, 0 replies; 6+ messages in thread
From: Neil Armstrong @ 2021-07-27 8:34 UTC (permalink / raw)
To: Alper Nebi Yasak, u-boot; +Cc: Joe Hershberger, Simon Glass, u-boot-amlogic
On 14/05/2021 22:54, Alper Nebi Yasak wrote:
> 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 <alpernebiyasak@gmail.com>
> ---
>
> 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),
> };
>
Applied to u-boot-amlogic,
Thanks,
Neil
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-07-27 8:34 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-14 20:54 [PATCH 1/2] phy: meson-axg-mipi: Rename "priv_auto_alloc_size" to "priv_auto" Alper Nebi Yasak
2021-05-14 20:54 ` [PATCH 2/2] phy: meson-axg-mipi: Access parent ofnode through dev_ofnode() Alper Nebi Yasak
2021-05-15 15:19 ` Simon Glass
2021-07-27 8:34 ` Neil Armstrong
2021-05-15 15:19 ` [PATCH 1/2] phy: meson-axg-mipi: Rename "priv_auto_alloc_size" to "priv_auto" Simon Glass
2021-07-27 8:34 ` Neil Armstrong
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.