Message ID | 1605201148-4508-7-git-send-email-srinivas.neeli@xilinx.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=sTYh=ES=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29EB5C5519F for <linux-arm-kernel@archiver.kernel.org>; Thu, 12 Nov 2020 17:13:40 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A476B216FD for <linux-arm-kernel@archiver.kernel.org>; Thu, 12 Nov 2020 17:13:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="zPjug9Xw"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.b="nHnDP9fp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A476B216FD Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=NhV8F/stQd4YKhhBlKTyT/+soqQ9Q1E0NQYinwqatw8=; b=zPjug9XwDRUO6Uhalj5KPglxx ZSaee24q7mv1XzXrZh12cBRJ0fAUHJ10GQWb6/u0fE1Yd8o65CP+gJpbAbniuboOzxBrTsJ2qDqWd jVejfzirPP4dZCM4uNc3EumMEf1RqXlAxmGyocEjFPvbUYRPuHW5B9+MN5sMmZID2DscAWfl2r2qN K3rd2T9YOcToCdVdQTtSreXXdXbhY0sFdn2lzcQHUcGQjSv7IL8voUFQEsn6SYW2+paFbeZieAYFf dAwwkYd2uJt7u+ppCbqVZf1ElDMhZZ5b+THM4Fvwwry27PgftIUCrbDsGWtroI7bd1kQN/efwHuIa zwNaGJ+Qg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kdG9k-000448-HG; Thu, 12 Nov 2020 17:13:08 +0000 Received: from mail-bn8nam12on2051.outbound.protection.outlook.com ([40.107.237.51] helo=NAM12-BN8-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kdG9g-00042w-5f for linux-arm-kernel@lists.infradead.org; Thu, 12 Nov 2020 17:13:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n9NvHGxptf/9Q2wTz8NRzRS1fOzgpuazTQrGEcZz9KzJAOvMNTFnUR809eaTgMLqBBJzEFa+ReOGijduHm00nhbDDUOeO8vyLhoQazKKTGQim+0+7E5yLizv6FQ/VElYqHGZnDmb8IQ+WQMW9ahh22QEYWWiETfEsFHqHgYPfrY2aGWzvtdAdCAL8+zBYMYDyfhyPsGjNcoaRAzsKDwohsMlK9Aj8lBPAMweHlvK09wR0egJXvsEqtuZpzCPLCNy/ffx3lo8nzTm9rLwOgxbH1Hd6Mn06coFrJb0zTD7U9XB7UDZ1KWJMOeLh17ymyhFPYKe1x202v0NtUduc+MJRA== 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-SenderADCheck; bh=KkJGtdy2JEmHYS0upJDXQBffj2eJKF8HCep+/Agskw0=; b=i4U16e/EDprR01xNIiZojHF9Hu9oJNrNsfGPy8dP2gQngfEBeRrb4xNhbGTLd4enAhKhqafP74clPPSlCaNr7Bmf8F5gDhihuQ5r9HvnITSRfjJD7rHxCE1SODUTvvOS/466FMrebTHZmxTYuLSoyU9P7N+kXwM22SlcmgeyuilneKCBF6h/j61Oq6ryvyQ/At1wWO8NNIneuPONlBt6RJt9Vp0oOlh/HzKY0EhJrozKLi7FdNAvpkXjuZoZTtf9kGFZWauC77dHLqgxitos0wfSzeVDBnjphuqgY+rswE79w8dZnWEsxn4mNaNs6VK168UB3hSP7hbgr5vJ6hqC7A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=linaro.org smtp.mailfrom=xilinx.com; dmarc=bestguesspass 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=KkJGtdy2JEmHYS0upJDXQBffj2eJKF8HCep+/Agskw0=; b=nHnDP9fp558Dg3+y3ZF4lEOyBY12SlQafb+/MMTnntVDhaqFCDatlVLoQ8fP14kH2Ty5VdBm+t35zto5LI3Avt0MTpNnE3t5ppAkXO8Rm6AxkKZCKdKyD8HF3v6PutqWEMrKsSeFCgPMMF9SiJbx6sqCFAjRMw7Zt8wrVEid9hQ= Received: from CY4PR16CA0020.namprd16.prod.outlook.com (2603:10b6:903:102::30) by BY5PR02MB6738.namprd02.prod.outlook.com (2603:10b6:a03:20e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21; Thu, 12 Nov 2020 17:13:01 +0000 Received: from CY1NAM02FT039.eop-nam02.prod.protection.outlook.com (2603:10b6:903:102:cafe::99) by CY4PR16CA0020.outlook.office365.com (2603:10b6:903:102::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21 via Frontend Transport; Thu, 12 Nov 2020 17:13:01 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; linaro.org; dkim=none (message not signed) header.d=none;linaro.org; dmarc=bestguesspass 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 CY1NAM02FT039.mail.protection.outlook.com (10.152.75.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3564.22 via Frontend Transport; Thu, 12 Nov 2020 17:13:01 +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.1913.5; Thu, 12 Nov 2020 09:12:54 -0800 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.1913.5 via Frontend Transport; Thu, 12 Nov 2020 09:12:54 -0800 Received: from [10.140.6.6] (port=44844 helo=xhdappanad40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from <srinivas.neeli@xilinx.com>) id 1kdG9V-0005SG-4t; Thu, 12 Nov 2020 09:12:53 -0800 From: Srinivas Neeli <srinivas.neeli@xilinx.com> To: <linus.walleij@linaro.org>, <bgolaszewski@baylibre.com>, <michal.simek@xilinx.com>, <shubhrajyoti.datta@xilinx.com>, <sgoud@xilinx.com>, <hancock@sedsystems.ca> Subject: [LINUX PATCH V3 6/9] gpio: gpio-xilinx: Add remove function Date: Thu, 12 Nov 2020 22:42:25 +0530 Message-ID: <1605201148-4508-7-git-send-email-srinivas.neeli@xilinx.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1605201148-4508-1-git-send-email-srinivas.neeli@xilinx.com> References: <1605201148-4508-1-git-send-email-srinivas.neeli@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3e5ddae3-d875-4343-35ca-08d8872e3606 X-MS-TrafficTypeDiagnostic: BY5PR02MB6738: X-Microsoft-Antispam-PRVS: <BY5PR02MB6738FB4AD4970AE21A78911EAFE70@BY5PR02MB6738.namprd02.prod.outlook.com> X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:4714; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kFMUrnWTdV/HfpiFNxKcbgTk2H9E5Ix4tYJ9uS3EOXf2gqEmPKNHCqKLQKtMW3SMLXrD19igK9S8/9vwh4UM667QBLfUUp5Rd0NwJ/2hahdsg5PC4iYvAqD/jQjwZRIcNWHWMDrUjmJKyTxwiZ27ZTTBfYmzctvoKbkwg+4M1haWEfFXxouO+xluU4so7jBqyaW7L/TQhlMzeLRQEcuIoevvINU8bl+zBe1RZQh5QqrJx0VirkA47XjSB1p1e6Oi4bLCBBg57ahAjTpNXAWFAkwRCvk476CiRRc8g4Y48i66lWWCp8YpMAdOQGMdJ0KP8FPf0/priH5qR22YlSrBBp/YQKeRSuTP2NgYSi+exnnFKRvYbuXN9DVrvn2cFFQwVQdHs/jOJu/4KNAButfPATiiai/lgm/Pfbvevz6Bl9Q= 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:(4636009)(396003)(376002)(39860400002)(346002)(136003)(46966005)(6666004)(82740400003)(5660300002)(8676002)(2906002)(44832011)(107886003)(36756003)(186003)(110136005)(26005)(70586007)(9786002)(316002)(70206006)(4326008)(336012)(426003)(7636003)(82310400003)(7696005)(54906003)(47076004)(478600001)(2616005)(356005)(8936002)(36906005)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Nov 2020 17:13:01.6917 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3e5ddae3-d875-4343-35ca-08d8872e3606 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: CY1NAM02FT039.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR02MB6738 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201112_121304_326601_58FD3BE7 X-CRM114-Status: GOOD ( 13.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-gpio@vger.kernel.org, Srinivas Neeli <srinivas.neeli@xilinx.com>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, git@xilinx.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
gpio-xilinx: Update on xilinx gpio driver
|
expand
|
On Thu, Nov 12, 2020 at 6:13 PM Srinivas Neeli <srinivas.neeli@xilinx.com> wrote: > Added remove function support. > > Signed-off-by: Srinivas Neeli <srinivas.neeli@xilinx.com> > --- > Changes in V3: > -Created new patch for remove function. Patch applied despite not applying 4 or 5: this needs to go in with the clock support. Yours, Linus Walleij
diff --git a/drivers/gpio/gpio-xilinx.c b/drivers/gpio/gpio-xilinx.c index 855550a06ded..9abef56eca32 100644 --- a/drivers/gpio/gpio-xilinx.c +++ b/drivers/gpio/gpio-xilinx.c @@ -453,6 +453,24 @@ static void xgpio_irqhandler(struct irq_desc *desc) } /** + * xgpio_remove - Remove method for the GPIO device. + * @pdev: pointer to the platform device + * + * This function remove gpiochips and frees all the allocated resources. + * + * Return: 0 always + */ +static int xgpio_remove(struct platform_device *pdev) +{ + struct xgpio_instance *gpio = platform_get_drvdata(pdev); + + clk_disable_unprepare(gpio->clk); + pm_runtime_disable(&pdev->dev); + + return 0; +} + +/** * xgpio_of_probe - Probe method for the GPIO device. * @pdev: pointer to the platform device * @@ -601,6 +619,7 @@ MODULE_DEVICE_TABLE(of, xgpio_of_match); static struct platform_driver xgpio_plat_driver = { .probe = xgpio_probe, + .remove = xgpio_remove, .driver = { .name = "gpio-xilinx", .of_match_table = xgpio_of_match,
Added remove function support. Signed-off-by: Srinivas Neeli <srinivas.neeli@xilinx.com> --- Changes in V3: -Created new patch for remove function. --- drivers/gpio/gpio-xilinx.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)