* [PATCH -next] ACPI/IORT: Fix the error return code in iort_add_smmu_platform_device() @ 2017-02-05 15:45 Wei Yongjun 2017-02-06 10:04 ` Lorenzo Pieralisi 0 siblings, 1 reply; 6+ messages in thread From: Wei Yongjun @ 2017-02-05 15:45 UTC (permalink / raw) To: Lorenzo Pieralisi, Hanjun Guo, Sudeep Holla, Rafael J. Wysocki, Len Brown Cc: Wei Yongjun, linux-acpi From: Wei Yongjun <weiyongjun1@huawei.com> The error return code PTR_ERR(pdev) is always 0 since pdev is equal to 0 in this error handling case. Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> --- drivers/acpi/arm64/iort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c index e0d2e6e..655407a 100644 --- a/drivers/acpi/arm64/iort.c +++ b/drivers/acpi/arm64/iort.c @@ -828,7 +828,7 @@ static int __init iort_add_smmu_platform_device(struct acpi_iort_node *node) pdev = platform_device_alloc(ops->name, PLATFORM_DEVID_AUTO); if (!pdev) - return PTR_ERR(pdev); + return -ENOMEM; count = ops->iommu_count_resources(node); ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH -next] ACPI/IORT: Fix the error return code in iort_add_smmu_platform_device() 2017-02-05 15:45 [PATCH -next] ACPI/IORT: Fix the error return code in iort_add_smmu_platform_device() Wei Yongjun @ 2017-02-06 10:04 ` Lorenzo Pieralisi 2017-02-06 11:41 ` Rafael J. Wysocki 0 siblings, 1 reply; 6+ messages in thread From: Lorenzo Pieralisi @ 2017-02-06 10:04 UTC (permalink / raw) To: Wei Yongjun, rjw Cc: Hanjun Guo, Sudeep Holla, Len Brown, Wei Yongjun, linux-acpi On Sun, Feb 05, 2017 at 03:45:59PM +0000, Wei Yongjun wrote: > From: Wei Yongjun <weiyongjun1@huawei.com> > > The error return code PTR_ERR(pdev) is always 0 since pdev is > equal to 0 in this error handling case. > > Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> > --- > drivers/acpi/arm64/iort.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) It has been reported twice already: https://patchwork.kernel.org/patch/9521003/ Rafael, do you expect me to send you a pull request with IORT fixes ? I can't see Dan's patch in linux-acpi patchwork anymore, and there is another fix pending: https://patchwork.kernel.org/patch/9507041/ Please let me know how you want to handle them. Thanks ! Lorenzo > > diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c > index e0d2e6e..655407a 100644 > --- a/drivers/acpi/arm64/iort.c > +++ b/drivers/acpi/arm64/iort.c > @@ -828,7 +828,7 @@ static int __init iort_add_smmu_platform_device(struct acpi_iort_node *node) > > pdev = platform_device_alloc(ops->name, PLATFORM_DEVID_AUTO); > if (!pdev) > - return PTR_ERR(pdev); > + return -ENOMEM; > > count = ops->iommu_count_resources(node); ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH -next] ACPI/IORT: Fix the error return code in iort_add_smmu_platform_device() 2017-02-06 10:04 ` Lorenzo Pieralisi @ 2017-02-06 11:41 ` Rafael J. Wysocki 2017-02-06 12:07 ` Lorenzo Pieralisi 0 siblings, 1 reply; 6+ messages in thread From: Rafael J. Wysocki @ 2017-02-06 11:41 UTC (permalink / raw) To: Lorenzo Pieralisi Cc: Wei Yongjun, Hanjun Guo, Sudeep Holla, Len Brown, Wei Yongjun, linux-acpi On Monday, February 06, 2017 10:04:11 AM Lorenzo Pieralisi wrote: > On Sun, Feb 05, 2017 at 03:45:59PM +0000, Wei Yongjun wrote: > > From: Wei Yongjun <weiyongjun1@huawei.com> > > > > The error return code PTR_ERR(pdev) is always 0 since pdev is > > equal to 0 in this error handling case. > > > > Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> > > --- > > drivers/acpi/arm64/iort.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > It has been reported twice already: > > https://patchwork.kernel.org/patch/9521003/ > > Rafael, do you expect me to send you a pull request with IORT fixes ? > > I can't see Dan's patch in linux-acpi patchwork anymore, and there > is another fix pending: > > https://patchwork.kernel.org/patch/9507041/ > > Please let me know how you want to handle them. I wasn't sure about who was the target maintainer to be honest. I'd prefer ARM64-specific material to go in via the ARM64 tree, if that's possible. Thanks, Rafael ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH -next] ACPI/IORT: Fix the error return code in iort_add_smmu_platform_device() 2017-02-06 11:41 ` Rafael J. Wysocki @ 2017-02-06 12:07 ` Lorenzo Pieralisi 2017-02-06 12:09 ` Rafael J. Wysocki 2017-02-06 12:10 ` Will Deacon 0 siblings, 2 replies; 6+ messages in thread From: Lorenzo Pieralisi @ 2017-02-06 12:07 UTC (permalink / raw) To: Rafael J. Wysocki Cc: Wei Yongjun, Hanjun Guo, Sudeep Holla, Len Brown, Wei Yongjun, linux-acpi, catalin.marinas, will.deacon [+ Catalin, Will] On Mon, Feb 06, 2017 at 12:41:12PM +0100, Rafael J. Wysocki wrote: > On Monday, February 06, 2017 10:04:11 AM Lorenzo Pieralisi wrote: > > On Sun, Feb 05, 2017 at 03:45:59PM +0000, Wei Yongjun wrote: > > > From: Wei Yongjun <weiyongjun1@huawei.com> > > > > > > The error return code PTR_ERR(pdev) is always 0 since pdev is > > > equal to 0 in this error handling case. > > > > > > Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> > > > --- > > > drivers/acpi/arm64/iort.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > It has been reported twice already: > > > > https://patchwork.kernel.org/patch/9521003/ > > > > Rafael, do you expect me to send you a pull request with IORT fixes ? > > > > I can't see Dan's patch in linux-acpi patchwork anymore, and there > > is another fix pending: > > > > https://patchwork.kernel.org/patch/9507041/ > > > > Please let me know how you want to handle them. > > I wasn't sure about who was the target maintainer to be honest. > > I'd prefer ARM64-specific material to go in via the ARM64 tree, if > that's possible. I CC'ed Catalin and Will so that we can sort this out, I took for granted that ACPI changes would go via the ACPI tree even if they are ARM64 specific, I am not sure it makes much sense for them to go via the arm64 arch tree, anyway it is something to be decided because the two fixes above have already missed -rc* and I have to know which way patches should go from now onwards. Thanks, Lorenzo ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH -next] ACPI/IORT: Fix the error return code in iort_add_smmu_platform_device() 2017-02-06 12:07 ` Lorenzo Pieralisi @ 2017-02-06 12:09 ` Rafael J. Wysocki 2017-02-06 12:10 ` Will Deacon 1 sibling, 0 replies; 6+ messages in thread From: Rafael J. Wysocki @ 2017-02-06 12:09 UTC (permalink / raw) To: Lorenzo Pieralisi Cc: Wei Yongjun, Hanjun Guo, Sudeep Holla, Len Brown, Wei Yongjun, linux-acpi, catalin.marinas, will.deacon On Monday, February 06, 2017 12:07:33 PM Lorenzo Pieralisi wrote: > [+ Catalin, Will] > > On Mon, Feb 06, 2017 at 12:41:12PM +0100, Rafael J. Wysocki wrote: > > On Monday, February 06, 2017 10:04:11 AM Lorenzo Pieralisi wrote: > > > On Sun, Feb 05, 2017 at 03:45:59PM +0000, Wei Yongjun wrote: > > > > From: Wei Yongjun <weiyongjun1@huawei.com> > > > > > > > > The error return code PTR_ERR(pdev) is always 0 since pdev is > > > > equal to 0 in this error handling case. > > > > > > > > Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> > > > > --- > > > > drivers/acpi/arm64/iort.c | 2 +- > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > It has been reported twice already: > > > > > > https://patchwork.kernel.org/patch/9521003/ > > > > > > Rafael, do you expect me to send you a pull request with IORT fixes ? > > > > > > I can't see Dan's patch in linux-acpi patchwork anymore, and there > > > is another fix pending: > > > > > > https://patchwork.kernel.org/patch/9507041/ > > > > > > Please let me know how you want to handle them. > > > > I wasn't sure about who was the target maintainer to be honest. > > > > I'd prefer ARM64-specific material to go in via the ARM64 tree, if > > that's possible. > > I CC'ed Catalin and Will so that we can sort this out, I took for > granted that ACPI changes would go via the ACPI tree even if they > are ARM64 specific, I am not sure it makes much sense for them to > go via the arm64 arch tree, anyway it is something to be decided > because the two fixes above have already missed -rc* and I have to > know which way patches should go from now onwards. On x86 the arch-specific ACPI changes go in via the arch tree as a rule, FWIW, but also I'm sufficiently familiar with x86 (I think) to route them via the ACPI tree with enough confidence. Quite honestly, my ARM64 knowledge is not sufficient to decide whether or not the changes actually make sense, so I would request an ACK from the ARM64 maintainers before taking those changes anyway. Thanks, Rafael ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH -next] ACPI/IORT: Fix the error return code in iort_add_smmu_platform_device() 2017-02-06 12:07 ` Lorenzo Pieralisi 2017-02-06 12:09 ` Rafael J. Wysocki @ 2017-02-06 12:10 ` Will Deacon 1 sibling, 0 replies; 6+ messages in thread From: Will Deacon @ 2017-02-06 12:10 UTC (permalink / raw) To: Lorenzo Pieralisi Cc: Rafael J. Wysocki, Wei Yongjun, Hanjun Guo, Sudeep Holla, Len Brown, Wei Yongjun, linux-acpi, catalin.marinas On Mon, Feb 06, 2017 at 12:07:33PM +0000, Lorenzo Pieralisi wrote: > On Mon, Feb 06, 2017 at 12:41:12PM +0100, Rafael J. Wysocki wrote: > > On Monday, February 06, 2017 10:04:11 AM Lorenzo Pieralisi wrote: > > > On Sun, Feb 05, 2017 at 03:45:59PM +0000, Wei Yongjun wrote: > > > > From: Wei Yongjun <weiyongjun1@huawei.com> > > > > > > > > The error return code PTR_ERR(pdev) is always 0 since pdev is > > > > equal to 0 in this error handling case. > > > > > > > > Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> > > > > --- > > > > drivers/acpi/arm64/iort.c | 2 +- > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > It has been reported twice already: > > > > > > https://patchwork.kernel.org/patch/9521003/ > > > > > > Rafael, do you expect me to send you a pull request with IORT fixes ? > > > > > > I can't see Dan's patch in linux-acpi patchwork anymore, and there > > > is another fix pending: > > > > > > https://patchwork.kernel.org/patch/9507041/ > > > > > > Please let me know how you want to handle them. > > > > I wasn't sure about who was the target maintainer to be honest. > > > > I'd prefer ARM64-specific material to go in via the ARM64 tree, if > > that's possible. > > I CC'ed Catalin and Will so that we can sort this out, I took for > granted that ACPI changes would go via the ACPI tree even if they > are ARM64 specific, I am not sure it makes much sense for them to > go via the arm64 arch tree, anyway it is something to be decided > because the two fixes above have already missed -rc* and I have to > know which way patches should go from now onwards. I have no problem taking arm64 ACPI patches via arm64 if that's what Rafael prefers. However, I won't proactively pick them up like I do for other arm64 patches, so please send me a pull request when you have stuff that you want merged. Will ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-02-06 12:14 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-02-05 15:45 [PATCH -next] ACPI/IORT: Fix the error return code in iort_add_smmu_platform_device() Wei Yongjun 2017-02-06 10:04 ` Lorenzo Pieralisi 2017-02-06 11:41 ` Rafael J. Wysocki 2017-02-06 12:07 ` Lorenzo Pieralisi 2017-02-06 12:09 ` Rafael J. Wysocki 2017-02-06 12:10 ` Will Deacon
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).