From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,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 0989AC433E0 for ; Fri, 29 Jan 2021 14:29:13 +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 B5ED364DF1 for ; Fri, 29 Jan 2021 14:29:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B5ED364DF1 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: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:In-Reply-To:References:List-Owner; bh=1NAhSfeL/1dgQaL4aHiL4OrWksVGmzrnpgDe5J3qnlo=; b=K3b8ytUocqiKPo+g6bsUrlOMiP sfieOru0VqT38j5ibn6gt2LtCe2low3hbp0ihBF4InXDbRR02/axClok9KgXKp5Fe0XYMNvxj5JYR wbcH4sc2gRw+XldgKbweBFlZOsDbmDUH0XNNH5kYob15ipMfxdZt9T0MiSYh7VsKtUA+EVAUUt/hx h0MB4QDeGKxDQJFRQXJDuYYAEroUaOsE6ExBKDR9neYKAi8BoVv5ohO//tqvCZ9xWV/saDfNoH9tc 7Bx3+KbIOEyKtidHvhy/2LvvOpeHncfJHRQx836UBXbI97eRIFCdGrWWQ/+lx5gGzfkpzVzsV82Do /UeRvOdg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l5Ukj-0006xw-Cv; Fri, 29 Jan 2021 14:28:01 +0000 Received: from mail-eopbgr680068.outbound.protection.outlook.com ([40.107.68.68] helo=NAM04-BN3-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l5Ukg-0006xA-FZ for linux-arm-kernel@lists.infradead.org; Fri, 29 Jan 2021 14:27:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g5Y2gMR3OMJWbJhXWj6MlQwfLxpqZs7zKgIB1lAoSzb3Js1YaQd6q3qb/GPId934wdY3wlGQi6pb/nMiJCapfv4WUMa49mb73SzCyR9sQAhr55UZajelKDUsS9Ogveb63wUhO+bC+TtinxACQ3SM8iF9JEdREtRiJcPPsF9yvR2ygTlf9KoIiE7eF/bCddT20Crp4klVwNkm99TP9eF7PH7pxl1O7ujhQwrgk2rD3vYN0XxUDoGH2hsJwHAqv7z4ZbT05Z9Wbix6Fz2dwmD7Ymv9apWoFa1kYx2Ao8lrVsYI74R/RIGPO1UpzY7BFNvTwZS0+2wBNBcZ19ukIZyh9g== 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=cGfWzqfo3XJaujYLCsXn0Q5bF3Z629Ctjwg9jLPBw2U=; b=ad3u1B89mC+0zc092cDveggWsYMAB3ZCP0gXm8Ub2fnFBqpoFaY3nLw7r8NM1Ea+uAktiwf062HKLiG7/uY3f9ucGgsRO5fRkAVKSv7qEDqmSPDEsIQ/Byh0d0ckTGcasZG+X0axEJN5sXhH/2ghX1JUQ+cQThRLDpOOeuxmry3ZmxLUYqwC3RmiI4x59mZjKfyYFaLI6O1RFnhzG85I0yAec4SsqnuAsxCbFfFt870B4bJuwho8tsWXL6GrdYV/LI8orHzvhFtH/Lt2wOFG+H8zx5g9mECoywTtfizx3d5vYXV9O6BgkdgZkQPL4AkQ+NvLXYiFwkkDz4eOfAoNWg== 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=cGfWzqfo3XJaujYLCsXn0Q5bF3Z629Ctjwg9jLPBw2U=; b=O05N+vTZG/HxmBCg8om9RAo0hiiD+hs8HwNHr6NAxnaZkyU3FL3dE/bkvr9mFa5I97vIikY+OCViXRpIjhrt7gqN8xSzwK6wDOqLHwCxGN229Bqxe0OKQQ642UBkCitldZVVUmu9ZpTNPae1vLax4cus5QcmQWXQgAXd1AQ0SjA= Received: from DM3PR08CA0013.namprd08.prod.outlook.com (2603:10b6:0:52::23) by DM6PR02MB5292.namprd02.prod.outlook.com (2603:10b6:5:4b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.17; Fri, 29 Jan 2021 14:27:54 +0000 Received: from CY1NAM02FT018.eop-nam02.prod.protection.outlook.com (2603:10b6:0:52:cafe::22) by DM3PR08CA0013.outlook.office365.com (2603:10b6:0:52::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.17 via Frontend Transport; Fri, 29 Jan 2021 14:27:54 +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-pvapexch01.xlnx.xilinx.com; Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by CY1NAM02FT018.mail.protection.outlook.com (10.152.75.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3784.12 via Frontend Transport; Fri, 29 Jan 2021 14:27:53 +0000 Received: from xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Fri, 29 Jan 2021 06:26:58 -0800 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server id 15.1.1913.5 via Frontend Transport; Fri, 29 Jan 2021 06:26:58 -0800 Received: from [10.140.6.6] (port=56658 helo=xhdappanad40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1l5Ujh-00005L-13; Fri, 29 Jan 2021 06:26:57 -0800 From: Srinivas Neeli To: , , , , , , Subject: [PATCH V5 0/5] gpio-xilinx: Update on xilinx gpio driver Date: Fri, 29 Jan 2021 19:56:45 +0530 Message-ID: <1611930410-25747-1-git-send-email-srinivas.neeli@xilinx.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0c7d01f6-93b6-445d-24d1-08d8c46210ab X-MS-TrafficTypeDiagnostic: DM6PR02MB5292: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CaQ3h2f6r9gDGKL8luIvyehQpLH6/ML/uK/fjNHN0sLrPhnZQtNB930uVBqpA0z8kGoDHodEQJ7Kw8XW/i4ewVnudYjDIhaxmV9mt7whRHO8TP/OTMqZWtjalh+ugig/NhBXxcyRieOoUo6YDjPgXbSwepWRCuKYnwQz3uJ5cO2KXalJ9J4LjwdKPYaHFf3yzdrQPh1Poqbzl6pQSmZ+xTZjNzAsBBspfRBEyRvDmdiJCd3mf5WjLlkcNdy5lh53gLGmj6Qd7c224+1qZdE0AXc0uJ+OCsAaGgWRoufHWnhYXtI4qLCeA5cijqM8W7tqGroRuYAekHcggz+EELzOR+gb7joe3v816jGOK4eEvV/M0qcu+oIGDaWOxVL6QC7v59F7Vy5ECrBu+1tL4BiDb3TLSy6ZVGy/rTsniw0XSLnfYdfm+e4Q0aH0GDsXyHIO19NFDRTOSCC9xe4Pa+W2mVHe+Tmfk6+ArZpAQMcnASBsPVaytsG25Eb9psePwiUdf7wiDQCU0HFK7Yl+GhTaGrvdReZB2iw2KOxKo2UPUGRCpDQ2BnJy4Db/sZF9/tnNU9wewm1jBhachIk2FtQi1vaAqxfndTB/8ii20VuWM6FDs74Dn8XlADXjvF7lCIcL X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch01.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(39860400002)(376002)(346002)(136003)(396003)(46966006)(47076005)(70206006)(15650500001)(356005)(26005)(7636003)(8676002)(36906005)(70586007)(2616005)(5660300002)(82740400003)(426003)(44832011)(336012)(316002)(186003)(36756003)(7696005)(110136005)(83380400001)(107886003)(82310400003)(2906002)(9786002)(478600001)(4326008)(6666004)(54906003)(8936002)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2021 14:27:53.7776 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0c7d01f6-93b6-445d-24d1-08d8c46210ab 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-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: CY1NAM02FT018.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR02MB5292 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210129_092758_538427_1F07C000 X-CRM114-Status: UNSURE ( 9.08 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-gpio@vger.kernel.org, Srinivas Neeli , 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" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch series does the following: -Simplify with dev_err_probe(). -Reduce spinlock array to array. -Add interrupt support -Add support for suspend and resume -Add check for gpio-width --- Changes in V5: -Removed IRQ_DOMAIN_HIERARCHY from Kconfig and of_gpio.h from includes. -Added check for #gpio-cells. Changes in V4: -Created new patch to simplify code with dev_err_probe(). -Updated minor review comments. -Created new patch to check gpio-width. Changes in V3: -Created separate patch to arrange headers in sorting order. -Updated dt-bindings. -Created separate patch for Clock changes and runtime resume. and suspend. -Created separate patch for spinlock changes. -Created separate patch for remove support. -Fixed coverity errors. -Updated minor review comments. Changes in V2: -Added check for return value of platform_get_irq() API. -Updated code to support rising edge and falling edge. -Added xgpio_xlate() API to support switch. -Added MAINTAINERS fragment. Tested Below scenarios: -Tested Loop Back.(channel 1.0 connected to channel 2.0) -Tested External switch(Used DIP switch) -Tested Cascade scenario(Here gpio controller acting as an interrupt controller). --- Srinivas Neeli (5): gpio: gpio-xilinx: Simplify with dev_err_probe() gpio: gpio-xilinx: Reduce spinlock array to array gpio: gpio-xilinx: Add interrupt support gpio: gpio-xilinx: Add support for suspend and resume gpio: gpio-xilinx: Add check if width exceeds 32 drivers/gpio/Kconfig | 2 + drivers/gpio/gpio-xilinx.c | 369 ++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 349 insertions(+), 22 deletions(-) -- 2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel