From patchwork Mon May 9 17:02:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Piyush Mehta X-Patchwork-Id: 12843876 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 35419C433EF for ; Mon, 9 May 2022 17:04:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=jWJYZkEYUMrzuHylvQmyQYZFipz1r4ETu5FRklNYW/k=; b=2T/PdlMduU8dhe j1AqKjkol6yyWwE6bdZ96hLDSmF8DNWi+HbbtMak0ZzyIcpO60LH3bDSMpNH9zUiaT78ej0Ga8Zyx fndiaPQg4GEqeVWbDWndXgvR3bqCX+o9B+k5jh6yR43Y0Ti681MnZwusmgROTdKfpBZMngV338I5U U7e15orRDlcKOWrosTeHuqn5pjFdJ+XTKEvrxewkUm3GaExSgWKKoOLmW4yr4vY3kxSGzNNKOoHqA SWDr68wxy8i+t5GlwTqlghkBjBFEHxZM+yxFgK/dFaulmoiXcbbEWrDKnbS3DGG8kM2dBFr/htQrf bgoLRBLZ1WAKus7A9czQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1no6nJ-00FVSB-NP; Mon, 09 May 2022 17:03:37 +0000 Received: from mail-mw2nam10on2060e.outbound.protection.outlook.com ([2a01:111:f400:7e89::60e] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1no6nG-00FVQR-5z for linux-arm-kernel@lists.infradead.org; Mon, 09 May 2022 17:03:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OVFdR5ayfAW5mb9Z/JYg4QytmlNsWnW2OSg0wGPz8oOfW09ZJX2bdWyHG3W090xhkTz/YsgA42paCFttT5WfxxHjy8aLT70PCItSLDbgs5GlBgskOgPqLFHFbWK2UMDbM7io3DEMRF2RD2JabFYvD6tduD97P5wD3HYnba6cpBq54cAZhztyglyMbDW/itL7mYhrw7qyvaDG4BPG+VjsaY1nl0red0Y+SkzQg3C28kqmg3Dmod/1Ts2eow1zTWwF8noMH38xCX0DosIQKvGDifjDlkHCxuQrfMSX+EIVn3rYw4+EGoHByVGCCITxuwz7TGunNWbxNCIWUCDJzRboCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=sbv0Hp0abU0aDG6vWHem3z86IwXQwLQHV8Zmvk79G9Q=; b=BuZPqqXK8LsymOutxEYGSkK5JMDfPOpenQtFAIn3YKyHXq/EEPEBMxoGBn+M3Ba9dytwBdYpzRMqcO5yTg8eKQs55z18U8rdh3KFEyaEZ2tBoJUeeaEBoS0nT6e7OvZ8KHqJ9BBnIz6L2svjCCm9W+cv8pRAmMZ0k87wfXn32KsPGqAaSryNDWhzGk44Ulg1j9Qjaa1QMmbC1LYb1hz6wQTmbPUqkSvz4PJQzegvok6bNycAhCgJKGhLNaWbd8clDtfFw+1Q1stgPFXdnk48RDjsP73rhbjIiwVkgo5HKERQPXveVUW8xjjXA6M3tSmdfLxOEQoT5GRhpz03iHEtdQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=rowland.harvard.edu smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sbv0Hp0abU0aDG6vWHem3z86IwXQwLQHV8Zmvk79G9Q=; b=XKKuR5Gae1NKNDkU5WAmfiFrkkhx+oyUvHB+eFg4xJNzQEKx83tYgqB1AGSms6SnyJiuQJ3m0uux8NKqooJNup9rwc1A7duzudvJ5E+yU4SwpEVGX4L5ugpi5kTQzt2AUhkg8+a7iDklK1ZAi/xZTEIvhjvD0MDZoDeqD1ep0hI= Received: from DS7PR05CA0006.namprd05.prod.outlook.com (2603:10b6:5:3b9::11) by BL3PR02MB7857.namprd02.prod.outlook.com (2603:10b6:208:33c::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.20; Mon, 9 May 2022 17:03:27 +0000 Received: from DM3NAM02FT018.eop-nam02.prod.protection.outlook.com (2603:10b6:5:3b9:cafe::bd) by DS7PR05CA0006.outlook.office365.com (2603:10b6:5:3b9::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.20 via Frontend Transport; Mon, 9 May 2022 17:03:26 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by DM3NAM02FT018.mail.protection.outlook.com (10.13.4.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5227.15 via Frontend Transport; Mon, 9 May 2022 17:03:26 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Mon, 9 May 2022 10:03:08 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Mon, 9 May 2022 10:03:08 -0700 Received: from [10.140.6.18] (port=51690 helo=xhdlakshmis40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1no6mp-0007cZ-V1; Mon, 09 May 2022 10:03:08 -0700 From: Piyush Mehta To: , , , , CC: , , , , Piyush Mehta Subject: [PATCH] usb: host: ehci-xilinx: adding description for return value Date: Mon, 9 May 2022 22:32:52 +0530 Message-ID: <20220509170252.28271-1-piyush.mehta@xilinx.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cf7cd9ec-86f4-4ff6-1013-08da31ddd589 X-MS-TrafficTypeDiagnostic: BL3PR02MB7857:EE_ X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ERKOag0pfgni7O8OYC/xhsFqiEKEWqwlnx4lNpYOR6M3iu2LdSRzEEeGT6hARQoaD7A22cmLyBjNCI0BTEAf4HM6HBkC6tCRd9sZCWDXt/cXB87Unt2M3FC97+q18GZwFXGVEFsZz+R7gZTV/3kSw2dMwAG43qXE0thcGxR4lEPVe6AXNymGwFhOM7E+dCf87aBw44bKYLc7DMrNrApjzO++qSwwAiaxBHnNCOl+oASbqjJRwrp+nTC1gPeV8QC60opW679zkzGEWM+rWrk3/tu1hHZoLWdn7ZjAYU6/VtpkuIpmc0y9J8UsdWiR4LHBI44d4f7JPKvIiDf6dUsE8ih6S0UMWb3qdu2f0aTxvnGXsUZ6OK9NoTe759Jv+i9u7YHecKAgEAlwg5zZtlZ00iNmsTJLoLd28trQNjZZFxFfk8HhF5WaVdu3kRu73ArOkgxv3jQ+eRF0XQfQMVjo9XksCRxf0f9ou1apYAzlN9l1uEDFldAImY0WxequaOBgkwKIuk2QoFpekwEX111Ita01/58dSoOhFHkeNfrOouBCAduyzaUe6EgkL4QCJM1cdsx9Ui5HsUYK5VqRR0Q4GdFSozgm+o/7rJYYyS1bot3igAbPva2Mk7X/YDzknd6dwsjFAyn7Q53myAnehLSgs+u3CjQMXgZaMhUlnPg3eeHb8dnddfL+VXTaeHPfP6gA2uzs0aBOzQ+nkpHX0YXN5frjnAkk4rPtdMH8WFu2HGo= X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(13230001)(4636009)(40470700004)(36840700001)(46966006)(356005)(7696005)(6666004)(47076005)(508600001)(186003)(26005)(40460700003)(7636003)(110136005)(36860700001)(82310400005)(54906003)(83380400001)(336012)(426003)(1076003)(107886003)(5660300002)(2616005)(9786002)(8936002)(36756003)(70206006)(2906002)(44832011)(70586007)(316002)(4326008)(8676002)(102446001)(2101003); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2022 17:03:26.5472 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cf7cd9ec-86f4-4ff6-1013-08da31ddd589 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: DM3NAM02FT018.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR02MB7857 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220509_100334_263024_D543CAF2 X-CRM114-Status: GOOD ( 12.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch resolves kernel-doc warnings to add return value description in function comments. Addressed warnings: drivers/usb/host/ehci-xilinx-of.c:37: warning: No description found for return value of 'ehci_xilinx_port_handed_over' drivers/usb/host/ehci-xilinx-of.c:117: warning: No description found for return value of 'ehci_hcd_xilinx_of_probe' drivers/usb/host/ehci-xilinx-of.c:201: warning: No description found for return value of 'ehci_hcd_xilinx_of_remove' Signed-off-by: Piyush Mehta --- drivers/usb/host/ehci-xilinx-of.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/host/ehci-xilinx-of.c b/drivers/usb/host/ehci-xilinx-of.c index a9c6d18..0811a5b 100644 --- a/drivers/usb/host/ehci-xilinx-of.c +++ b/drivers/usb/host/ehci-xilinx-of.c @@ -32,6 +32,8 @@ * There are cases when the host controller fails to enable the port due to, * for example, insufficient power that can be supplied to the device from * the USB bus. In those cases, the messages printed here are not helpful. + * + * Return: Always return 0 */ static int ehci_xilinx_port_handed_over(struct usb_hcd *hcd, int portnum) { @@ -110,6 +112,8 @@ static const struct hc_driver ehci_xilinx_of_hc_driver = { * host controller. Because the Xilinx USB host controller can be configured * as HS only or HS/FS only, it checks the configuration in the device tree * entry, and sets an appropriate value for hcd->has_tt. + * + * Return: zero on success, negative error code otherwise */ static int ehci_hcd_xilinx_of_probe(struct platform_device *op) { @@ -194,6 +198,8 @@ static int ehci_hcd_xilinx_of_probe(struct platform_device *op) * * Remove the hcd structure, and release resources that has been requested * during probe. + * + * Return: Always return 0 */ static int ehci_hcd_xilinx_of_remove(struct platform_device *op) {