Message ID | 1528465490-19684-4-git-send-email-yibin.gong@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AEEB7601D4 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 8 Jun 2018 05:47:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CDE1280FC for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 8 Jun 2018 05:47:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 91A44287F8; Fri, 8 Jun 2018 05:47:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DATE_IN_FUTURE_06_12, DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 22200280FC for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 8 Jun 2018 05:47:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.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=m4ObwyRsy15wYPQvHdpIZ6CRmkNIhUHKEbI4/p2sgsw=; b=N7VC4+pGA+Ew77 U9jSGuXPrKDUw6eGIdGpRsrOtRnaO5F/Rmr0t8tIJ7Nb/nnEcwhBzA2NoNQ0QelaSqEw7NqIacv0M oEXL2htDsU65YsE2zqX/d08059BzEGPYOwbHzhaj1iQAynapLeJ6iQnpQBppLjwNOPs0Pt/kcF/lT RgoDPmwg3DBNd9OioVw6FGRGdOXIDzVcv6uDFRoEk2Rpy1eqAcPMHxnogLcNIUmNpmt2ZotIW3uWj ssN93riDZU94A4o/1/VeVsR1VyaML5LC4tqwTFMMpJGlksMFtHCcJUDbylYEk7xohs0IYzbRni2Ce nGpEYpqOSGwa32YIhz3Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fRAEr-0005AT-KS; Fri, 08 Jun 2018 05:47:05 +0000 Received: from mail-db5eur01on0622.outbound.protection.outlook.com ([2a01:111:f400:fe02::622] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fRADr-0004Ao-SP for linux-arm-kernel@lists.infradead.org; Fri, 08 Jun 2018 05:46:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=k6U2EdMmlFFL16dY3XAuIHlhG/PmYNzM7kHHI4QFYAo=; b=MlAiGcN3KM61Yc6fTDrjzEd4fV6M2R9ALZOb0yMO0XjYZPAr3CHhwCF7V51wqpPuL1PKXfDhMhb9kbDgO/44zM++jW/gV61wzTFKULZBbCnH0JKKBEirvZXLeLkJpgYqS9GC86LG+gA9gDGP0lEGo9hIVGuAHHbrInfupMVBVf4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yibin.gong@nxp.com; Received: from robin-OptiPlex-790.ap.freescale.net (119.31.174.66) by VI1PR04MB3232.eurprd04.prod.outlook.com (2603:10a6:802:6::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.14; Fri, 8 Jun 2018 05:45:49 +0000 From: Robin Gong <yibin.gong@nxp.com> To: vkoul@kernel.org, s.hauer@pengutronix.de, dan.j.williams@intel.com Subject: [PATCH v2 3/5] dmaengine: imx-sdma: remove usless lock Date: Fri, 8 Jun 2018 21:44:48 +0800 Message-Id: <1528465490-19684-4-git-send-email-yibin.gong@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528465490-19684-1-git-send-email-yibin.gong@nxp.com> References: <1528465490-19684-1-git-send-email-yibin.gong@nxp.com> MIME-Version: 1.0 X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR0401CA0014.apcprd04.prod.outlook.com (2603:1096:202:2::24) To VI1PR04MB3232.eurprd04.prod.outlook.com (2603:10a6:802:6::29) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB3232; X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB3232; 3:BRR3/BE2qYJcBNK4/z0vRUya2SW20W4YoLpWr5MOOYE8pJFIdPUmAPk4UqHLXGrFQvAvDFW3nmckEFrU0Y6l+36ACgEL+GCB+kgxUwxMuRCcgcZl67WhM96CEUpBiY39ly2GURNG7kvR/QrJc7ZDmkLzD+FCryCIwfqO8nxbJeAqLzyrgKZSthzRQstr9g/h0eHjHuf4vVKSaXKG8JirfjW1Gm+COnvmEE7KiMjsG7H73QtKs6M8w74zMZ7LjRlK; 25:Ze6cXKgmjOsNdBQHQEfyTIKuLPsZa9ti5OOlXTj2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3yhixEC9ZXcSWLY+u+y66nrKBcVyktbswSRHB1ozIX7vZFSnslG9e; 4:iD7XInR07N2qDydz3vJ9mADjR7CemAGuSavlvvHoemq4HqdkSllXVhzwCg3MCehsNmcwkzSFpUQ98PkS7F4HZgpUcaj52KCsUQudeStaA8GoTDDkMkDsZIp1aNRYRRz2KaJE6A3Xjloux8OXarQtSUYU26VgWQwripPhrVK7BP5J6mIOQPtGomJ2bs8WQoT4CmIL4Ef3robWECvGNQ7uC1+J3Bf7F7UqGI2uJqIFTaN0MiF4nMR+HXm5VndgyyZr62lQnEcNzAb6lzBXev9rGdNlY7OwmV5wiMisEpbtMVpEDVaEcePryqN6PHPHMNNj X-Microsoft-Antispam-PRVS: <VI1PR04MB3232A1207272F0B6C7872F9D897B0@VI1PR04MB3232.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(3231254)(944501410)(52105095)(10201501046)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:VI1PR04MB3232; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB3232; X-Forefront-PRVS: 06973FFAD3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(366004)(376002)(39380400002)(39860400002)(346002)(199004)(189003)(11346002)(6512007)(386003)(186003)(66066001)(48376002)(2906002)(3846002)(6116002)(68736007)(16586007)(52116002)(36756003)(97736004)(53936002)(76176011)(86362001)(25786009)(51416003)(26005)(59450400001)(316002)(4326008)(81156014)(2616005)(956004)(446003)(476003)(50226002)(486006)(81166006)(6506007)(106356001)(7736002)(8936002)(8676002)(5660300001)(478600001)(16526019)(6486002)(47776003)(105586002)(50466002)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB3232; H:robin-OptiPlex-790.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR04MB3232; 23:iwcEx9us/UM4pwdzYyrVWuxCYcSyvutY3zir52Eo8?= =?us-ascii?Q?n2yki1oEq1MyGLKPva/NY33/uZl1q1ABKulFfnyPuBdobYgChyvOpd7BSKos?= =?us-ascii?Q?wbU5D8Y/XJp8ViZuQfMW5nJj+w8Bnzw8sJhR+dS0HFXm+mbqncKBhpjLFtOm?= =?us-ascii?Q?ucDVsR4rFJOS/wcYwgY6hVkcuIO7638pvqjMLt0DvF89yJZlp30K41JsIOqS?= =?us-ascii?Q?VP6mFdLzxbjHUyXNSD7D56SYhvTqLwYu7/ZIWB6i/DyVO+JYlI/1EMBp4rdC?= =?us-ascii?Q?K3mXSXRV8UpNZG2bnP1MdPsJ1ya/G2X5YuNs/feMCigftZRYiK0UiSh24Rco?= =?us-ascii?Q?0qEOeFjoRuKRN9JiL73jPBuq/X9glWv4dVpOApOR2+Krn4OQrlCjGCISGKuL?= =?us-ascii?Q?Uv4OfJBn/Cwnmq3PzTkg8HtBc7xXrF7qakyyymu0JoKYsBnfh5b/rUeK2pAU?= =?us-ascii?Q?lRNNIL0+tJD7Th9cSVsbs0RgO3OUj1Q/H/z/ABTdH1sPZTc+OtRmzXKEvomB?= =?us-ascii?Q?a3lrypqkyuMA/kb5tQbg1QCENfvEq7HsHfoaNbUYVAsPXGQLFbLnGNXDHL2X?= =?us-ascii?Q?1Hb+XkROg6Mj12zradxHtVr6LEHZZerfByRuTnGn6tn3FQ5IG/KCBy4/buwn?= =?us-ascii?Q?WOIsg2ASJw0J1mSsNrw9yE5tnWYjH6ldaz8v+eWMTUd1wRYXgKIuOD1TNTuH?= =?us-ascii?Q?40ODILLj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y+uDqRlcrLxWmGSei/ZpPJrkVR3QqXMJcsq3Oe3j9UGmR7rMXjf7AsXHYjDu7wb4pkF1lWShW7PPrfKAg11j/qLFovsLym+7tserxVnzX0MYw+92WoujWp2cSxfS7K00jcFaTwo+Wst5fzoVupcYqaqFlQQApv4EgoZfhdNgq2FFBdO5b9xcGyTCj02TZmn6lzxhjHN29M0GTC+jaOyM4VCb7R4smIy7Qg==; 5:DlhkRTO025SbUcRIA3mkPUqQLn7DNSU/VMS23hWV7uNeXMQa/pGXFWmfG29t39mF2KxCezA61QxbDEi8nEUEkZtc56meL8p55WWxjorM6VaIzd8LFOitU4b6Ew392KJiK6TcQO1TZKWz0TubVH92n9O/6SH6q6N5bMMrXpJ1YlE=; 24:/SSIWZAyBAlOHCaDilpXKMY0Jolf5OwWPUwgq3sPkcr6tcMsE4cCVPuDt3CEA5TnFifHUpVnwhrgQRaN2ypJxqVhjVxjz/RUniYSsQ2z2RQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB3232; 7:S7PPI8Rz20DpBDIX/Uzkk2zfIYfMBHTBLSx/l3MH/IA1OGWEf22l+dQq7TW4FTn55inW6ihyD5Cby+aTUBJbPcJ5qT0jX7bCdesSm5vXbfPoJpZ7qPqZqprwx+Hrj9X2mpDTP4+GIsiPOKvskcS8PGMCMJdFQ0t7HTJlXBCSxkHnToSuVSSZ91E0ddiq27ilzgBWgl183NJ8YstoJG9DuX//DdapGs0pP7oHN0y6Q4aIZBT8wAAOraauwA8oEprP X-MS-Office365-Filtering-Correlation-Id: 2afcbf2d-fe12-4893-99a4-08d5cd0318a0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2018 05:45:49.8473 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2afcbf2d-fe12-4893-99a4-08d5cd0318a0 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB3232 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180607_224603_969099_DC583C3D X-CRM114-Status: GOOD ( 10.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 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: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index d93b58f..6faec89 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -349,7 +349,6 @@ struct sdma_channel { unsigned long event_mask[2]; unsigned long watermark_level; u32 shp_addr, per_addr; - spinlock_t lock; enum dma_status status; unsigned int chn_count; unsigned int chn_real_count; @@ -1908,7 +1907,6 @@ static int sdma_probe(struct platform_device *pdev) struct sdma_channel *sdmac = &sdma->channel[i]; sdmac->sdma = sdma; - spin_lock_init(&sdmac->lock); sdmac->channel = i; sdmac->vc.desc_free = sdma_desc_free;
No need anymore for 'lock' now since virtual dma will provide the common lock instead. Signed-off-by: Robin Gong <yibin.gong@nxp.com> --- drivers/dma/imx-sdma.c | 2 -- 1 file changed, 2 deletions(-)