linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/5] spi: qup: Use devm_platform_get_and_ioremap_resource()
@ 2023-03-06 14:44 Md Sadre Alam
  2023-03-06 15:44 ` Mark Brown
  2023-03-07 16:48 ` (subset) " Mark Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Md Sadre Alam @ 2023-03-06 14:44 UTC (permalink / raw)
  To: agross, andersson, konrad.dybcio, broonie, linux-arm-msm,
	linux-spi, linux-kernel
  Cc: quic_sjaganat, quic_srichara, quic_varada, quic_mdalam

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 <quic_mdalam@quicinc.com>
---
 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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/5] spi: qup: Use devm_platform_get_and_ioremap_resource()
  2023-03-06 14:44 [PATCH 2/5] spi: qup: Use devm_platform_get_and_ioremap_resource() Md Sadre Alam
@ 2023-03-06 15:44 ` Mark Brown
  2023-03-07  5:28   ` Md Sadre Alam
  2023-03-07 16:48 ` (subset) " Mark Brown
  1 sibling, 1 reply; 4+ messages in thread
From: Mark Brown @ 2023-03-06 15:44 UTC (permalink / raw)
  To: Md Sadre Alam
  Cc: agross, andersson, konrad.dybcio, linux-arm-msm, linux-spi,
	linux-kernel, quic_sjaganat, quic_srichara, quic_varada

[-- Attachment #1: Type: text/plain, Size: 784 bytes --]

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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/5] spi: qup: Use devm_platform_get_and_ioremap_resource()
  2023-03-06 15:44 ` Mark Brown
@ 2023-03-07  5:28   ` Md Sadre Alam
  0 siblings, 0 replies; 4+ messages in thread
From: Md Sadre Alam @ 2023-03-07  5:28 UTC (permalink / raw)
  To: Mark Brown
  Cc: agross, andersson, konrad.dybcio, linux-arm-msm, linux-spi,
	linux-kernel, quic_sjaganat, quic_srichara, quic_varada


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.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: (subset) [PATCH 2/5] spi: qup: Use devm_platform_get_and_ioremap_resource()
  2023-03-06 14:44 [PATCH 2/5] spi: qup: Use devm_platform_get_and_ioremap_resource() Md Sadre Alam
  2023-03-06 15:44 ` Mark Brown
@ 2023-03-07 16:48 ` Mark Brown
  1 sibling, 0 replies; 4+ messages in thread
From: Mark Brown @ 2023-03-07 16:48 UTC (permalink / raw)
  To: agross, andersson, konrad.dybcio, linux-arm-msm, linux-spi,
	linux-kernel, Md Sadre Alam
  Cc: quic_sjaganat, quic_srichara, quic_varada

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-03-07 16:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-06 14:44 [PATCH 2/5] spi: qup: Use devm_platform_get_and_ioremap_resource() Md Sadre Alam
2023-03-06 15:44 ` Mark Brown
2023-03-07  5:28   ` Md Sadre Alam
2023-03-07 16:48 ` (subset) " Mark Brown

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).