Message ID | 20230705081856.13734-1-frank.li@vivo.com |
---|---|
State | Accepted |
Commit | e93c47a3ddc6d045fc7dc4bbf1027aad285e1cd5 |
Headers | show |
Series | [1/5] dmaengine: qcom: gpi: Use devm_platform_get_and_ioremap_resource() | expand |
On Wed, 05 Jul 2023 16:18:52 +0800, Yangtao Li wrote: > Convert platform_get_resource(), devm_ioremap_resource() to a single > call to devm_platform_get_and_ioremap_resource(), as this is exactly > what this function does. > > Applied, thanks! [1/5] dmaengine: qcom: gpi: Use devm_platform_get_and_ioremap_resource() commit: d9313d9f1fbc14cae5147c5130bea54aa76ad65f [2/5] dmaengine: qcom_hidma: Use devm_platform_get_and_ioremap_resource() commit: a189107deb574fd08018bbf2fe5cd86450a54b13 [3/5] dmaengine: qcom: hidma_mgmt: Use devm_platform_get_and_ioremap_resource() commit: fe6c2622473f3756a09bd6c42cffca6fbdce391c [4/5] dmaengine: shdmac: Convert to devm_platform_ioremap_resource() commit: 0976421c5a339b1b1a89cfba4471a6de761130ed [5/5] dmaengine: stm32-dma: Use devm_platform_get_and_ioremap_resource() commit: b402a7eeaa35aaa3300a4ba6bd5b381112ae183c Best regards,
On 12-07-23, 11:33, Geert Uytterhoeven wrote: > Hi Vinod, > > On Tue, 11 Jul 2023, Vinod Koul wrote: > > On Wed, 05 Jul 2023 16:18:52 +0800, Yangtao Li wrote: > > > Convert platform_get_resource(), devm_ioremap_resource() to a single > > > call to devm_platform_get_and_ioremap_resource(), as this is exactly > > > what this function does. > > > > > > > > > > Applied, thanks! > > > > [1/5] dmaengine: qcom: gpi: Use devm_platform_get_and_ioremap_resource() > > commit: d9313d9f1fbc14cae5147c5130bea54aa76ad65f > > [2/5] dmaengine: qcom_hidma: Use devm_platform_get_and_ioremap_resource() > > commit: a189107deb574fd08018bbf2fe5cd86450a54b13 > > [3/5] dmaengine: qcom: hidma_mgmt: Use devm_platform_get_and_ioremap_resource() > > commit: fe6c2622473f3756a09bd6c42cffca6fbdce391c > > [4/5] dmaengine: shdmac: Convert to devm_platform_ioremap_resource() > > commit: 0976421c5a339b1b1a89cfba4471a6de761130ed > > [5/5] dmaengine: stm32-dma: Use devm_platform_get_and_ioremap_resource() > > commit: b402a7eeaa35aaa3300a4ba6bd5b381112ae183c > > I noticed all your new dmaengine[1] and phy[2] commits contain a > "Message-ID:" tag. Presumable you added a git hook for that? Thanks for pointing that out, yes something is messed up for me. > > However, the standard way is to add a Link: tag pointing to lore > instead, cfr. [3]. Yep and if you look at the dmaengine and phy commits for 6.4 they have "Link" in them, so something is not working, let me fix that up.
Hi Vinod, On Wed, Jul 12, 2023 at 1:30 PM Vinod Koul <vkoul@kernel.org> wrote: > On 12-07-23, 11:33, Geert Uytterhoeven wrote: > > On Tue, 11 Jul 2023, Vinod Koul wrote: > > > On Wed, 05 Jul 2023 16:18:52 +0800, Yangtao Li wrote: > > > > Convert platform_get_resource(), devm_ioremap_resource() to a single > > > > call to devm_platform_get_and_ioremap_resource(), as this is exactly > > > > what this function does. > > > > > > Applied, thanks! > > > > > > [1/5] dmaengine: qcom: gpi: Use devm_platform_get_and_ioremap_resource() > > > commit: d9313d9f1fbc14cae5147c5130bea54aa76ad65f > > > [2/5] dmaengine: qcom_hidma: Use devm_platform_get_and_ioremap_resource() > > > commit: a189107deb574fd08018bbf2fe5cd86450a54b13 > > > [3/5] dmaengine: qcom: hidma_mgmt: Use devm_platform_get_and_ioremap_resource() > > > commit: fe6c2622473f3756a09bd6c42cffca6fbdce391c > > > [4/5] dmaengine: shdmac: Convert to devm_platform_ioremap_resource() > > > commit: 0976421c5a339b1b1a89cfba4471a6de761130ed > > > [5/5] dmaengine: stm32-dma: Use devm_platform_get_and_ioremap_resource() > > > commit: b402a7eeaa35aaa3300a4ba6bd5b381112ae183c > > > > I noticed all your new dmaengine[1] and phy[2] commits contain a > > "Message-ID:" tag. Presumable you added a git hook for that? > > Thanks for pointing that out, yes something is messed up for me. > > > However, the standard way is to add a Link: tag pointing to lore > > instead, cfr. [3]. > > Yep and if you look at the dmaengine and phy commits for 6.4 they have > "Link" in them, so something is not working, let me fix that up. Sorry, hadn't noticed that, so I assumed you were a new user ;-) I saw you have already updated your branches, but FTR, the issue was caused by a new version of git, which broke the hook, cfr. commit 2bb19e740e9b3eb4 ("Documentation: update git configuration for Link: tag") in v6.5-rc1. Gr{oetje,eeting}s, Geert
Hi Geert, On 13-07-23, 10:00, Geert Uytterhoeven wrote: > On Wed, Jul 12, 2023 at 1:30 PM Vinod Koul <vkoul@kernel.org> wrote: > > On 12-07-23, 11:33, Geert Uytterhoeven wrote: > > > > Thanks for pointing that out, yes something is messed up for me. > > > > > However, the standard way is to add a Link: tag pointing to lore > > > instead, cfr. [3]. > > > > Yep and if you look at the dmaengine and phy commits for 6.4 they have > > "Link" in them, so something is not working, let me fix that up. > > Sorry, hadn't noticed that, so I assumed you were a new user ;-) > > I saw you have already updated your branches, but FTR, the issue > was caused by a new version of git, which broke the hook, cfr. commit > 2bb19e740e9b3eb4 ("Documentation: update git configuration for Link: > tag") in v6.5-rc1. Yes that was exactly the cause, updating my hook fixed it up. Had to fix all the commits in the trees though, thanks
diff --git a/drivers/dma/qcom/gpi.c b/drivers/dma/qcom/gpi.c index 932628b319c8..1c93864e0e4d 100644 --- a/drivers/dma/qcom/gpi.c +++ b/drivers/dma/qcom/gpi.c @@ -2160,8 +2160,7 @@ static int gpi_probe(struct platform_device *pdev) return -ENOMEM; gpi_dev->dev = &pdev->dev; - gpi_dev->res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - gpi_dev->regs = devm_ioremap_resource(gpi_dev->dev, gpi_dev->res); + gpi_dev->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &gpi_dev->res); if (IS_ERR(gpi_dev->regs)) return PTR_ERR(gpi_dev->regs); gpi_dev->ee_base = gpi_dev->regs;
Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yangtao Li <frank.li@vivo.com> --- drivers/dma/qcom/gpi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)