Skip to content

Commit fc0bbe9

Browse files
committed
merge: net: ieee8021541: bcfserial: Increase the number of retries for hdlc
fixes: beagleboard/linux#277 Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
1 parent 139fc15 commit fc0bbe9

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
From 34755569e9c6793e17e6e8eafa8ff33c2e40b15c Mon Sep 17 00:00:00 2001
2+
From: Vaishnav Achath <vaishnav.a@ti.com>
3+
Date: Thu, 15 Dec 2022 22:47:16 +0530
4+
Subject: [PATCH 3/3] net: ieee8021541: bcfserial: Increase the number of
5+
retries for hdlc
6+
7+
During initialization the CC1352 FW will be in a loop
8+
looking for HDLC ACK and FW response is very slow, but currently
9+
bcfserial driver expects the CC1352 to respond within 5 ms, but the
10+
CC1352 takes few 100 ms to complete this operation, thus keep the
11+
retry count to a high value so that the probe failure does not happen
12+
due to failling the bcfserial_get_device_capabilities() call.This is
13+
a one-time setup delay during probe() and does not affect performance.
14+
15+
Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
16+
---
17+
drivers/net/ieee802154/bcfserial.c | 2 +-
18+
1 file changed, 1 insertion(+), 1 deletion(-)
19+
20+
diff --git a/drivers/net/ieee802154/bcfserial.c b/drivers/net/ieee802154/bcfserial.c
21+
index d8d85d801422..b8d7fa9c7617 100644
22+
--- a/drivers/net/ieee802154/bcfserial.c
23+
+++ b/drivers/net/ieee802154/bcfserial.c
24+
@@ -232,7 +232,7 @@ static void bcfserial_hdlc_send_ack(struct bcfserial *bcfserial, u8 address, u8
25+
26+
static int bcfserial_hdlc_receive(struct bcfserial *bcfserial, u8 cmd, void *buffer, size_t count)
27+
{
28+
- int retries = 5;
29+
+ int retries = 80;
30+
bcfserial->response_size = count;
31+
bcfserial->response_buffer = (u8*)buffer;
32+
bcfserial_hdlc_send_cmd(bcfserial, cmd);
33+
--
34+
2.30.2
35+

version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ KERNEL_REL=5.10
4545
KERNEL_TAG=${KERNEL_REL}.153
4646
kernel_rt=".153-rt76"
4747
#Kernel Build
48-
BUILD=${build_prefix}82.1
48+
BUILD=${build_prefix}82.2
4949

5050
#v5.X-rcX + upto SHA
5151
#prev_KERNEL_SHA=""

0 commit comments

Comments
 (0)