Ard Biesheuvel
6690986da1
usb: clean up after dropping driver registration log spam
...
Drop another couple of pointless pr_info() calls, and drop a number of
instances of hcd_name variables that are no longer referenced now that
they are no longer printed to the log at driver registration time.
Fixes: 10174220f5 ("usb: reduce kernel log spam on driver registration")
Signed-off-by: Ard Biesheuvel <ardb@kernel.org >
Link: https://lore.kernel.org/r/20220905111740.352348-1-ardb@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2022-09-05 13:23:28 +02:00
Ard Biesheuvel
10174220f5
usb: reduce kernel log spam on driver registration
...
Drivers are typically supposed to be quiet unless they are actually
probed, but for some reason, USB host controllers seem to be exempt from
this rule, and happily broadcast their existence into the kernel log at
boot even if the hardware in question is nowhere to be found.
Let's fix that, and remove these pr_info() calls.
Cc: Alan Stern <stern@rowland.harvard.edu >
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Cc: Nicolas Ferre <nicolas.ferre@microchip.com >
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com >
Cc: Claudiu Beznea <claudiu.beznea@microchip.com >
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Cc: Alim Akhtar <alim.akhtar@samsung.com >
Cc: Avi Fishman <avifishman70@gmail.com >
Cc: Tomer Maimon <tmaimon77@gmail.com >
Cc: Tali Perry <tali.perry1@gmail.com >
Cc: Patrick Venture <venture@google.com >
Cc: Nancy Yuen <yuenn@google.com >
Cc: Benjamin Fair <benjaminfair@google.com >
Cc: Patrice Chotard <patrice.chotard@foss.st.com >
Cc: Vladimir Zapolskiy <vz@mleia.com >
Cc: linux-usb@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-samsung-soc@vger.kernel.org
Cc: linux-omap@vger.kernel.org
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Reviewed-by: Rob Herring <robh@kernel.org >
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com >
Acked-by: Alan Stern <stern@rowland.harvard.edu >
Signed-off-by: Ard Biesheuvel <ardb@kernel.org >
Link: https://lore.kernel.org/r/20220825170327.674446-1-ardb@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2022-08-31 09:07:53 +02:00
Tomer Maimon
7ebfdfa08f
usb: host: npcm7xx: remove USB EHCI host reset sequence
...
Remove USB EHCI host controller reset sequence from NPCM7XX USB EHCI
host probe function because it is done in the NPCM reset driver.
Acked-by: Alan Stern <stern@rowland.harvard.edu >
Signed-off-by: Tomer Maimon <tmaimon77@gmail.com >
Link: https://lore.kernel.org/r/20220718181842.61040-2-tmaimon77@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2022-08-19 11:03:30 +02:00
Paul Cercueil
f0dbd25f42
usb/host: ehci-npcm7xx: Use pm_ptr() macro
...
Use the newly introduced pm_ptr() macro, and mark the suspend/resume
functions __maybe_unused. These functions can then be moved outside the
CONFIG_PM_SUSPEND block, and the compiler can then process them and
detect build failures independently of the config. If unused, they will
simply be discarded by the compiler.
Signed-off-by: Paul Cercueil <paul@crapouillou.net >
Acked-by: Alan Stern <stern@rowland.harvard.edu >
Link: https://lore.kernel.org/r/20200903112554.34263-4-paul@crapouillou.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-09-04 16:54:47 +02:00
Dan Carpenter
4da24f4dd0
USB: host: ehci-npcm7xx: Fix some error codes in probe
...
We accidentally return 1 instead of negative error codes.
Fixes: df44831ee2 ("USB host: Add USB ehci support for nuvoton npcm7xx platform")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com >
Signed-off-by: Avi Fishman <AviFishman70@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2018-06-28 19:32:42 +09:00
Avi Fishman
df44831ee2
USB host: Add USB ehci support for nuvoton npcm7xx platform
...
This patch adds support for ehci controller for the Nuvoton
npcm7xx platform.
Most of the code was taken from ehci-spear.c + specific initialization
code
Signed-off-by: Avi Fishman <AviFishman70@gmail.com >
Acked-by: Alan Stern <stern@rowland.harvard.edu >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2018-06-25 21:59:15 +08:00