New abstraction layer for handling MMC and FAT commands
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 2 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 2 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [U-Boot] [PATCH 0/2] New abstraction layer for handling MMC and FAT commands
Dear Wolfgang Denk,
Quoted 13 lines
Dear Lukasz Majewski,
In message <[email protected]>
Quoted 9 lines · you
New abstraction layer for performing MMC and FAT operations has been added. It is necessary for using MMC and FAT operations from other subsystems without the need to call "sprintf" and "
run_command" afterwards.MMC/FAT function call allows for better type checking during compilation time. For FAT, common code has been encapsulated to a separate function.
Quoted 6 lines
Quoted 3 lines
Lukasz Majewski (2):
mmc: New abstract function (do_mmcops_safe) for MMC subsystem
fat: New abstract function (do_fat_safe) for FAT subsystemSorry if I don't understand, but what exactly is special with MMC and FAT here?
Those patches are a follow up of a discussion about DFU support in u-boot.
"[PATCH 4/7] dfu: MMC specific routines for DFU operation"
In short - during this discussion it has been suggested, that sprintf() + run_command() call shall be replaced with a "_safe" function call, which decouples "real" e.g. MMC write from parsing user data from prompt.
Quoted 3 lines
Why are the same changes as to the MMC code not also needed for example for the IDE, SATA, SCSI or USB code?
I need the FAT and MMC for DFU patches, on which I work now. Those patches (actually v2) have already been posted to ML and are under review.
Quoted 3 lines
Why are the same changes as for FAT not also needed for the other file systems?
It is because DFU is not supporting other file systems for now. I only changed the code which I use.
Quoted 6 lines
And what exactly are you changing anyway? The commit messages in the patches give neither sufficient information to understand why you make a change at all, nor how the new code is supposed to be used, nor in which way he is better ("more safe" ?) than the existing code?
The problem is as follows:
1. DFU patches requires access to FAT and MMC
2. I'm using sprintf() + run_command() approach to execute e.g. "mmc write 0x44000000 60 100" to store data from DFU in a proper place.
3. The approach presented at 2. was under discussion on ML. Reviewers suggested, that run_command() approach is unsafe and for compilation time type checking I shall write mmc with using special "_safe" function.
For more details, please visit link, which I've posted.
In this discussion we are arguing about pros and cons of using sprintf
+ run_command approach.
Signature · 5 lines
Best regards, Lukasz Majewski Samsung Poland R&D Center | Linux Platform Group