Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1288470pxb; Fri, 21 Jan 2022 14:27:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSAowF+51/4jAktgzayVitThAX7ZgiGkGfPXU7Drb6MlyuaNLYVRJn2QBR9nJj1heQCdrU X-Received: by 2002:a17:90a:c486:: with SMTP id j6mr2711520pjt.69.1642804029924; Fri, 21 Jan 2022 14:27:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642804029; cv=none; d=google.com; s=arc-20160816; b=qtAKhF6+/PTY6U9BgHHc9gbo8DRca8ZduZ/7fGFCYf+Deh2SKbE5htOqXmod0FEANE uBmRcxFcMHxOgu1jVc/tADWOTmQbDmbR/kfju5YyqPkmhCK5I59qLdZrtVaJPmwC5Fve YzmocKdhODrqcXZDwyRRi/qwq22RvRKSTloB6T8V9R988PkcsZrE0+5YEZQL8WEV9a1l gv6+7bFamAXYpcz5q6O/M4wATRQAHXlkEfiQeZsS5DxpEJ1rFIQwO5Iy7V3Pa+S+/OjV uKyBUzz2hiKEgHns3sZ4xnuGJ2vg0cTFV+v/kQPEhq6Wmewal1pEZPKy6zmuxG4HtPHY L2Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=yoXWUpciytUxGVmD3OIc8Emx9Q31wdTLP4aBGRalkQQ=; b=CZRgGTvj/16L7HyxetUIUDczK/owbkla6+J3ji5Z42r2GT5IQPAat8WYx1trWgAm3K gqlSuw/FQHPoHwwFX9s/j2eMmEcUFFOAgMvHB42Ar/kj4Er24u4JBPD7EGWMcT3CHlz/ pOZ/Ifq4nnwhqC8xe+jViNopPo+Apfi83oJ7tADVlw+osBiP/0FUFFqGTNyicQ17S2Cx zcBSTTgAvo3AY20UhCxcTJ2jZyiLcmzAzvBdcEE8gneV86pMWEhj20ryZB7/Z6f8elMA VDH9IhfEjHNb1UidPohAQGPu8fWfudpPkPH45sYbwlf4PpleWVC4KG0EFwspYh/SL+3P ymng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=cyUzi8aE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ot14si8703608pjb.88.2022.01.21.14.26.56; Fri, 21 Jan 2022 14:27:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=cyUzi8aE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231655AbiATR2O (ORCPT + 99 others); Thu, 20 Jan 2022 12:28:14 -0500 Received: from alexa-out.qualcomm.com ([129.46.98.28]:38887 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232006AbiATR0x (ORCPT ); Thu, 20 Jan 2022 12:26:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1642699613; x=1674235613; h=from:to:cc:subject:date:message-id; bh=yoXWUpciytUxGVmD3OIc8Emx9Q31wdTLP4aBGRalkQQ=; b=cyUzi8aE1TY06MjKLuJpBCgDnucVRwapDIXdfzOW+donpzG3TWb9Teaa sZT3+Ekpn1wpcjojETtVfnB7vffXlOGmbKnS5waryY5/AVIf0nmfNsZYt d/fV8iXlQuyLWnQC0g7p5e6/T0+q8VIinmweOYoQGJpXpS3rAJjJHS+0I Y=; Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 20 Jan 2022 09:26:53 -0800 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/AES256-SHA; 20 Jan 2022 09:26:51 -0800 X-QCInternal: smtphost Received: from c-sbhanu-linux.qualcomm.com ([10.242.50.201]) by ironmsg01-blr.qualcomm.com with ESMTP; 20 Jan 2022 22:56:28 +0530 Received: by c-sbhanu-linux.qualcomm.com (Postfix, from userid 2344807) id 27115538E; Thu, 20 Jan 2022 22:56:27 +0530 (IST) From: Shaik Sajida Bhanu To: adrian.hunter@intel.com, quic_asutoshd@quicinc.com, ulf.hansson@linaro.org, agross@kernel.org, bjorn.andersson@linaro.org, linux-mmc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: stummala@codeaurora.org, vbadigan@codeaurora.org, quic_rampraka@quicinc.com, quic_pragalla@quicinc.com, sartgarg@codeaurora.org, nitirawa@codeaurora.org, sayalil@codeaurora.org, Shaik Sajida Bhanu Subject: [PATCH V3 0/4] mmc: add error statistics for eMMC and SD card Date: Thu, 20 Jan 2022 22:56:18 +0530 Message-Id: <1642699582-14785-1-git-send-email-quic_c_sbhanu@quicinc.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 debugfs entry as suggested by Adrian Hunter and Ulf Hansson. Shaik Sajida Bhanu (4): mmc: sdhci: Capture eMMC and SD card errors mmc: debugfs: Add debug fs entry for mmc driver mmc: core: Capture eMMC and SD card errors mmc: cqhci: Capture eMMC and SD card errors drivers/mmc/core/core.c | 8 +++++ drivers/mmc/core/debugfs.c | 81 +++++++++++++++++++++++++++++++++++++++++++ drivers/mmc/core/queue.c | 3 ++ drivers/mmc/host/cqhci-core.c | 9 ++++- drivers/mmc/host/sdhci-msm.c | 3 ++ drivers/mmc/host/sdhci.c | 72 +++++++++++++++++++++++++++++++------- include/linux/mmc/host.h | 31 +++++++++++++++++ 7 files changed, 194 insertions(+), 13 deletions(-) -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation