Skip to contentSkip to conversation

bus: mhi: host: always print detected modem name

PATCH Applied Koen Vandeputte 2 participants 2 messages Aug 31, 2022 – Sep 7, 2022 MHI bus

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 bus: mhi: host: always print detected modem name

This harmless print provides a very easy way of knowing if the modem is detected properly during probing.

Promote it to an informational print so no hassle is required enabling kernel debugging info to obtain it.

The rationale here is that:
On a lot of low-storage embedded devices, extensive kernel debugging info is not always present as this would increase it's size to much causing partition size issues.

---

v2 -> sync SoB email with From

 drivers/bus/mhi/host/pci_generic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bus/mhi/host/pci_generic.c +1 -1
index 9e545f2a5a26..51e2b901bae0 100644
@@ -841,7 +841,7 @@ static int mhi_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 	struct mhi_controller *mhi_cntrl;
 	int err;
 
-	dev_dbg(&pdev->dev, "MHI PCI device found: %s\n", info->name);
+	dev_info(&pdev->dev, "MHI PCI device found: %s\n", info->name);
 
 	/* mhi_pdev.mhi_cntrl must be zero-initialized */
 	mhi_pdev = devm_kzalloc(&pdev->dev, sizeof(*mhi_pdev), GFP_KERNEL);
Signature · 1 line
2.34.1
maintainer Applied
#1 lore raw
Quoted 6 lines · Koen Vandeputte

This harmless print provides a very easy way of knowing if the modem is detected properly during probing.

Promote it to an informational print so no hassle is required enabling kernel debugging info to obtain it.

Quoted 6 lines

The rationale here is that:
On a lot of low-storage embedded devices, extensive kernel debugging info is not always present as this would increase it's size to much causing partition size issues.

You have missed adding reviews of myself and Loic. I have added them while applying but please preserve the tags from next time onwards.

Applied to mhi-next!

Thanks,
Mani

Quoted 23 lines

---

v2 -> sync SoB email with From

 drivers/bus/mhi/host/pci_generic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bus/mhi/host/pci_generic.c +1 -1
index 9e545f2a5a26..51e2b901bae0 100644
@@ -841,7 +841,7 @@ static int mhi_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 	struct mhi_controller *mhi_cntrl;
 	int err;
 
-	dev_dbg(&pdev->dev, "MHI PCI device found: %s\n", info->name);
+	dev_info(&pdev->dev, "MHI PCI device found: %s\n", info->name);
 
 	/* mhi_pdev.mhi_cntrl must be zero-initialized */
 	mhi_pdev = devm_kzalloc(&pdev->dev, sizeof(*mhi_pdev), GFP_KERNEL);
Signature · 1 line
2.34.1