mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
drivers: mmc: add debugfs entries for SD extension registers
Also report the card's supported queue depth in the message log. Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
This commit is contained in:
committed by
Dom Cobley
parent
8c4da4a5a4
commit
2518bd74f9
@@ -1925,8 +1925,8 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
|
||||
host->cqe_enabled = true;
|
||||
|
||||
if (card->ext_csd.cmdq_en) {
|
||||
pr_info("%s: Command Queue Engine enabled\n",
|
||||
mmc_hostname(host));
|
||||
pr_info("%s: Command Queue Engine enabled, %u tags\n",
|
||||
mmc_hostname(host), card->ext_csd.cmdq_depth);
|
||||
} else {
|
||||
host->hsq_enabled = true;
|
||||
pr_info("%s: Host Software Queue enabled\n",
|
||||
|
||||
@@ -730,7 +730,8 @@ MMC_DEV_ATTR(oemid, "0x%04x\n", card->cid.oemid);
|
||||
MMC_DEV_ATTR(serial, "0x%08x\n", card->cid.serial);
|
||||
MMC_DEV_ATTR(ocr, "0x%08x\n", card->ocr);
|
||||
MMC_DEV_ATTR(rca, "0x%04x\n", card->rca);
|
||||
|
||||
MMC_DEV_ATTR(ext_perf, "%02x\n", card->ext_perf.feature_support);
|
||||
MMC_DEV_ATTR(ext_power, "%02x\n", card->ext_power.feature_support);
|
||||
|
||||
static ssize_t mmc_dsr_show(struct device *dev, struct device_attribute *attr,
|
||||
char *buf)
|
||||
@@ -792,6 +793,8 @@ static struct attribute *sd_std_attrs[] = {
|
||||
&dev_attr_ocr.attr,
|
||||
&dev_attr_rca.attr,
|
||||
&dev_attr_dsr.attr,
|
||||
&dev_attr_ext_perf.attr,
|
||||
&dev_attr_ext_power.attr,
|
||||
NULL,
|
||||
};
|
||||
|
||||
@@ -1533,8 +1536,8 @@ cont:
|
||||
host->cqe_enabled = true;
|
||||
|
||||
if (card->ext_csd.cmdq_en) {
|
||||
pr_info("%s: Command Queue Engine enabled\n",
|
||||
mmc_hostname(host));
|
||||
pr_info("%s: Command Queue Engine enabled, %u tags\n",
|
||||
mmc_hostname(host), card->ext_csd.cmdq_depth);
|
||||
} else {
|
||||
host->hsq_enabled = true;
|
||||
pr_info("%s: Host Software Queue enabled\n",
|
||||
|
||||
Reference in New Issue
Block a user