From patchwork Fri Sep 20 08:47:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yan Zhen X-Patchwork-Id: 13808404 Received: from HK3PR03CU002.outbound.protection.outlook.com (mail-eastasiaazon11011033.outbound.protection.outlook.com [52.101.129.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13EA74D8D0; Fri, 20 Sep 2024 09:09:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.129.33 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726823383; cv=fail; b=OAAjYz87hUvAOC5LRsw60Z/gSyBWeu074mkFixyBOjDTCJPQ/i6n1gPatuh1YdVY9mTNnbf93CM6knCJMmByTEs95qNTJNwg3iIn1cOEfnQKXNWaoNq7x41DBs1PIvqL3+lIkEBsMjXSsQP+Xw9V44hfrGAVZzo8qeM4Cy4stII= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726823383; c=relaxed/simple; bh=4PdqwTuTbPy7A8KVqJs2cM8fbXBtZwC7YpSiIHVII1s=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=iHvb3W7TzlWAWytiwjLYG6QETx3J6a6DO0nq9jzw/GRM0LwcDAuOWntspuDzDkePN3PCaRxfgXsT5Tp8Gs7e9PGh+ikLw4wqtvq+f2k5TJKwbc2oKBo0SD7QpFEH5TtbhU7eUlK813aVgq3xZWF8A1xGsU6g0sw+tL+n5iXqxMc= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vivo.com; spf=pass smtp.mailfrom=vivo.com; dkim=pass (2048-bit key) header.d=vivo.com header.i=@vivo.com header.b=XKcVLxRH; arc=fail smtp.client-ip=52.101.129.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vivo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=vivo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=vivo.com header.i=@vivo.com header.b="XKcVLxRH" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Jkv9uMH9kT1yjroYkULb243IKvjcHu26skXWkeD3POIpdoUH/JqBzef6tsFNCUuOCl9T+yOschszTkfriihZ6rBX4QFm+GBdc9nZxLwljAe6QzzmlzDz0/YAIBybfyArHbQmVpgxcBiCHTTNKEHbhEIusF/JQ+PbUFYiEofbEmnc8V+vrVncY9YHVLVLJibV1cBAKLYhkLsC86D2RhLLxUzqL7qUcQq8A1dWHDZNgX61CBpj5xik2BqM0HnbzPGQd+rYMg02M+6hcAydUJCHj1cYjJMEOffp0WxYFtpjEZSmJlaqYx+ZFGnpUgA75la1LZQhEyV/xAzzt+aB+K5JjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=aR7fLCKp50OCzEfxs1F6w6Gum50h2rPyPgNfhzgNzA0=; b=Fm4olOe82McyYB6ysWaU/Mbj7NoSTpw6aholD+8OnLj1LR/JEV+WJ/BNQaM3iOJIfWkLtlSSGOz2lt4gMcsAEr3yVFZ1oQOozwtpjvps0c2GPBp+3Qq4lv1Paahjd384MXU2CsNdIdelr6o+ppPBbs46H+MpJM103aftfCopC567sMyZgo9G2B4pZglojonBFOjXl3nE5ATCIdVLhYMb1oPoHJti44pthSR5ufNL38/IfPWGHBLYLbCuIXwPC+LzrwBWvJzlxm0A/YEeKZjg5gOEPU3a/kipBmjE05+5qOrg44zDWX+K21u7+oR3IbpMsqLz3nOhUrcbfp7fjBO2hQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aR7fLCKp50OCzEfxs1F6w6Gum50h2rPyPgNfhzgNzA0=; b=XKcVLxRHIWg3BLARvg/v95Hn49m6VtYvGI41k/Yum/N2n4/w4v0iGIF6P7ELidFAROeTHNbbPfUxk+1tV83g69q0fEf2Sskf/8MyEXRXZgKlToU0I4pSnzzVC48nLVOxv/8J+B/oHHXE/r/ECAZOBYoT+QDdy8hoWqBzblmPzw36yPl54X+TL+yCO7ngs1Ab03YzfvMDSD2lvY5tzk++bAfO810osYeYPJhPtyPRStDCg1X20z/J409ymjtgVMEUfvsoA8/ewOrkUgWgmaoWiMDNlEOJLLq9wEaS2BlqaFgwhO/223QWBLt+1jofJjdxspyWdJB1grdcEuym3Uba8Q== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from KL1PR0601MB4113.apcprd06.prod.outlook.com (2603:1096:820:31::7) by SI2PR06MB5171.apcprd06.prod.outlook.com (2603:1096:4:1ed::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.22; Fri, 20 Sep 2024 09:09:35 +0000 Received: from KL1PR0601MB4113.apcprd06.prod.outlook.com ([fe80::7e85:dad0:3f7:78a1]) by KL1PR0601MB4113.apcprd06.prod.outlook.com ([fe80::7e85:dad0:3f7:78a1%4]) with mapi id 15.20.7962.022; Fri, 20 Sep 2024 09:09:34 +0000 From: Yan Zhen To: neal_liu@aspeedtech.com, gregkh@linuxfoundation.org, joel@jms.id.au, herve.codina@bootlin.com Cc: andrew@codeconstruct.com.au, linux-aspeed@lists.ozlabs.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-renesas-soc@vger.kernel.org, opensource.kernel@vivo.com, Yan Zhen Subject: [PATCH v1] usb: gadget: udc: fix typo in the comment Date: Fri, 20 Sep 2024 16:47:05 +0800 Message-Id: <20240920084708.1967059-1-yanzhen@vivo.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SG2PR06CA0218.apcprd06.prod.outlook.com (2603:1096:4:68::26) To KL1PR0601MB4113.apcprd06.prod.outlook.com (2603:1096:820:31::7) Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: KL1PR0601MB4113:EE_|SI2PR06MB5171:EE_ X-MS-Office365-Filtering-Correlation-Id: 233261e2-767d-40f8-be25-08dcd953f1af X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|52116014|376014|366016|38350700014; X-Microsoft-Antispam-Message-Info: w2/NVtna5DxCGLnaqKwdYWNC1eAAHvjw8QZ8eBx7GI76jB4S94xwKTh0tAnL8MXXx1JKKXD2Css6YPZrx+Dmu4M9gnq4TNk+UPhdsc6BEDILcksxvPSA8oEyRqYwh6BUrVLTtM1xh0/f42QEJkTXClJab+q14COSJ5LDH3aDfYO3Z3eltsxHmLpoJJO74UTEBVIDXxCuJxwvA32ofll4ibUNdEM4PZbBMRo4+aLMgG/4/mqq8PA++LZ3ugX1+SbBGbS+NBcls/ttx4ktnPVIc81AgIXILlwFYKiXWkQMTgTFqLpmGQ62Snb2/oHpID/A7QCDEcVajilUNZWuWv47zZ+WtkH1o6++dNrzb1OoOiAyZCvqXzlhHHr9Uo2iXh2m8cx61bspgpl7lfcDRnSdMjAEq+f0sXYHqQlfL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:KL1PR0601MB4113.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(52116014)(376014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: rflHA0KJW6HYIrrAQ1RLtC78Jp4W73iejmMt3q7R67MoLGV6GMZ3iiZN2z2uUpTcHCdp0anl27DTjXRj33Yb7C8xcrDCs8XFAYO6sgHYwueVQeFGWmtNu0cLAaTT2HvqVJG1Rln8E6eCrpNaDb2zQhqqnZHt8LOToxwxjn30yxyOoEgHyOq1DC71ZLKeYl4vvde7mFrNCkRB2//oS+ys7ptR2g/0z7bMlxRK+zm4Fg9SAyrYLoFQSWurGfX1StsopQqW9BKbNRW6wTbrN85qkLLBI6eSGOC4mzKCDwIH3PMM/TkZXelJrs4xxIqSaH1PCELecMIfR1f591QW7mJg3MtF6itAEkVHwgfqj4cB0bsJB1+9tj5Iu+qLVePj1VoXe2f0wpd5WbWT5PDTH1YRdC5d9y74/azGuhr0KA7zY0Ummv0QRG3OP/uWbjfsHlHL0V9HrLeFr3j5Sc8icF+vOD7Kk0uWt8Y8dlnt6fWzSgxnY3CYgCEYzi41Yp5nLPcGJgHx37oSjTv3HQ49c5bN4kHo4OsmP7QvM5jKHCGKB8dTUvr5Vph8msldZwSufJjQhckeE1mROufWnQzvP1TNPeOeDfWwXkx5jIAZW7l0Cp8vv9w+f4ZNRUuSZjSgxilUzKM+blZdvhUshLczH/zlyOUSw1yFftB52o9ADXysX0wpFTofBz4tHxDP6dPktGVGP8pvEhO1n4E87+GMKYWVgyrFNPjlOobqxtp3r5PfgtIOu/s39MWC9OJug+74xNjPDh7RXsnzZ7qfg0/8vpeUuYeJzjC6lLeEuooRHj2yd4jHoYVpYPOLHjTIjUMgQ6kZaRgg9e8hHyBa01oBozL1U3vMeuwOtCckwdZyqIhs/sIIRgijMtJ1H8yVAZWWMFZfvsSeXVm5BdFHQoKxlyTjYp4HsgzaXhFcpz2KMN9IgOasxQrN/LpMHcRW8PTrpcGqupbK8IFVwOGhcgaLHtvd7DMUgsfRYNga25juAMj7XtSDlCc0A8g3M0sSAuhgeOjAw/O1gAh33+XagQyRYSHdDTvHvl+dHKD+7HAi0qBzBX1NMCaQ1ajsAbWSez7r+2LeN5+IfFHpjUMmQEAulmRi8nJHW+M0/P7VxFFgROvVTOzj9nk2UF2JS8ET8q1JgldtdsRyM7di49J9FQBIH9tS1hu5kQb0SLegrGeo93xYV++1DCn37l0NN5MrQbiL26v+jzEg6JcTI/JgHlH+3LVKTP1flhWijBAIqhoqY4uc/RGaL5hL/jH5iZ+cKqtJyORedxItt//fR6IZOuHiQjS842esiJVJMORh6L0Tq21OindZ0d9JkRypVb5rE0qxKlNaJaZE5Ci2+sAxiLBGMXvctd12lShv0ozNISkOka/wwO4ntwdpMIOrQCO97Ok7tB+WMjKTCWOwIN1fjmysqBpF3SfvvKpjTQgRXgxWPy51KEUTHsWezIq5WsnvSN4ocDH2brM2M4ZI2o47sGJITP/JHCUSrhBG1CQV09U6LRm9hfdMIt8/xf/bs3n3nn2FJ1d9gcxRWi+N/hLlR8Mv4pDL8szQHPvxO7cBYBgKcsUdUqb4vgqGxNVUcTNgaABNV9ck X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 233261e2-767d-40f8-be25-08dcd953f1af X-MS-Exchange-CrossTenant-AuthSource: KL1PR0601MB4113.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2024 09:09:34.2531 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: l4YF3JNQbFeK/EsFjveDRHU3P8MpWAH6Sy0YPpu9EjcnN8kYIQIMmDKvHfrhrBtq/Sc9noTvXpUPaZOy1zYWcw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB5171 Correctly spelled comments make it easier for the reader to understand the code. Fix typos: 'trasmit' -> 'transmit', 'structres' -> 'structures', 'divisble' -> 'divisible', 'trainsmited' -> 'transmitted', 'packect's' -> 'packet's', 'timmer' -> 'timer', 'devcice' -> 'device', 'delelate' -> 'delegate', 'lengh' -> 'length'. Signed-off-by: Yan Zhen --- drivers/usb/gadget/udc/aspeed_udc.c | 2 +- drivers/usb/gadget/udc/dummy_hcd.c | 2 +- drivers/usb/gadget/udc/fsl_qe_udc.c | 6 +++--- drivers/usb/gadget/udc/fusb300_udc.c | 2 +- drivers/usb/gadget/udc/net2272.c | 2 +- drivers/usb/gadget/udc/renesas_usbf.c | 2 +- drivers/usb/gadget/udc/snps_udc_core.c | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/usb/gadget/udc/aspeed_udc.c b/drivers/usb/gadget/udc/aspeed_udc.c index f4781e611aaa..5b62f43b36f7 100644 --- a/drivers/usb/gadget/udc/aspeed_udc.c +++ b/drivers/usb/gadget/udc/aspeed_udc.c @@ -156,7 +156,7 @@ #define AST_EP_DMA_DESC_PID_DATA1 (2 << 14) #define AST_EP_DMA_DESC_PID_MDATA (3 << 14) #define EP_DESC1_IN_LEN(x) ((x) & 0x1fff) -#define AST_EP_DMA_DESC_MAX_LEN (7680) /* Max packet length for trasmit in 1 desc */ +#define AST_EP_DMA_DESC_MAX_LEN (7680) /* Max packet length for transmit in 1 desc */ struct ast_udc_request { struct usb_request req; diff --git a/drivers/usb/gadget/udc/dummy_hcd.c b/drivers/usb/gadget/udc/dummy_hcd.c index ff7bee78bcc4..f759bfc2f243 100644 --- a/drivers/usb/gadget/udc/dummy_hcd.c +++ b/drivers/usb/gadget/udc/dummy_hcd.c @@ -80,7 +80,7 @@ module_param_named(num, mod_data.num, uint, S_IRUGO); MODULE_PARM_DESC(num, "number of emulated controllers"); /*-------------------------------------------------------------------------*/ -/* gadget side driver data structres */ +/* gadget side driver data structures */ struct dummy_ep { struct list_head queue; unsigned long last_io; /* jiffies timestamp */ diff --git a/drivers/usb/gadget/udc/fsl_qe_udc.c b/drivers/usb/gadget/udc/fsl_qe_udc.c index 4e88681a79b6..55f49d01f9c5 100644 --- a/drivers/usb/gadget/udc/fsl_qe_udc.c +++ b/drivers/usb/gadget/udc/fsl_qe_udc.c @@ -511,7 +511,7 @@ static int qe_ep_register_init(struct qe_udc *udc, unsigned char pipe_num) out_8(&epparam->tbmr, rtfcr); tmp = (u16)(ep->ep.maxpacket + USB_CRC_SIZE); - /* MRBLR must be divisble by 4 */ + /* MRBLR must be divisible by 4 */ tmp = (u16)(((tmp >> 2) << 2) + 4); out_be16(&epparam->mrblr, tmp); @@ -1413,7 +1413,7 @@ static int ep_txframe_handle(struct qe_ep *ep) return 0; } -/* confirm the already trainsmited bd */ +/* confirm the already transmitted bd */ static int qe_ep_txconf(struct qe_ep *ep) { struct qe_bd __iomem *bd; @@ -2196,7 +2196,7 @@ static int tx_irq(struct qe_udc *udc) } -/* setup packect's rx is handle in the function too */ +/* setup packet's rx is handle in the function too */ static void rx_irq(struct qe_udc *udc) { struct qe_ep *ep; diff --git a/drivers/usb/gadget/udc/fusb300_udc.c b/drivers/usb/gadget/udc/fusb300_udc.c index 873265634ccc..8558ba4b8a8b 100644 --- a/drivers/usb/gadget/udc/fusb300_udc.c +++ b/drivers/usb/gadget/udc/fusb300_udc.c @@ -1297,7 +1297,7 @@ static void init_controller(struct fusb300 *fusb300) reg |= val; iowrite32(reg, fusb300->reg + FUSB300_OFFSET_HSCR); - /*set u1 u2 timmer*/ + /*set u1 u2 timer*/ fusb300_set_u2_timeout(fusb300, 0xff); fusb300_set_u1_timeout(fusb300, 0xff); diff --git a/drivers/usb/gadget/udc/net2272.c b/drivers/usb/gadget/udc/net2272.c index 19bbc38f3d35..5e398180cded 100644 --- a/drivers/usb/gadget/udc/net2272.c +++ b/drivers/usb/gadget/udc/net2272.c @@ -2097,7 +2097,7 @@ static irqreturn_t net2272_irq(int irq, void *_dev) } /* check dma interrupts */ #endif - /* Platform/devcice interrupt handler */ + /* Platform/device interrupt handler */ #if !defined(PLX_PCI_RDK) net2272_handle_stat1_irqs(dev, net2272_read(dev, IRQSTAT1)); net2272_handle_stat0_irqs(dev, net2272_read(dev, IRQSTAT0)); diff --git a/drivers/usb/gadget/udc/renesas_usbf.c b/drivers/usb/gadget/udc/renesas_usbf.c index 657f265ac7cc..6de09ece8545 100644 --- a/drivers/usb/gadget/udc/renesas_usbf.c +++ b/drivers/usb/gadget/udc/renesas_usbf.c @@ -2482,7 +2482,7 @@ static int usbf_handle_ep0_setup(struct usbf_ep *ep0) ep0->delayed_status = 0; if ((crq.ctrlreq.bRequestType & USB_TYPE_MASK) != USB_TYPE_STANDARD) { - /* This is not a USB standard request -> delelate */ + /* This is not a USB standard request -> delegate */ goto delegate; } diff --git a/drivers/usb/gadget/udc/snps_udc_core.c b/drivers/usb/gadget/udc/snps_udc_core.c index 2fc5d4d277bc..25f418d2c232 100644 --- a/drivers/usb/gadget/udc/snps_udc_core.c +++ b/drivers/usb/gadget/udc/snps_udc_core.c @@ -2707,7 +2707,7 @@ static irqreturn_t udc_control_in_isr(struct udc *dev) /* write fifo */ udc_txfifo_write(ep, &req->req); - /* lengh bytes transferred */ + /* length bytes transferred */ len = req->req.length - req->req.actual; if (len > ep->ep.maxpacket) len = ep->ep.maxpacket;