From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Vinod Koul <vkoul@kernel.org>,
Linus Torvalds <torvalds@linux-foundation.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linux Next Mailing List <linux-next@vger.kernel.org>,
Mohan Kumar D <mkumard@nvidia.com>
Subject: linux-next: manual merge of the dmaengine-fixes tree with Linus' tree
Date: Mon, 17 Feb 2025 09:16:16 +1100 [thread overview]
Message-ID: <20250217091616.1e123860@canb.auug.org.au> (raw)
[-- Attachment #1: Type: text/plain, Size: 2121 bytes --]
Hi all,
Today's linux-next merge of the dmaengine-fixes tree got a conflict in:
drivers/dma/tegra210-adma.c
between commit:
d440148418f4 ("tegra210-adma: fix 32-bit x86 build")
from Linus' tree and commits:
17987453a9d9 ("dmaengine: tegra210-adma: Use div_u64 for 64 bit division")
76ed9b7d177e ("dmaengine: tegra210-adma: check for adma max page")
from the dmaengine-fixes tree.
I fixed it up (see belowi - this is basically d440148418f4 with
76ed9b7d177e) and can carry the fix as necessary. This is now fixed as
far as linux-next is concerned, but any non trivial conflicts should be
mentioned to your upstream maintainer when your tree is submitted for
merging. You may also want to consider cooperating with the maintainer
of the conflicting tree to minimise any particularly complex conflicts.
--
Cheers,
Stephen Rothwell
diff --cc drivers/dma/tegra210-adma.c
index 5c6a5b358987,801740ad8e0d..000000000000
--- a/drivers/dma/tegra210-adma.c
+++ b/drivers/dma/tegra210-adma.c
@@@ -914,21 -920,16 +919,21 @@@ static int tegra_adma_probe(struct plat
res_base = platform_get_resource_byname(pdev, IORESOURCE_MEM, "global");
if (res_base) {
- if (WARN_ON(res_page->start <= res_base->start))
- return -EINVAL;
+ resource_size_t page_offset, page_no;
+ unsigned int ch_base_offset;
+ if (res_page->start < res_base->start)
+ return -EINVAL;
page_offset = res_page->start - res_base->start;
- page_no = div_u64(page_offset, cdata->ch_base_offset);
+ ch_base_offset = cdata->ch_base_offset;
+ if (!ch_base_offset)
+ return -EINVAL;
- if (WARN_ON(page_no == 0 || page_no > cdata->max_page))
+ page_no = div_u64(page_offset, ch_base_offset);
- if (!page_no || page_no > INT_MAX)
++ if (!page_no || page_no > cdata->max_page)
return -EINVAL;
- tdma->ch_page_no = lower_32_bits(page_no) - 1;
+ tdma->ch_page_no = page_no - 1;
tdma->base_addr = devm_ioremap_resource(&pdev->dev, res_base);
if (IS_ERR(tdma->base_addr))
return PTR_ERR(tdma->base_addr);
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
reply other threads:[~2025-02-16 22:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250217091616.1e123860@canb.auug.org.au \
--to=sfr@canb.auug.org.au \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=mkumard@nvidia.com \
--cc=torvalds@linux-foundation.org \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®