Re: [PATCH v3 0/3] scsi: ufs: core: Add debugfs for PA TFS/FEC error counters
From: Martin K. Petersen (Oracle)
Date: Sun Dec 06 2026 - 00:21:23 EST
On Wed, 25 Nov 2026 19:33:58 +0800, Po-Wen Kao wrote:
> This series exposes the MIPI UniPro v3.0 PA layer TFS/FEC error
> counters (0x15C3-0x15C7) under debugfs:
>
> /sys/kernel/debug/ufshcd/<dev>/pa_err_stats/{host,device}/
>
> Patch 1 fixes an existing teardown race by removing debugfs and
> disabling debugfs_ee_work before scsi_remove_host() removes the WLUN.
> Patch 2 defers debugfs creation until after device init while keeping
> debugfs_ee_work initialization before IRQs are enabled. Patch 3 adds
> the PA_TFS_* and UniPro 2.0/3.0 definitions and creates
> pa_err_stats/{host,device}/ based on PA_LOCALVERINFO / PA_REMOTEVERINFO.
>
> [...]
Applied to 7.5/scsi-queue, thanks!
[1/3] scsi: ufs: core: Remove debugfs before removing SCSI host
https://git.kernel.org/mkp/scsi/c/cfab50c1f935
[2/3] scsi: ufs: core: Defer debugfs init until after device init
https://git.kernel.org/mkp/scsi/c/c894f3478fde
[3/3] scsi: ufs: core: Add debugfs for PA TFS/FEC error counters
https://git.kernel.org/mkp/scsi/c/c8f8cdcba61f
--
Martin K. Petersen