From: Michal Simek <monstr@monstr.eu>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3] fat: Define MAX_CLUSTSIZE using CONFIG_FS_FAT_MAX_CLUSTSIZE
Date: Wed, 28 May 2014 14:10:03 +0200 [thread overview]
Message-ID: <5385D21B.2090507@monstr.eu> (raw)
In-Reply-To: <57c596df-747c-452b-b08a-3b8711a78590@BN1BFFO11FD055.protection.gbl>
On 05/26/2014 03:48 PM, Siva Durga Prasad Paladugu wrote:
> Define the MAX_CLUSTSIZE to default of 65536 only if
> CONFIG_FS_FAT_MAX_CLUSTSIZE is not defined.
> This option has been provided to save memory in some
> memory constrained cases.
>
> Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
> ---
>
> Changes in v3:
> -Used CONFIG_FS_FAT_MAX_CLUSTSIZE to define MAX_CLUSTSIZE
> as per review comment.
>
> Changes in v2:
> -Defined CONFIG_FS_FAT_MAX_CLUSTSIZE and documented as
> per review comment.
>
> README | 6 ++++++
> include/fat.h | 6 +++++-
> 2 files changed, 11 insertions(+), 1 deletions(-)
>
> diff --git a/README b/README
> index 5f89552..2f2aba3 100644
> --- a/README
> +++ b/README
> @@ -1613,6 +1613,12 @@ CBFS (Coreboot Filesystem) support
> filesystem. Available commands are cbfsinit, cbfsinfo, cbfsls
> and cbfsload.
>
> +- FAT(File Allocation Table) filesystem cluster size:
> + CONFIG_FS_FAT_MAX_CLUSTSIZE
> +
> + Define the max cluster size for fat operations else
> + a default value of 65536 will be defined.
> +
> - Keyboard Support:
> CONFIG_ISA_KEYBOARD
>
> diff --git a/include/fat.h b/include/fat.h
> index 81d9790..63cf787 100644
> --- a/include/fat.h
> +++ b/include/fat.h
> @@ -18,7 +18,11 @@
> #define VFAT_MAXSEQ 9 /* Up to 9 of 13 2-byte UTF-16 entries */
> #define PREFETCH_BLOCKS 2
>
> -#define MAX_CLUSTSIZE 65536
> +#ifndef CONFIG_FS_FAT_MAX_CLUSTSIZE
> +#define CONFIG_FS_FAT_MAX_CLUSTSIZE 65536
> +#endif
> +#define MAX_CLUSTSIZE CONFIG_FS_FAT_MAX_CLUSTSIZE
> +
> #define DIRENTSPERBLOCK (mydata->sect_size / sizeof(dir_entry))
> #define DIRENTSPERCLUST ((mydata->clust_size * mydata->sect_size) / \
> sizeof(dir_entry))
>
Acked-by: Michal Simek <monstr@monstr.eu>
Thanks,
Michal
--
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140528/39abbcfe/attachment.pgp>
next prev parent reply other threads:[~2014-05-28 12:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-26 13:48 [U-Boot] [PATCH v3] fat: Define MAX_CLUSTSIZE using CONFIG_FS_FAT_MAX_CLUSTSIZE Siva Durga Prasad Paladugu
2014-05-28 12:10 ` Michal Simek [this message]
2014-06-05 22:47 ` [U-Boot] [U-Boot, " Tom Rini
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=5385D21B.2090507@monstr.eu \
--to=monstr@monstr.eu \
--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