* [U-Boot] [PATCH] Revert "fs: fat: assign rootdir sector when accessing root directory"
@ 2019-01-11 15:17 Tom Rini
2019-01-12 20:13 ` Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Tom Rini @ 2019-01-11 15:17 UTC (permalink / raw)
To: u-boot
This particular commit is causing a regression on stih410-b2260 and
other platforms when reading from FAT16. Noting that I had rebased the
original fix from Thomas onto then-current master, there is also
question from Akashi-san if the change is still needed after other FAT
fixes that have gone in.
This reverts commit a68b0e11ea774492713a65d9fd5bb525fcaefff3.
Reported-by: Patrice Chotard <patrice.chotard@st.com>
Cc: AKASHI Takahiro <takahiro.akashi@linaro.org>
Cc: Thomas RIENOESSL <thomas.rienoessl@bachmann.info>
Signed-off-by: Tom Rini <trini@konsulko.com>
---
fs/fat/fat.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/fs/fat/fat.c b/fs/fat/fat.c
index ac8913e71929..179bf4f3d89d 100644
--- a/fs/fat/fat.c
+++ b/fs/fat/fat.c
@@ -736,10 +736,7 @@ static void *next_cluster(fat_itr *itr)
if (itr->last_cluster)
return NULL;
- if (itr->fsdata->fatsize != 32 && itr->is_root)
- sect = mydata->rootdir_sect;
- else
- sect = clust_to_sect(itr->fsdata, itr->next_clust);
+ sect = clust_to_sect(itr->fsdata, itr->next_clust);
debug("FAT read(sect=%d), clust_size=%d, DIRENTSPERBLOCK=%zd\n",
sect, itr->fsdata->clust_size, DIRENTSPERBLOCK);
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] Revert "fs: fat: assign rootdir sector when accessing root directory"
2019-01-11 15:17 [U-Boot] [PATCH] Revert "fs: fat: assign rootdir sector when accessing root directory" Tom Rini
@ 2019-01-12 20:13 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2019-01-12 20:13 UTC (permalink / raw)
To: u-boot
On Fri, Jan 11, 2019 at 10:17:21AM -0500, Tom Rini wrote:
> This particular commit is causing a regression on stih410-b2260 and
> other platforms when reading from FAT16. Noting that I had rebased the
> original fix from Thomas onto then-current master, there is also
> question from Akashi-san if the change is still needed after other FAT
> fixes that have gone in.
>
> This reverts commit a68b0e11ea774492713a65d9fd5bb525fcaefff3.
>
> Reported-by: Patrice Chotard <patrice.chotard@st.com>
> Cc: AKASHI Takahiro <takahiro.akashi@linaro.org>
> Cc: Thomas RIENOESSL <thomas.rienoessl@bachmann.info>
> Signed-off-by: Tom Rini <trini@konsulko.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190112/61d134b8/attachment.sig>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-01-12 20:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-11 15:17 [U-Boot] [PATCH] Revert "fs: fat: assign rootdir sector when accessing root directory" Tom Rini
2019-01-12 20:13 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox