From: Johan Jonker <jbx6244@gmail.com>
To: kever.yang@rock-chips.com
Cc: sjg@chromium.org, philipp.tomsich@vrull.eu,
dario.binacchi@amarulasolutions.com,
michael@amarulasolutions.com, u-boot@lists.denx.de
Subject: [PATCH v4 4/8] rockchip: block: blk-uclass: disable bounce buffer support for rkmtd
Date: Mon, 16 Oct 2023 00:33:15 +0200 [thread overview]
Message-ID: <fd206328-2ffa-c174-179c-85f6428e5d9f@gmail.com> (raw)
In-Reply-To: <8c0f5bb6-0110-b7b5-3c40-2d8d98a94dfa@gmail.com>
Disable bounce buffer support for rkmtd.
Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
---
Changed V3:
New patch
---
drivers/block/blk-uclass.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-uclass.c
index 30ad5bbb0024..ac1b43d757d8 100644
--- a/drivers/block/blk-uclass.c
+++ b/drivers/block/blk-uclass.c
@@ -415,7 +415,7 @@ struct blk_bounce_buffer {
static int blk_buffer_aligned(struct bounce_buffer *state)
{
-#if IS_ENABLED(CONFIG_BOUNCE_BUFFER)
+#if IS_ENABLED(CONFIG_BOUNCE_BUFFER) && !IS_ENABLED(CONFIG_RKMTD)
struct blk_bounce_buffer *bbstate =
container_of(state, struct blk_bounce_buffer, state);
struct udevice *dev = bbstate->dev;
@@ -441,7 +441,7 @@ long blk_read(struct udevice *dev, lbaint_t start, lbaint_t blkcnt, void *buf)
start, blkcnt, desc->blksz, buf))
return blkcnt;
- if (IS_ENABLED(CONFIG_BOUNCE_BUFFER)) {
+ if (IS_ENABLED(CONFIG_BOUNCE_BUFFER) && !IS_ENABLED(CONFIG_RKMTD)) {
struct blk_bounce_buffer bbstate = { .dev = dev };
int ret;
@@ -478,7 +478,7 @@ long blk_write(struct udevice *dev, lbaint_t start, lbaint_t blkcnt,
blkcache_invalidate(desc->uclass_id, desc->devnum);
- if (IS_ENABLED(CONFIG_BOUNCE_BUFFER)) {
+ if (IS_ENABLED(CONFIG_BOUNCE_BUFFER) && !IS_ENABLED(CONFIG_RKMTD)) {
struct blk_bounce_buffer bbstate = { .dev = dev };
int ret;
--
2.39.2
next prev parent reply other threads:[~2023-10-15 22:37 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-15 22:30 [PATCH v4 0/8] Add rkmtd command Johan Jonker
2023-10-15 22:32 ` [PATCH v4 1/8] mtd: nand: raw: rockchip_nfc: add NAND_SKIP_BBTSCAN option Johan Jonker
2023-10-15 22:32 ` [PATCH v4 2/8] rockchip: dm: prepare rkmtd UCLASS Johan Jonker
2023-10-16 21:54 ` Simon Glass
2023-10-15 22:33 ` [PATCH v4 3/8] rockchip: block: add rkmtd class and drivers Johan Jonker
2023-10-15 22:33 ` Johan Jonker [this message]
2023-10-16 21:54 ` [PATCH v4 4/8] rockchip: block: blk-uclass: disable bounce buffer support for rkmtd Simon Glass
2023-10-17 12:44 ` Johan Jonker
2023-10-18 3:31 ` Simon Glass
2023-10-15 22:33 ` [PATCH v4 5/8] rockchip: cmd: add rkmtd command Johan Jonker
2023-10-15 22:33 ` [PATCH v4 6/8] rockchip: test: dm: add rkmtd test Johan Jonker
2023-10-15 22:33 ` [PATCH v4 7/8] rockchip: doc: add rkmtd.rst Johan Jonker
2023-10-15 22:34 ` [PATCH v4 8/8] rockchip: configs: sandbox: enable rkmtd command Johan Jonker
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=fd206328-2ffa-c174-179c-85f6428e5d9f@gmail.com \
--to=jbx6244@gmail.com \
--cc=dario.binacchi@amarulasolutions.com \
--cc=kever.yang@rock-chips.com \
--cc=michael@amarulasolutions.com \
--cc=philipp.tomsich@vrull.eu \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.de \
/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