[PATCH 02/22] usb: cdns3: fix a few spelling mistakes in comments

From: Shunbo Shi

Date: Tue Nov 10 2026 - 01:51:50 EST


No functional changes.

Signed-off-by: Shunbo Shi <shishunbo@xxxxxxxxxxxxxxxxxxxx>
---
drivers/usb/cdns3/cdns3-ep0.c | 4 ++--
drivers/usb/cdns3/cdns3-gadget.c | 6 +++---
drivers/usb/cdns3/drd.c | 2 +-
drivers/usb/cdns3/drd.h | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/usb/cdns3/cdns3-ep0.c b/drivers/usb/cdns3/cdns3-ep0.c
index e29989d57bef..5d6d3616bfc6 100644
--- a/drivers/usb/cdns3/cdns3-ep0.c
+++ b/drivers/usb/cdns3/cdns3-ep0.c
@@ -643,7 +643,7 @@ void cdns3_check_ep0_interrupt_proceed(struct cdns3_device *priv_dev, int dir)
* @desc: pointer to usb endpoint descriptor
*
* Function shouldn't be called by gadget driver,
- * endpoint 0 is allways active
+ * endpoint 0 is always active
*/
static int cdns3_gadget_ep0_enable(struct usb_ep *ep,
const struct usb_endpoint_descriptor *desc)
@@ -656,7 +656,7 @@ static int cdns3_gadget_ep0_enable(struct usb_ep *ep,
* @ep: pointer to endpoint zero object
*
* Function shouldn't be called by gadget driver,
- * endpoint 0 is allways active
+ * endpoint 0 is always active
*/
static int cdns3_gadget_ep0_disable(struct usb_ep *ep)
{
diff --git a/drivers/usb/cdns3/cdns3-gadget.c b/drivers/usb/cdns3/cdns3-gadget.c
index f4dfd0131708..ba10ef9ea656 100644
--- a/drivers/usb/cdns3/cdns3-gadget.c
+++ b/drivers/usb/cdns3/cdns3-gadget.c
@@ -452,7 +452,7 @@ static void __cdns3_descmiss_copy_data(struct usb_request *request,
descmiss_req->actual);
request->actual = length;
} else {
- /* It should never occures */
+ /* It should never occurs */
request->status = -ENOMEM;
}
} else {
@@ -1062,7 +1062,7 @@ static int cdns3_ep_run_stream_transfer(struct cdns3_endpoint *priv_ep,

if (!(priv_ep->flags & EP_STALLED)) {
trace_cdns3_ring(priv_ep);
- /*clearing TRBERR and EP_STS_DESCMIS before seting DRDY*/
+ /*clearing TRBERR and EP_STS_DESCMIS before setting DRDY*/
writel(EP_STS_TRBERR | EP_STS_DESCMIS, &priv_dev->regs->ep_sts);

priv_ep->prime_flag = false;
@@ -1404,7 +1404,7 @@ static int cdns3_ep_run_transfer(struct cdns3_endpoint *priv_ep,

if (!priv_ep->wa1_set && !(priv_ep->flags & EP_STALLED)) {
trace_cdns3_ring(priv_ep);
- /*clearing TRBERR and EP_STS_DESCMIS before seting DRDY*/
+ /*clearing TRBERR and EP_STS_DESCMIS before setting DRDY*/
writel(EP_STS_TRBERR | EP_STS_DESCMIS, &priv_dev->regs->ep_sts);
writel(EP_CMD_DRDY, &priv_dev->regs->ep_cmd);
cdns3_rearm_drdy_if_needed(priv_ep);
diff --git a/drivers/usb/cdns3/drd.c b/drivers/usb/cdns3/drd.c
index 42f13757d904..7465a2a4fb2d 100644
--- a/drivers/usb/cdns3/drd.c
+++ b/drivers/usb/cdns3/drd.c
@@ -58,7 +58,7 @@ static int cdns_set_mode(struct cdns *cdns, enum usb_dr_mode mode)
/*
* Enable work around feature built into the
* controller to address issue with RX Sensitivity
- * est (EL_17) for USB2 PHY. The issue only occures
+ * est (EL_17) for USB2 PHY. The issue only occurs
* for 0x0002450D controller version.
*/
if (cdns->phyrst_a_enable) {
diff --git a/drivers/usb/cdns3/drd.h b/drivers/usb/cdns3/drd.h
index 1e2aee14d629..0b134c1e5a49 100644
--- a/drivers/usb/cdns3/drd.h
+++ b/drivers/usb/cdns3/drd.h
@@ -160,11 +160,11 @@ struct cdns_otg_irq_regs {
* Value of the strap pins for:
* CDNS3:
* 000 - no default configuration
- * 010 - Controller initiall configured as Host
+ * 010 - Controller initially configured as Host
* 100 - Controller initially configured as Device
* CDNSP:
* 000 - No default configuration.
- * 010 - Controller initiall configured as Host.
+ * 010 - Controller initially configured as Host.
* 100 - Controller initially configured as Device.
*/
#define OTGSTS_STRAP(p) (((p) & GENMASK(14, 12)) >> 12)
--
2.53.0