[PATCH v4 14/24] usb: gadget: ci13xxx: print basic device info when probing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Report basic information about capabilities and register addresses on
probe.

Signed-off-by: Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx>
---
 drivers/usb/gadget/ci13xxx_udc.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/usb/gadget/ci13xxx_udc.c b/drivers/usb/gadget/ci13xxx_udc.c
index 1da415f..cec92a1 100644
--- a/drivers/usb/gadget/ci13xxx_udc.c
+++ b/drivers/usb/gadget/ci13xxx_udc.c
@@ -313,6 +313,9 @@ static int hw_device_init(struct ci13xxx *udc, void __iomem *base,
 	if (udc->hw_ep_max == 0 || udc->hw_ep_max > ENDPT_MAX)
 		return -ENODEV;
 
+	dev_info(udc->dev, "ChipIdea UDC found, lpm: %d; cap: %p op: %p\n",
+		 udc->hw_bank.lpm, udc->hw_bank.cap, udc->hw_bank.op);
+
 	/* setup lock mode ? */
 
 	/* ENDPTSETUPSTAT is '0' by default */
-- 
1.7.10

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux