-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge: net: ieee8021541: bcfserial: Increase the number of retries fo…
…r hdlc fixes: beagleboard/linux#277 Signed-off-by: Robert Nelson <[email protected]>
- Loading branch information
1 parent
139fc15
commit fc0bbe9
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
patches/bcfserial/0003-net-ieee8021541-bcfserial-Increase-the-number-of-ret.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters