NFC: Fix NFC firmware download issue

Due to insufficient kernel buffer size, NFC firmware
download fails during NFC initialization.

Increased kernel buffer size to support
frame size of 554 in FW download mode.

Change-Id: I1e870389da1221a01b1a785ff1e5b6b175a88117
Signed-off-by: Tapas Dey <tdey@codeaurora.org>
This commit is contained in:
Tapas Dey 2020-08-26 20:13:21 +05:30
parent cf90c05d27
commit e671da4acd

View File

@ -62,7 +62,12 @@
#define COLD_RESET_OID 0x1E
#define MAX_NCI_PAYLOAD_LEN (255)
#define MAX_BUFFER_SIZE (NCI_HDR_LEN + MAX_NCI_PAYLOAD_LEN)
/*
* From MW 11.04 buffer size increased to support
* frame size of 554 in FW download mode
* Frame len(2) + Frame Header(6) + DATA(512) + HASH(32) + CRC(2) + RFU(4)
*/
#define MAX_BUFFER_SIZE (558)
// Maximum retry count for standby writes
#define MAX_RETRY_COUNT (3)