From f8b9116ee08c49cebd2041675d13243e4c063353 Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Wed, 12 Feb 2020 14:00:07 -0800 Subject: [PATCH] soc: qcom: qti_battery_debug: Update QBG device context dump length QBG device context dump length has been increased to 598 words in the charger firmware. Increase the length to support upto 4KB. Change-Id: I4a0a28044a54cdbde146101384f5a1ccf73b1562 Signed-off-by: Subbaraman Narayanamurthy --- drivers/soc/qcom/qti_battery_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/qti_battery_debug.c b/drivers/soc/qcom/qti_battery_debug.c index 2e818366d6f1..2945cf73c620 100644 --- a/drivers/soc/qcom/qti_battery_debug.c +++ b/drivers/soc/qcom/qti_battery_debug.c @@ -20,7 +20,7 @@ #define BD_QBG_DUMP_REQ 0x36 /* Generic definitions */ -#define MAX_BUF_LEN (560 * sizeof(u32)) +#define MAX_BUF_LEN SZ_4K #define BD_WAIT_TIME_MS 1000 struct qbg_context_req_msg {