Skip to content

Commit

Permalink
merge: net: ieee8021541: bcfserial: Increase the number of retries fo…
Browse files Browse the repository at this point in the history
…r hdlc

fixes: beagleboard/linux#277
Signed-off-by: Robert Nelson <[email protected]>
  • Loading branch information
RobertCNelson committed Dec 17, 2022
1 parent 139fc15 commit fc0bbe9
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
From 34755569e9c6793e17e6e8eafa8ff33c2e40b15c Mon Sep 17 00:00:00 2001
From: Vaishnav Achath <[email protected]>
Date: Thu, 15 Dec 2022 22:47:16 +0530
Subject: [PATCH 3/3] net: ieee8021541: bcfserial: Increase the number of
retries for hdlc

During initialization the CC1352 FW will be in a loop
looking for HDLC ACK and FW response is very slow, but currently
bcfserial driver expects the CC1352 to respond within 5 ms, but the
CC1352 takes few 100 ms to complete this operation, thus keep the
retry count to a high value so that the probe failure does not happen
due to failling the bcfserial_get_device_capabilities() call.This is
a one-time setup delay during probe() and does not affect performance.

Signed-off-by: Vaishnav Achath <[email protected]>
---
drivers/net/ieee802154/bcfserial.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ieee802154/bcfserial.c b/drivers/net/ieee802154/bcfserial.c
index d8d85d801422..b8d7fa9c7617 100644
--- a/drivers/net/ieee802154/bcfserial.c
+++ b/drivers/net/ieee802154/bcfserial.c
@@ -232,7 +232,7 @@ static void bcfserial_hdlc_send_ack(struct bcfserial *bcfserial, u8 address, u8

static int bcfserial_hdlc_receive(struct bcfserial *bcfserial, u8 cmd, void *buffer, size_t count)
{
- int retries = 5;
+ int retries = 80;
bcfserial->response_size = count;
bcfserial->response_buffer = (u8*)buffer;
bcfserial_hdlc_send_cmd(bcfserial, cmd);
--
2.30.2

2 changes: 1 addition & 1 deletion version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ KERNEL_REL=5.10
KERNEL_TAG=${KERNEL_REL}.153
kernel_rt=".153-rt76"
#Kernel Build
BUILD=${build_prefix}82.1
BUILD=${build_prefix}82.2

#v5.X-rcX + upto SHA
#prev_KERNEL_SHA=""
Expand Down

0 comments on commit fc0bbe9

Please sign in to comment.