Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp830986lqc; Fri, 8 Mar 2024 13:01:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX4EFBzrPXh45K4E+ssjShkxg4+QbTxLn03/pa0UnPYM4DFcSAHiRBLKk10UtCfr/p6olB9uhosKKvM2eE+iMX3994yhHxsrh4s/5RriA== X-Google-Smtp-Source: AGHT+IGLuH044Ui9uDRTVBXBKkzJnaS5PIwSHTNiJq8eRn/CnJTUo4OgpQVMZTeULORToIjmng1E X-Received: by 2002:a17:90a:f013:b0:299:cafa:5e8b with SMTP id bt19-20020a17090af01300b00299cafa5e8bmr1568084pjb.6.1709931686435; Fri, 08 Mar 2024 13:01:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709931686; cv=pass; d=google.com; s=arc-20160816; b=wcTurDklzcaq+eWdHukVUOd/QT+zjF53zj5yuMIaZv+CKEdXuiacWkIw4MXhpVmJU9 82YC4MU2Alyr7dZWG61rxapOOKmm5vc5SR+ydCxZNp/xXmwpV/xDj0Tj7JB9p7JDftws Al4NKcC0yYylen5TUgf7Aue4oNm2BfDTmIuNuOQVv8hZVlwaVVeq4ugV9oWWlN6UfP3T mlDPnUzlfclSYrQQaAX8REj3tLS4Kws9nBFgo6qiZ0IR4CMzh8ytpJ/EyLl8C/hbn8s3 rBXIKxj+mw404/pD3RTgnlsGoI6JZ/35ADkzi1TAtmhprGttweHn3qV9ko3WhgP0FC+1 ojGw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=+ucTS9a0V+bG0ban2Mlf24ZePa15zebSakjUo97bJDM=; fh=G9nh8K0oEG7DmsNBVUQGUVpXUbg67CleAK9fSTiph6g=; b=xq1Uxyi6O+YCFBhkzVejk3KLNTDA/hYWyVJSfMcRIsoO7v4yPxBoLDKI9xcfdY3rJT 2fdZHFuBWkCyh0sND7oTnHH3Ekkpqy9zTNEefWcr1JOT5FSnE8ywTpwMIK550OKBmaxa Vkd2sFBMGhjlfwb5FOuDF1vMFsLK7b/Qt4lc28oIUwXjqBauJF9+0NyvIg80smNB5xUt y36A8w8cExUOomIkdmqkjZN89AcfcKybOiTD3JLDdZieHNza9VB/bOFOCk2RqIGNYgF5 VBtiJYMrj7ATNe0U3Zd+owfA5MLwWYQtwsjXTSraht4oExCnAeDiONgn+JoaGUnNS0Gs jPCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=fHPAY1k5; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-97583-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97583-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b3-20020a17090ae38300b0029baecef0e0si2169283pjz.27.2024.03.08.13.01.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 13:01:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97583-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=fHPAY1k5; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-97583-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97583-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 2A6E9B217E6 for ; Fri, 8 Mar 2024 21:01:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E7145FDD1; Fri, 8 Mar 2024 21:00:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="fHPAY1k5" Received: from out-175.mta1.migadu.com (out-175.mta1.migadu.com [95.215.58.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E5C595E09D for ; Fri, 8 Mar 2024 21:00:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709931646; cv=none; b=CYwrmJimI6xHQ337lT/+RGlmplUxbeAhIzr/4aBH7jj8nRnt6XrM0V0lpjGLOTgEdOuBK/ZZI3PiY0ZptDyCnMfuy9HUEsrYV4G50Tan2tIsBsIsXl3aakLr6q/WVixlt4K0Hr5p3d2Cii4WsLy9b/V+TW20CGSrLkPISD2pqKY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709931646; c=relaxed/simple; bh=h3ZwvO18NqzlYxQLvrQ+ixy5YP9uezWH5/IU5Z2QUJk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ISWsniMG87rcEGGE3CQAyXOtRb7YtTcc7Xn3vc1WxwpTP70BM37s05ALp4MRtgPO3Ib3hsneihJC4KIk1v/DUfqY6v+YV4JPEKrXsdrpxXkcXaUXkrf3kUS/mv+9sPpNPBs2jCaGhv0/kccsCBTL0JKA0S7pJ34HDUbuTJBz3uY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=fHPAY1k5; arc=none smtp.client-ip=95.215.58.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1709931643; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+ucTS9a0V+bG0ban2Mlf24ZePa15zebSakjUo97bJDM=; b=fHPAY1k5DxR4UlbR9W2J4KQi1tb2ggwkCtCcDAhfYJ/njlbkCp5JfxueFctt5mztZc0oO9 1xgmywoHsxosTSN84IozbPv3HCnrdlzHmLUlHYvX+KiGzJOnExfFqYPGzoNjhriiSKKMAl YOAKPo0b8IgCpkchLLdk2rR7XVFvrL8= From: Sean Anderson To: Laurent Pinchart , Vinod Koul , dmaengine@vger.kernel.org Cc: Michal Simek , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sean Anderson Subject: [PATCH 2/3] dma: xilinx_dpdma: Remove unnecessary use of irqsave/restore Date: Fri, 8 Mar 2024 16:00:33 -0500 Message-Id: <20240308210034.3634938-3-sean.anderson@linux.dev> In-Reply-To: <20240308210034.3634938-1-sean.anderson@linux.dev> References: <20240308210034.3634938-1-sean.anderson@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT xilinx_dpdma_chan_done_irq and xilinx_dpdma_chan_vsync_irq are always called with IRQs disabled from xilinx_dpdma_irq_handler. Therefore we don't need to save/restore the IRQ flags. Signed-off-by: Sean Anderson --- drivers/dma/xilinx/xilinx_dpdma.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/dma/xilinx/xilinx_dpdma.c b/drivers/dma/xilinx/xilinx_dpdma.c index eb0637d90342..36bd4825d389 100644 --- a/drivers/dma/xilinx/xilinx_dpdma.c +++ b/drivers/dma/xilinx/xilinx_dpdma.c @@ -1043,9 +1043,8 @@ static int xilinx_dpdma_chan_stop(struct xilinx_dpdma_chan *chan) static void xilinx_dpdma_chan_done_irq(struct xilinx_dpdma_chan *chan) { struct xilinx_dpdma_tx_desc *active; - unsigned long flags; - spin_lock_irqsave(&chan->lock, flags); + spin_lock(&chan->lock); xilinx_dpdma_debugfs_desc_done_irq(chan); @@ -1057,7 +1056,7 @@ static void xilinx_dpdma_chan_done_irq(struct xilinx_dpdma_chan *chan) "chan%u: DONE IRQ with no active descriptor!\n", chan->id); - spin_unlock_irqrestore(&chan->lock, flags); + spin_unlock(&chan->lock); } /** @@ -1072,10 +1071,9 @@ static void xilinx_dpdma_chan_vsync_irq(struct xilinx_dpdma_chan *chan) { struct xilinx_dpdma_tx_desc *pending; struct xilinx_dpdma_sw_desc *sw_desc; - unsigned long flags; u32 desc_id; - spin_lock_irqsave(&chan->lock, flags); + spin_lock(&chan->lock); pending = chan->desc.pending; if (!chan->running || !pending) @@ -1108,7 +1106,7 @@ static void xilinx_dpdma_chan_vsync_irq(struct xilinx_dpdma_chan *chan) spin_unlock(&chan->vchan.lock); out: - spin_unlock_irqrestore(&chan->lock, flags); + spin_unlock(&chan->lock); } /** -- 2.35.1.1320.gc452695387.dirty