mbox series

[v1,0/2] Allow vendor drivers to update UIC command timeout

Message ID cover.1716359578.git.quic_nguyenb@quicinc.com (mailing list archive)
Headers show
Series Allow vendor drivers to update UIC command timeout | expand

Message

Bao D. Nguyen May 22, 2024, 7:01 a.m. UTC
The UIC command timeout default value remains as 500ms.

Allow vendor drivers to change the UIC command timeout as they wish.
During product development where a lot of debug logging/printing can
occur, the uart may print from different modules with interrupt disabled
for more than 500ms, causing interrupt starvation and UIC command timeout
as a result. The UIC command timeout may eventually cause a watchdog
timeout unnecessarily. With this change, the vendor drivers can set a
different UIC command timeout during their product development and
revert to the default 500ms when development completes as desired.

Bao D. Nguyen (2):
  scsi: ufs: core: Support Updating UIC Command Timeout
  scsi: ufs: qcom: Update the UIC Command Timeout

 drivers/ufs/core/ufshcd.c   | 9 ++++++---
 drivers/ufs/host/ufs-qcom.c | 3 +++
 include/ufs/ufshcd.h        | 2 ++
 3 files changed, 11 insertions(+), 3 deletions(-)

Comments

Christoph Hellwig May 23, 2024, 8:17 a.m. UTC | #1
There is no such thing as a vendor driver in Linux.
Bao D. Nguyen May 23, 2024, 2:28 p.m. UTC | #2
On 5/23/2024 1:17 AM, Christoph Hellwig wrote:
> There is no such thing as a vendor driver in Linux.
> 
I will reword it in the next revision.

Thanks, Bao