From patchwork Wed Jul 22 22:42:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 6847661 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 723819F1D4 for ; Wed, 22 Jul 2015 22:45:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9A3042066E for ; Wed, 22 Jul 2015 22:45:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B1D5620667 for ; Wed, 22 Jul 2015 22:45:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752665AbbGVWpA (ORCPT ); Wed, 22 Jul 2015 18:45:00 -0400 Received: from resqmta-po-07v.sys.comcast.net ([96.114.154.166]:45659 "EHLO resqmta-po-07v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752704AbbGVWo7 (ORCPT ); Wed, 22 Jul 2015 18:44:59 -0400 Received: from resomta-po-02v.sys.comcast.net ([96.114.154.226]) by resqmta-po-07v.sys.comcast.net with comcast id vakz1q0014tLnxL01akzPD; Wed, 22 Jul 2015 22:44:59 +0000 Received: from mail.gonehiking.org ([73.181.52.62]) by resomta-po-02v.sys.comcast.net with comcast id vakx1q0091LXgTt01akxsy; Wed, 22 Jul 2015 22:44:58 +0000 Received: from lorien.internal (lorien-wl.internal [192.168.1.40]) by mail.gonehiking.org (Postfix) with ESMTP id 924EA120445; Wed, 22 Jul 2015 16:42:47 -0600 (MDT) From: Shuah Khan To: mchehab@osg.samsung.com, hans.verkuil@cisco.com, laurent.pinchart@ideasonboard.com, tiwai@suse.de, sakari.ailus@linux.intel.com, perex@perex.cz, crope@iki.fi, arnd@arndb.de, stefanr@s5r6.in-berlin.de, ruchandani.tina@gmail.com, chehabrafael@gmail.com, dan.carpenter@oracle.com, prabhakar.csengg@gmail.com, chris.j.arges@canonical.com, agoode@google.com, pierre-louis.bossart@linux.intel.com, gtmkramer@xs4all.nl, clemens@ladisch.de, daniel@zonque.org, vladcatoi@gmail.com, misterpib@gmail.com, damien@zamaudio.com, pmatilai@laiskiainen.org, takamichiho@gmail.com, normalperson@yhbt.net, bugzilla.frnkcg@spamgourmet.com, joe@oampo.co.uk, calcprogrammer1@gmail.com, jussi@sonarnerd.net, kyungmin.park@samsung.com, s.nawrocki@samsung.com, kgene@kernel.org, hyun.kwon@xilinx.com, michal.simek@xilinx.com, soren.brinkmann@xilinx.com, pawel@osciak.com, m.szyprowski@samsung.com, gregkh@linuxfoundation.org, skd08@gmail.com, nsekhar@ti.com, boris.brezillon@free-electrons.com, Julia.Lawall@lip6.fr, elfring@users.sourceforge.net, p.zabel@pengutronix.de, ricardo.ribalda@gmail.com Cc: Shuah Khan , linux-media@vger.kernel.org, alsa-devel@alsa-project.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org Subject: [PATCH v2 10/19] media: platform xilinx: Update graph_mutex to graph_lock spinlock Date: Wed, 22 Jul 2015 16:42:11 -0600 Message-Id: <845e6c9ee33c7d81a4e2ab428f4b03f8328a4d86.1437599281.git.shuahkh@osg.samsung.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1437605099; bh=HUKzfF1iZJvOsydm5dur5K9UaA8wKHh98/CdUmHp9Gg=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=dzyj+XQKN+B2xQ4cL8JpMOt+a17i4zEiYI7HKr4UedhybeEYIfj2yyMUAF992SQ5M AvKZZLbFYcjhuSTjfDrjxZMwXbRf4/T0hNRkOWOxX/F1ItlSA4Crwj0A8sTe7vsLVe Wqqposomi/Zeeldvg7YYO33VRSnLhzoEGmqezOMO9Jss9Qx4T+sXEzCLqbrw0hecm0 ug0QRUoIp896jpx4zrdsnklGxEt47LfI5lhiNnRTYjJZX0wnO2Q9yJONi8Gfukzzqe bMc+9urVauJOUIDONUdQPGmt1NSbB+bXej4onDvV1lDLLVeXG8+MPy68DIlIkK+D2x 8yU0pLlJxHvRw== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Update graph_mutex to graph_lock spinlock to be in sync with the Media Conttroller change for the same. Signed-off-by: Shuah Khan --- drivers/media/platform/xilinx/xilinx-dma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/xilinx/xilinx-dma.c b/drivers/media/platform/xilinx/xilinx-dma.c index 98e50e4..784f7a4 100644 --- a/drivers/media/platform/xilinx/xilinx-dma.c +++ b/drivers/media/platform/xilinx/xilinx-dma.c @@ -185,7 +185,7 @@ static int xvip_pipeline_validate(struct xvip_pipeline *pipe, unsigned int num_inputs = 0; unsigned int num_outputs = 0; - mutex_lock(&mdev->graph_mutex); + spin_lock(&mdev->graph_lock); /* Walk the graph to locate the video nodes. */ media_entity_graph_walk_start(&graph, entity); @@ -206,7 +206,7 @@ static int xvip_pipeline_validate(struct xvip_pipeline *pipe, } } - mutex_unlock(&mdev->graph_mutex); + spin_unlock(&mdev->graph_lock); /* We need exactly one output and zero or one input. */ if (num_outputs != 1 || num_inputs > 1)