2023-03-06 14:45:04

by Md Sadre Alam

[permalink] [raw]
Subject: [PATCH 2/5] spi: qup: Use devm_platform_get_and_ioremap_resource()

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: Md Sadre Alam <[email protected]>
---
drivers/spi/spi-qup.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c
index 678dc51ef017..71fc65e094e7 100644
--- a/drivers/spi/spi-qup.c
+++ b/drivers/spi/spi-qup.c
@@ -1003,8 +1003,7 @@ static int spi_qup_probe(struct platform_device *pdev)
int ret, irq, size;

dev = &pdev->dev;
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- base = devm_ioremap_resource(dev, res);
+ base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
if (IS_ERR(base))
return PTR_ERR(base);

--
2.17.1



2023-03-06 15:45:03

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH 2/5] spi: qup: Use devm_platform_get_and_ioremap_resource()

On Mon, Mar 06, 2023 at 08:14:04PM +0530, Md Sadre Alam 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.

You've not copied me on the rest of the series so I don't know what's
going on with dependencies. When sending a patch series it is important
to ensure that all the various maintainers understand what the
relationship between the patches as the expecation is that there will be
interdependencies. Either copy everyone on the whole series or at least
copy them on the cover letter and explain what's going on. If there are
no strong interdependencies then it's generally simplest to just send
the patches separately to avoid any possible confusion.


Attachments:
(No filename) (784.00 B)
signature.asc (488.00 B)
Download all attachments

2023-03-07 05:29:19

by Md Sadre Alam

[permalink] [raw]
Subject: Re: [PATCH 2/5] spi: qup: Use devm_platform_get_and_ioremap_resource()


On 3/6/2023 9:14 PM, Mark Brown wrote:
> On Mon, Mar 06, 2023 at 08:14:04PM +0530, Md Sadre Alam 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.
> You've not copied me on the rest of the series so I don't know what's
> going on with dependencies. When sending a patch series it is important
> to ensure that all the various maintainers understand what the
> relationship between the patches as the expecation is that there will be
> interdependencies. Either copy everyone on the whole series or at least
> copy them on the cover letter and explain what's going on. If there are
> no strong interdependencies then it's generally simplest to just send
> the patches separately to avoid any possible confusion.

Thanks for you update. Yes! these all patches are not dependent at all.

So i will send these all patches separately.



2023-03-07 16:53:02

by Mark Brown

[permalink] [raw]
Subject: Re: (subset) [PATCH 2/5] spi: qup: Use devm_platform_get_and_ioremap_resource()

On Mon, 06 Mar 2023 20:14:04 +0530, Md Sadre Alam 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 to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next

Thanks!

[2/5] spi: qup: Use devm_platform_get_and_ioremap_resource()
commit: dc2eb79496322d5f4790d38776c487bf7aa69be3

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark