mbox series

[V4,0/7] mmc: add error statistics for eMMC and SD card

Message ID 1646226227-32429-1-git-send-email-quic_c_sbhanu@quicinc.com
Headers show
Series mmc: add error statistics for eMMC and SD card | expand

Message

Shaik Sajida Bhanu March 2, 2022, 1:03 p.m. UTC
Changes since V3:
	-Dropped error stats feature flag as suggested by Adrain Hunter.
	-Separated error state related changes in separate patches as
	 suggested by Adrain Hunter.
	  [PATCH V4 4/7] : error state debug fs
	  [PATCH V4 5/7] : error state enable function
	  [PATCH V4 6/7] : error state enable in error case
	 Note: we are enabling error state before calling sdhci_dumpregs
	 we couldn't add the err state in error stats array as err state
	 is not error type.
	-Corrected Signed-off-by order as suggested by Bjron Andersson.
	-Moved error state enable code from sdhci_dumpregs to error
	 conditions as suggested by Adrain Hunter.

Changes since V2:
	-Removed userspace error stats clear debug fs entry as suggested
	 by Adrain Hunter.
	-Split patch into 4 patches
	  [PATCH V3 1/4] : sdhci driver
	  [PATCH V3 2/4] : debug fs entries
	  [PATCH V3 3/4] : core driver
	  [PATCH V3 4/4] : cqhci driver
	-Used for loop to print error messages instead of using printf
	 statements for all error messages as suggested by Adrain Hunter.
	-Introduced one flag to enable error stats feature, if any other
	 client wants to use this feature, they need to enable that flag.
	-Moved reset command timeout error statement to card init flow
	 as suggested by Adrain Hunter.

Changes since V1:
	-Removed sysfs entry for eMMC and SD card error statistics and added

Shaik Sajida Bhanu (7):
  mmc: core: Capture eMMC and SD card errors
  mmc: sdhci: Capture eMMC and SD card errors
  mmc: debugfs: Add debug fs entry for mmc driver
  mmc: debugfs: Add debug fs error state entry for mmc driver
  mmc: core: Set error state for mmc driver
  mmc: sdhci: Set error state for mmc driver
  mmc: cqhci: Capture eMMC and SD card errors

 drivers/mmc/core/core.c       |  6 ++++
 drivers/mmc/core/debugfs.c    | 75 +++++++++++++++++++++++++++++++++++++++++++
 drivers/mmc/host/cqhci-core.c |  9 +++++-
 drivers/mmc/host/sdhci.c      | 74 +++++++++++++++++++++++++++++++++++-------
 include/linux/mmc/host.h      | 29 +++++++++++++++++
 5 files changed, 180 insertions(+), 13 deletions(-)