Skip to content

Commit

Permalink
fastboot: change m_Maxsize_pre_cmd to 16KB in FBCopy
Browse files Browse the repository at this point in the history
The Chipidea USB controller doesn't support transfer length bigger
than 16KB. So change m_Maxsize_pre_cmd to 16KB in FBCopy. This change
will not have performance drop compared to 64KB for High-speed and
Super-speed mode.

Signed-off-by: Xu Yang <[email protected]>
  • Loading branch information
Xu Yang authored and nxpfrankli committed Jan 10, 2025
1 parent b3163b7 commit 727fc2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libuuu/fastboot.h
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class FBCopy : public CmdBase
private:
bool m_bDownload;
std::string m_local_file;
size_t m_Maxsize_pre_cmd = 0x10000;
size_t m_Maxsize_pre_cmd = 0x4000;
std::string m_target_file;
};

Expand Down

0 comments on commit 727fc2b

Please sign in to comment.