From: Enric Balletbo i Serra <hidden> Date: 2021-01-14 02:14:23
Child domains can be deferred by the core because one of its resources
is not available yet, in such case, it will print an error, but
later it will succeed to probe. Fix that using the dev_err_probe()
function so it only prints an error on a real error.
Signed-off-by: Enric Balletbo i Serra <redacted>
---
drivers/soc/mediatek/mtk-pm-domains.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -480,8 +480,8 @@ static int scpsys_add_subdomain(struct scpsys *scpsys, struct device_node *parenchild_pd=scpsys_add_one_domain(scpsys,child);if(IS_ERR(child_pd)){-ret=PTR_ERR(child_pd);-dev_err(scpsys->dev,"%pOF: failed to get child domain id\n",child);+dev_err_probe(scpsys->dev,PTR_ERR(child_pd),+"%pOF: failed to get child domain id\n",child);gotoerr_put_node;}
--
2.29.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Hsin-Yi Wang <hidden> Date: 2021-01-14 04:01:42
On Thu, Jan 14, 2021 at 5:30 AM Enric Balletbo i Serra
[off-list ref] wrote:
Child domains can be deferred by the core because one of its resources
is not available yet, in such case, it will print an error, but
later it will succeed to probe. Fix that using the dev_err_probe()
function so it only prints an error on a real error.
Signed-off-by: Enric Balletbo i Serra <redacted>
@@ -480,8 +480,8 @@ static int scpsys_add_subdomain(struct scpsys *scpsys, struct device_node *parenchild_pd=scpsys_add_one_domain(scpsys,child);if(IS_ERR(child_pd)){-ret=PTR_ERR(child_pd);-dev_err(scpsys->dev,"%pOF: failed to get child domain id\n",child);+dev_err_probe(scpsys->dev,PTR_ERR(child_pd),+"%pOF: failed to get child domain id\n",child);gotoerr_put_node;}--
On 13/01/2021 22:30, Enric Balletbo i Serra wrote:
Child domains can be deferred by the core because one of its resources
is not available yet, in such case, it will print an error, but
later it will succeed to probe. Fix that using the dev_err_probe()
function so it only prints an error on a real error.
Signed-off-by: Enric Balletbo i Serra <redacted>
@@ -480,8 +480,8 @@ static int scpsys_add_subdomain(struct scpsys *scpsys, struct device_node *parenchild_pd=scpsys_add_one_domain(scpsys,child);if(IS_ERR(child_pd)){-ret=PTR_ERR(child_pd);-dev_err(scpsys->dev,"%pOF: failed to get child domain id\n",child);+dev_err_probe(scpsys->dev,PTR_ERR(child_pd),+"%pOF: failed to get child domain id\n",child);gotoerr_put_node;}