* [PATCH] memory: omap-gpmc: fixup wrongly hierarchy of the sub-devices
@ 2024-02-29 23:52 Brock.Zheng
2024-03-01 11:22 ` Roger Quadros
2024-03-01 11:40 ` Krzysztof Kozlowski
0 siblings, 2 replies; 11+ messages in thread
From: Brock.Zheng @ 2024-02-29 23:52 UTC (permalink / raw)
To: Roger Quadros, Tony Lindgren, Krzysztof Kozlowski, linux-omap,
linux-kernel
On TI-AM335x,my FPGA under GPMC local-bus can not work on 6.x kernel.
GPMC <--> FPGA <--> sub-devices....
I found that the platform sub-devices is in wrongly organized
hierarchy. The grandchildren are now under the GPMC device
directly, not under it's father(FPGA).
Signed-off-by: Brock.Zheng <yzheng@techyauld.com>
---
drivers/memory/omap-gpmc.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c
index 80d038884207..1f2568e43086 100644
--- a/drivers/memory/omap-gpmc.c
+++ b/drivers/memory/omap-gpmc.c
@@ -2175,6 +2175,7 @@ static int gpmc_probe_generic_child(struct platform_device *pdev,
int ret, cs;
u32 val;
struct gpmc_device *gpmc = platform_get_drvdata(pdev);
+ struct platform_device *child_pdev = NULL;
if (of_property_read_u32(child, "reg", &cs) < 0) {
dev_err(&pdev->dev, "%pOF has no 'reg' property\n",
@@ -2330,11 +2331,12 @@ static int gpmc_probe_generic_child(struct platform_device *pdev,
no_timings:
/* create platform device, NULL on error or when disabled */
- if (!of_platform_device_create(child, NULL, &pdev->dev))
+ child_pdev = of_platform_device_create(child, NULL, &pdev->dev);
+ if (!child_pdev)
goto err_child_fail;
/* create children and other common bus children */
- if (of_platform_default_populate(child, NULL, &pdev->dev))
+ if (of_platform_default_populate(child, NULL, &child_pdev->dev))
goto err_child_fail;
return 0;
--
2.44.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH] memory: omap-gpmc: fixup wrongly hierarchy of the sub-devices
2024-02-29 23:52 [PATCH] memory: omap-gpmc: fixup wrongly hierarchy of the sub-devices Brock.Zheng
@ 2024-03-01 11:22 ` Roger Quadros
2024-03-01 12:38 ` Andreas Kemnade
2024-03-01 11:40 ` Krzysztof Kozlowski
1 sibling, 1 reply; 11+ messages in thread
From: Roger Quadros @ 2024-03-01 11:22 UTC (permalink / raw)
To: Brock.Zheng, Tony Lindgren, Krzysztof Kozlowski, linux-omap,
linux-kernel
Hi,
Thanks for the patch but can you please re-send the patch in plain text format?
Please refer to this article for more details.
https://subspace.kernel.org/etiquette.html
On 01/03/2024 01:52, Brock.Zheng wrote:
> On TI-AM335x,my FPGA under GPMC local-bus can not work on 6.x kernel.
>
> GPMC <--> FPGA <--> sub-devices....
>
> I found that the platform sub-devices is in wrongly organized
> hierarchy. The grandchildren are now under the GPMC device
> directly, not under it's father(FPGA).>
> Signed-off-by: Brock.Zheng <yzheng@techyauld.com>
> ---
> drivers/memory/omap-gpmc.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c
> index 80d038884207..1f2568e43086 100644
> --- a/drivers/memory/omap-gpmc.c
> +++ b/drivers/memory/omap-gpmc.c
> @@ -2175,6 +2175,7 @@ static int gpmc_probe_generic_child(struct platform_device *pdev,
> int ret, cs;
> u32 val;
> struct gpmc_device *gpmc = platform_get_drvdata(pdev);
> + struct platform_device *child_pdev = NULL;
>
> if (of_property_read_u32(child, "reg", &cs) < 0) {
> dev_err(&pdev->dev, "%pOF has no 'reg' property\n",
> @@ -2330,11 +2331,12 @@ static int gpmc_probe_generic_child(struct platform_device *pdev,
> no_timings:
>
> /* create platform device, NULL on error or when disabled */
> - if (!of_platform_device_create(child, NULL, &pdev->dev))
> + child_pdev = of_platform_device_create(child, NULL, &pdev->dev);
> + if (!child_pdev)
> goto err_child_fail;
>
> /* create children and other common bus children */
> - if (of_platform_default_populate(child, NULL, &pdev->dev))
> + if (of_platform_default_populate(child, NULL, &child_pdev->dev))
> goto err_child_fail;
>
> return 0;
--
cheers,
-roger
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] memory: omap-gpmc: fixup wrongly hierarchy of the sub-devices
2024-02-29 23:52 [PATCH] memory: omap-gpmc: fixup wrongly hierarchy of the sub-devices Brock.Zheng
2024-03-01 11:22 ` Roger Quadros
@ 2024-03-01 11:40 ` Krzysztof Kozlowski
1 sibling, 0 replies; 11+ messages in thread
From: Krzysztof Kozlowski @ 2024-03-01 11:40 UTC (permalink / raw)
To: Brock.Zheng, Roger Quadros, Tony Lindgren, linux-omap,
linux-kernel
On 01/03/2024 00:52, Brock.Zheng wrote:
> On TI-AM335x,my FPGA under GPMC local-bus can not work on 6.x kernel.
>
> GPMC <--> FPGA <--> sub-devices....
>
> I found that the platform sub-devices is in wrongly organized
> hierarchy. The grandchildren are now under the GPMC device
> directly, not under it's father(FPGA).
>
> Signed-off-by: Brock.Zheng <yzheng@techyauld.com>
The dot '.' does not look like part of the name. Are you sure you
transliterated/translated your name correctly?
Also, please provide Fixes tag (see submitting patches document).
Your patch confused my mailer. It looks like HTML, but it seems it is
not. Maybe because of Content-Disposition: inline? Why do you have it?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] memory: omap-gpmc: fixup wrongly hierarchy of the sub-devices
2024-03-01 11:22 ` Roger Quadros
@ 2024-03-01 12:38 ` Andreas Kemnade
2024-03-01 13:41 ` Roger Quadros
0 siblings, 1 reply; 11+ messages in thread
From: Andreas Kemnade @ 2024-03-01 12:38 UTC (permalink / raw)
To: Roger Quadros
Cc: Brock.Zheng, Tony Lindgren, Krzysztof Kozlowski, linux-omap,
linux-kernel
Hi,
On Fri, 1 Mar 2024 13:22:12 +0200
Roger Quadros <rogerq@kernel.org> wrote:
> Hi,
>
> Thanks for the patch but can you please re-send the patch in plain text format?
> Please refer to this article for more details.
>
> https://subspace.kernel.org/etiquette.html
>
for my own education, can you specify against what the patch excactly offends?
I see no html there and
Content-Type: text/plain; charset=gb2312
So what do you consider not "plain" in that email?
Regards,
Andreas
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] memory: omap-gpmc: fixup wrongly hierarchy of the sub-devices
2024-03-01 12:38 ` Andreas Kemnade
@ 2024-03-01 13:41 ` Roger Quadros
2024-03-01 23:57 ` [PATCH] memory/omap-gpmc: " Brock Zheng
0 siblings, 1 reply; 11+ messages in thread
From: Roger Quadros @ 2024-03-01 13:41 UTC (permalink / raw)
To: Andreas Kemnade
Cc: Brock.Zheng, Tony Lindgren, Krzysztof Kozlowski, linux-omap,
linux-kernel
On 01/03/2024 14:38, Andreas Kemnade wrote:
> Hi,
>
> On Fri, 1 Mar 2024 13:22:12 +0200
> Roger Quadros <rogerq@kernel.org> wrote:
>
>> Hi,
>>
>> Thanks for the patch but can you please re-send the patch in plain text format?
>> Please refer to this article for more details.
>>
>> https://subspace.kernel.org/etiquette.html
>>
> for my own education, can you specify against what the patch excactly offends?
> I see no html there and
>
> Content-Type: text/plain; charset=gb2312
>
> So what do you consider not "plain" in that email?
>
I think I observed the same issue as Krzysztof. My mail client shows it like HTML
even though it is not.
--
cheers,
-roger
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] memory/omap-gpmc: fixup wrongly hierarchy of the sub-devices
2024-03-01 13:41 ` Roger Quadros
@ 2024-03-01 23:57 ` Brock Zheng
2024-03-02 16:25 ` Krzysztof Kozlowski
[not found] ` <beacb55c-951b-4177-83ab-94fda44cd2b7@kernel.org>
0 siblings, 2 replies; 11+ messages in thread
From: Brock Zheng @ 2024-03-01 23:57 UTC (permalink / raw)
To: Roger Quadros
Cc: Andreas Kemnade, Tony Lindgren, Krzysztof Kozlowski, linux-omap,
linux-kernel
Hi, all
Sorry for the wrong mail Content-Type. My Neomutt is not configured correctly.
Updated info here:
On TI-AM335x,my FPGA under GPMC local-bus can not work on 6.x kernel.
GPMC <--> FPGA <--> sub-devices....
I found that the platform sub-devices are in wrongly organized
hierarchy. The grandchildren are now under the GPMC device directly,
not under it's father(FPGA).
Signed-off-by: Brock.Zheng <yzheng@techyauld.com>
---
drivers/memory/omap-gpmc.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c
index 80d038884207..1f2568e43086 100644
--- a/drivers/memory/omap-gpmc.c
+++ b/drivers/memory/omap-gpmc.c
@@ -2175,6 +2175,7 @@ static int gpmc_probe_generic_child(struct platform_device *pdev,
int ret, cs;
u32 val;
struct gpmc_device *gpmc = platform_get_drvdata(pdev);
+ struct platform_device *child_pdev = NULL;
if (of_property_read_u32(child, "reg", &cs) < 0) {
dev_err(&pdev->dev, "%pOF has no 'reg' property\n",
@@ -2330,11 +2331,12 @@ static int gpmc_probe_generic_child(struct platform_device *pdev,
no_timings:
/* create platform device, NULL on error or when disabled */
- if (!of_platform_device_create(child, NULL, &pdev->dev))
+ child_pdev = of_platform_device_create(child, NULL, &pdev->dev);
+ if (!child_pdev)
goto err_child_fail;
/* create children and other common bus children */
- if (of_platform_default_populate(child, NULL, &pdev->dev))
+ if (of_platform_default_populate(child, NULL, &child_pdev->dev))
goto err_child_fail;
return 0;
--
2.44.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH] memory/omap-gpmc: fixup wrongly hierarchy of the sub-devices
2024-03-01 23:57 ` [PATCH] memory/omap-gpmc: " Brock Zheng
@ 2024-03-02 16:25 ` Krzysztof Kozlowski
[not found] ` <beacb55c-951b-4177-83ab-94fda44cd2b7@kernel.org>
1 sibling, 0 replies; 11+ messages in thread
From: Krzysztof Kozlowski @ 2024-03-02 16:25 UTC (permalink / raw)
To: Brock Zheng, Roger Quadros
Cc: Andreas Kemnade, Tony Lindgren, linux-omap, linux-kernel
On 02/03/2024 00:57, Brock Zheng wrote:
> Hi, all
>
> Sorry for the wrong mail Content-Type. My Neomutt is not configured correctly.
> Updated info here:
>
> On TI-AM335x,my FPGA under GPMC local-bus can not work on 6.x kernel.
>
> GPMC <--> FPGA <--> sub-devices....
>
I don't know what to do with this. Apply this patch yourself and check
the result - is this what you want in commit msg?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH] memory: omap-gpmc: fixup wrongly hierarchy of the sub-devices
[not found] ` <beacb55c-951b-4177-83ab-94fda44cd2b7@kernel.org>
@ 2024-03-03 8:18 ` Brock Zheng
2024-03-05 9:55 ` Roger Quadros
2024-03-08 16:48 ` Krzysztof Kozlowski
0 siblings, 2 replies; 11+ messages in thread
From: Brock Zheng @ 2024-03-03 8:18 UTC (permalink / raw)
To: Roger Quadros
Cc: Andreas Kemnade, Tony Lindgren, Krzysztof Kozlowski, linux-omap,
linux-kernel
On TI-AM335x,FPGA under GPMC local-bus can not work on 6.x kernel.
GPMC <--> FPGA <--> sub-devices....
I found that the platform sub-devices are in wrongly organized
hierarchy. The grandchildren are now under the GPMC device directly,
not under it's father(FPGA).
Signed-off-by: Brock.Zheng <yzheng@techyauld.com>
---
drivers/memory/omap-gpmc.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c
index 80d038884207..1f2568e43086 100644
--- a/drivers/memory/omap-gpmc.c
+++ b/drivers/memory/omap-gpmc.c
@@ -2175,6 +2175,7 @@ static int gpmc_probe_generic_child(struct platform_device *pdev,
int ret, cs;
u32 val;
struct gpmc_device *gpmc = platform_get_drvdata(pdev);
+ struct platform_device *child_pdev = NULL;
if (of_property_read_u32(child, "reg", &cs) < 0) {
dev_err(&pdev->dev, "%pOF has no 'reg' property\n",
@@ -2330,11 +2331,12 @@ static int gpmc_probe_generic_child(struct platform_device *pdev,
no_timings:
/* create platform device, NULL on error or when disabled */
- if (!of_platform_device_create(child, NULL, &pdev->dev))
+ child_pdev = of_platform_device_create(child, NULL, &pdev->dev);
+ if (!child_pdev)
goto err_child_fail;
/* create children and other common bus children */
- if (of_platform_default_populate(child, NULL, &pdev->dev))
+ if (of_platform_default_populate(child, NULL, &child_pdev->dev))
goto err_child_fail;
return 0;
--
2.44.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH] memory: omap-gpmc: fixup wrongly hierarchy of the sub-devices
2024-03-03 8:18 ` [PATCH] memory: omap-gpmc: " Brock Zheng
@ 2024-03-05 9:55 ` Roger Quadros
2024-03-08 16:48 ` Krzysztof Kozlowski
1 sibling, 0 replies; 11+ messages in thread
From: Roger Quadros @ 2024-03-05 9:55 UTC (permalink / raw)
To: Brock Zheng
Cc: Andreas Kemnade, Tony Lindgren, Krzysztof Kozlowski, linux-omap,
linux-kernel
On 03/03/2024 10:18, Brock Zheng wrote:
> On TI-AM335x,FPGA under GPMC local-bus can not work on 6.x kernel.
>
> GPMC <--> FPGA <--> sub-devices....
>
> I found that the platform sub-devices are in wrongly organized
> hierarchy. The grandchildren are now under the GPMC device directly,
> not under it's father(FPGA).
>
> Signed-off-by: Brock.Zheng <yzheng@techyauld.com>
Acked-by: Roger Quadros <rogerq@kernel.org>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] memory: omap-gpmc: fixup wrongly hierarchy of the sub-devices
2024-03-03 8:18 ` [PATCH] memory: omap-gpmc: " Brock Zheng
2024-03-05 9:55 ` Roger Quadros
@ 2024-03-08 16:48 ` Krzysztof Kozlowski
2024-03-26 9:09 ` Krzysztof Kozlowski
1 sibling, 1 reply; 11+ messages in thread
From: Krzysztof Kozlowski @ 2024-03-08 16:48 UTC (permalink / raw)
To: Brock Zheng, Roger Quadros
Cc: Andreas Kemnade, Tony Lindgren, linux-omap, linux-kernel
On 03/03/2024 09:18, Brock Zheng wrote:
> On TI-AM335x,FPGA under GPMC local-bus can not work on 6.x kernel.
>
> GPMC <--> FPGA <--> sub-devices....
>
> I found that the platform sub-devices are in wrongly organized
> hierarchy. The grandchildren are now under the GPMC device directly,
> not under it's father(FPGA).
>
> Signed-off-by: Brock.Zheng <yzheng@techyauld.com>
Your SoB still has '.' between names. I can remove it while applying.
It is too late in the cycle for me to pick it up. I will take it after
the merge window.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] memory: omap-gpmc: fixup wrongly hierarchy of the sub-devices
2024-03-08 16:48 ` Krzysztof Kozlowski
@ 2024-03-26 9:09 ` Krzysztof Kozlowski
0 siblings, 0 replies; 11+ messages in thread
From: Krzysztof Kozlowski @ 2024-03-26 9:09 UTC (permalink / raw)
To: Brock Zheng, Roger Quadros
Cc: Andreas Kemnade, Tony Lindgren, linux-omap, linux-kernel
On 08/03/2024 17:48, Krzysztof Kozlowski wrote:
> On 03/03/2024 09:18, Brock Zheng wrote:
>> On TI-AM335x,FPGA under GPMC local-bus can not work on 6.x kernel.
>>
>> GPMC <--> FPGA <--> sub-devices....
>>
>> I found that the platform sub-devices are in wrongly organized
>> hierarchy. The grandchildren are now under the GPMC device directly,
>> not under it's father(FPGA).
>>
>> Signed-off-by: Brock.Zheng <yzheng@techyauld.com>
>
> Your SoB still has '.' between names. I can remove it while applying.
> It is too late in the cycle for me to pick it up. I will take it after
> the merge window.
Although I wrote I could apply it, but:
1. There is still no fixes tag, even though I asked.
2. This is not marked as v2 and is attached to some other thread. Please
version your patches, so next one will be v3. Add changelog after ---.
Then send as a new patchset.
Please send v3 with above corrected.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2024-03-26 9:09 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-29 23:52 [PATCH] memory: omap-gpmc: fixup wrongly hierarchy of the sub-devices Brock.Zheng
2024-03-01 11:22 ` Roger Quadros
2024-03-01 12:38 ` Andreas Kemnade
2024-03-01 13:41 ` Roger Quadros
2024-03-01 23:57 ` [PATCH] memory/omap-gpmc: " Brock Zheng
2024-03-02 16:25 ` Krzysztof Kozlowski
[not found] ` <beacb55c-951b-4177-83ab-94fda44cd2b7@kernel.org>
2024-03-03 8:18 ` [PATCH] memory: omap-gpmc: " Brock Zheng
2024-03-05 9:55 ` Roger Quadros
2024-03-08 16:48 ` Krzysztof Kozlowski
2024-03-26 9:09 ` Krzysztof Kozlowski
2024-03-01 11:40 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox