mtd: fix build with GCC 14
[openwrt/openwrt.git] / target / linux / generic / backport-5.15 / 781-v6.1-bus-mhi-host-always-print-detected-modem-name.patch
1 From f369e9ad52ec9361827e21a631b7198c9fca438e Mon Sep 17 00:00:00 2001
2 From: Koen Vandeputte <koen.vandeputte@citymesh.com>
3 Date: Wed, 31 Aug 2022 12:03:49 +0200
4 Subject: [PATCH] bus: mhi: host: always print detected modem name
5
6 This harmless print provides a very easy way of knowing
7 if the modem is detected properly during probing.
8
9 Promote it to an informational print so no hassle is required
10 enabling kernel debugging info to obtain it.
11
12 The rationale here is that:
13 On a lot of low-storage embedded devices, extensive kernel
14 debugging info is not always present as this would
15 increase it's size to much causing partition size issues.
16
17 Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
18 Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
19 Reviewed-by: Loic Poulain <loic.poulain@linaro.org>
20 Link: https://lore.kernel.org/r/20220831100349.1488762-1-koen.vandeputte@citymesh.com
21 [mani: added missing review tags]
22 Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
23 ---
24 drivers/bus/mhi/host/pci_generic.c | 2 +-
25 1 file changed, 1 insertion(+), 1 deletion(-)
26
27 --- a/drivers/bus/mhi/host/pci_generic.c
28 +++ b/drivers/bus/mhi/host/pci_generic.c
29 @@ -806,7 +806,7 @@ static int mhi_pci_probe(struct pci_dev
30 struct mhi_controller *mhi_cntrl;
31 int err;
32
33 - dev_dbg(&pdev->dev, "MHI PCI device found: %s\n", info->name);
34 + dev_info(&pdev->dev, "MHI PCI device found: %s\n", info->name);
35
36 /* mhi_pdev.mhi_cntrl must be zero-initialized */
37 mhi_pdev = devm_kzalloc(&pdev->dev, sizeof(*mhi_pdev), GFP_KERNEL);