From: "Alim Akhtar" <alim.akhtar@samsung.com>
To: "'Bart Van Assche'" <bvanassche@acm.org>,
"'Martin K . Petersen'" <martin.petersen@oracle.com>
Cc: "'Jaegeuk Kim'" <jaegeuk@kernel.org>,
"'Avri Altman'" <avri.altman@wdc.com>,
"'Adrian Hunter'" <adrian.hunter@intel.com>,
<linux-scsi@vger.kernel.org>,
"'Kiwoong Kim'" <kwmad.kim@samsung.com>,
"'James E.J. Bottomley'" <jejb@linux.ibm.com>,
"'Krzysztof Kozlowski'" <krzysztof.kozlowski@linaro.org>,
"'Chanho Park'" <chanho61.park@samsung.com>,
"'Bean Huo'" <beanhuo@micron.com>
Subject: RE: [PATCH 2/3] scsi: ufs: Exynos: Fix the maximum segment size
Date: Wed, 11 Jan 2023 11:51:34 +0530 [thread overview]
Message-ID: <018d01d92584$f5d57c60$e1807520$@samsung.com> (raw)
In-Reply-To: <20230106215800.2249344-3-bvanassche@acm.org>
Hi Bart
>-----Original Message-----
>From: Bart Van Assche [mailto:bvanassche@acm.org]
>Sent: Saturday, January 7, 2023 3:28 AM
>To: Martin K . Petersen <martin.petersen@oracle.com>
>Cc: Jaegeuk Kim <jaegeuk@kernel.org>; Avri Altman
><avri.altman@wdc.com>; Adrian Hunter <adrian.hunter@intel.com>; linux-
>scsi@vger.kernel.org; Bart Van Assche <bvanassche@acm.org>; Kiwoong Kim
><kwmad.kim@samsung.com>; James E.J. Bottomley <jejb@linux.ibm.com>;
>Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>; Chanho Park
><chanho61.park@samsung.com>; Alim Akhtar <alim.akhtar@samsung.com>;
>Bean Huo <beanhuo@micron.com>
>Subject: [PATCH 2/3] scsi: ufs: Exynos: Fix the maximum segment size
>
>Prepare for enabling DMA clustering and also for supporting PAGE_SIZE !=
>4096 by declaring explicitly that the maximum segment size is 4096 bytes
for
>Exynos UFS host controllers.
>
>Cc: Kiwoong Kim <kwmad.kim@samsung.com>
>Signed-off-by: Bart Van Assche <bvanassche@acm.org>
>---
Thanks!
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Tested on platforms containing Exynos HCI, so feel free to add
Tested-by: Alim Akhtar <alim.akhtar@samsung.com>
For some reason, I didn't receive you patch-3/3 in my inbox.
> drivers/ufs/host/ufs-exynos.c | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)
>
>diff --git a/drivers/ufs/host/ufs-exynos.c b/drivers/ufs/host/ufs-exynos.c
>index 3cdac89a28b8..821c000ca6b0 100644
>--- a/drivers/ufs/host/ufs-exynos.c
>+++ b/drivers/ufs/host/ufs-exynos.c
>@@ -1586,15 +1586,21 @@ static int exynos_ufs_probe(struct
>platform_device *pdev)
> const struct ufs_hba_variant_ops *vops = &ufs_hba_exynos_ops;
> const struct exynos_ufs_drv_data *drv_data =
> device_get_match_data(dev);
>+ struct ufs_hba *hba;
>
> if (drv_data && drv_data->vops)
> vops = drv_data->vops;
>
> err = ufshcd_pltfrm_init(pdev, vops);
>- if (err)
>+ if (err) {
> dev_err(dev, "ufshcd_pltfrm_init() failed %d\n", err);
>+ return err;
>+ }
>+
>+ hba = dev_get_drvdata(dev);
>+ hba->host->max_segment_size = 4096;
>
>- return err;
>+ return 0;
> }
>
> static int exynos_ufs_remove(struct platform_device *pdev)
next prev parent reply other threads:[~2023-01-11 6:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-06 21:57 [PATCH 0/3] Enable DMA clustering in the UFS driver Bart Van Assche
2023-01-06 21:57 ` [PATCH 1/3] scsi: ufs: Exynos: Fix DMA alignment for PAGE_SIZE != 4096 Bart Van Assche
2023-01-11 6:20 ` Alim Akhtar
2023-01-06 21:57 ` [PATCH 2/3] scsi: ufs: Exynos: Fix the maximum segment size Bart Van Assche
2023-01-11 6:21 ` Alim Akhtar [this message]
2023-01-12 22:37 ` Bart Van Assche
2023-01-06 21:58 ` [PATCH 3/3] scsi: ufs: Enable DMA clustering Bart Van Assche
2023-01-08 8:20 ` Avri Altman
2023-01-08 22:44 ` Bart Van Assche
2023-01-10 7:56 ` Adrian Hunter
2023-01-12 23:12 ` Bart Van Assche
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='018d01d92584$f5d57c60$e1807520$@samsung.com' \
--to=alim.akhtar@samsung.com \
--cc=adrian.hunter@intel.com \
--cc=avri.altman@wdc.com \
--cc=beanhuo@micron.com \
--cc=bvanassche@acm.org \
--cc=chanho61.park@samsung.com \
--cc=jaegeuk@kernel.org \
--cc=jejb@linux.ibm.com \
--cc=krzysztof.kozlowski@linaro.org \
--cc=kwmad.kim@samsung.com \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.