Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp493416rdb; Mon, 29 Jan 2024 08:26:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFVpu8JxhLLA9x83kcICO75i9MAw1HWBTazJ1ljXkDa3qui5sw9RAofbdpaWKMvJDH7kXLW X-Received: by 2002:a25:5841:0:b0:dc2:3dad:bff8 with SMTP id m62-20020a255841000000b00dc23dadbff8mr2901928ybb.97.1706545593034; Mon, 29 Jan 2024 08:26:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706545593; cv=pass; d=google.com; s=arc-20160816; b=ciVNdgWgm4SHMp6TQh/ryB9fhODuPopRabL+Kv5XiA0+GSzVMddNBNrmekCS1ecug1 YJnZ8hft4icIMKnOnvIk4cJldzLYJtZpCXguJf15i3Zj9SruxWMl3kXBEjapP94RVxit HJ4Pgk2eMwwY1lnuzU9xuPn7CYihwK2NQ5ypQN1OA2qoz3yzC/9jLWYiu68xsmiwfo0y 4sUfRgudaWNe/yK3wfkcditTn5qsAJChomrVKZ/9ThKKc7POfPkaF1R5nCFAFeqhs4Tc +0XD6L9XQ7JrjEdRfXheurptY7jHjPty7web29bmeCgnFl27Pr15zPC2zrBXB12GEsMU 7UFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=FAldIdFOcM6TSQgoc+utZ58ITzn88qsDQysRSDWf7aE=; fh=oC1+pIJR2tZdBb9Uzp3yLjqrVYle+8srf2TBxoXLW2Q=; b=AuGWTO2o4aupOuqCcwbNeI64MfQDJsfZn078ZjfeKSLu6RLvNwSMskJ2WZF+EPthDV eh8Vqik9peIzQOd99lYddkr16BfbytFryFwvXEjnnBDgw5917J8lGAAbJLzg6sesCXdE ZRatns1b62wVKTvGgjTHtzF3hq9AmYbzE5EaqG9QiqE70OUMTLFsvfTMtzoHYiJ6CMh4 0yzY4/YiRE7N/YeSrsLQDmrgE8HKFAcvdPKLkiDcE4/imjMGPcxQVec/AOtm8JyAogkQ AnQDw7o2Y+JBdyGgDlPVjmkCa7R7RIvnc+RLoixqjZTpJM7+Cp6BO9W0C33pBx5h4i68 5G4Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="k16/AWa1"; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-43074-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43074-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u4-20020a05620a084400b00783d7d4f220si7147699qku.302.2024.01.29.08.26.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 08:26:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43074-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="k16/AWa1"; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-43074-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43074-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C6FF21C22069 for ; Mon, 29 Jan 2024 16:26:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 04D9215699B; Mon, 29 Jan 2024 16:26:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="k16/AWa1" Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (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 1C95764CFF; Mon, 29 Jan 2024 16:26:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.196 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706545571; cv=none; b=JXFcoRChMiafVGDn24rwis2zr/PNOQbNC+Pc7MKzE1zHl27Nryv3Yw+aI5EdvCCY+VCHWb4pszzN//33vJza16+YBpBb8Nier+Yhf+boSoVShax00qZdxVIfqBKtXX8wuOIKyQlyuf9U0suvFpc0LrWbSCcZlU7T9fmoggNr+Zs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706545571; c=relaxed/simple; bh=UaY75zw6o52pDBfyVQuKZPkthmJ59a0OijX3V5ynnkU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WG7HtJjw8Mzs77q1EzUOwiWup1c23kt2k1At14egVJL+lyD01cGgSIw+2sfZFRFXUOLRIEiqte6rj0QFhkhPwnsOApVR7EnLyiO7GjMZANMoYUvsbvjHArvtLojpTDigcKy85d8QuTfpLMWkaRY7XcI3Puwwa3hBL/1TKfAx3fU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=k16/AWa1; arc=none smtp.client-ip=217.70.183.196 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 78C89E000E; Mon, 29 Jan 2024 16:26:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1706545567; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FAldIdFOcM6TSQgoc+utZ58ITzn88qsDQysRSDWf7aE=; b=k16/AWa19fqJf1nRgkxYXzj2UPvusjUHMekficOF8ryuUewp6ia77yC+U0DOlLz5EMFxah 9+qHXCb5OHHGbsH6hSFhYygoTibLsXkj855fyPhuK5Eid4A3oUBKiWMu8xWLnDhjub5YgW W51fnK7AKblSdeXwGAoxeymcggvQ8MZNblSFra22UodjsNV+fwtB+FeGToHt/4RTja2HFd Lo3I/XAJtxafaEfn20e37rfLiRUAPA1IaA8/n26/N1Sjfa6zeQvISKVX3ZoZo846l6KcyL qJAY7qXGRGOxPPOsC7rW82PSEmRL05n+QbcNh81NSCxSG0rncch9YLlK4nO+BA== From: Kory Maincent Date: Mon, 29 Jan 2024 17:25:58 +0100 Subject: [PATCH v7 2/6] dmaengine: dw-edma: Fix wrong interrupt bit set for HDMA Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240129-b4-feature_hdma_mainline-v7-2-8e8c1acb7a46@bootlin.com> References: <20240129-b4-feature_hdma_mainline-v7-0-8e8c1acb7a46@bootlin.com> In-Reply-To: <20240129-b4-feature_hdma_mainline-v7-0-8e8c1acb7a46@bootlin.com> To: Manivannan Sadhasivam , Gustavo Pimentel , Serge Semin , Vinod Koul , Cai Huoqing Cc: Thomas Petazzoni , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Herve Codina , Kory Maincent , Manivannan Sadhasivam X-Mailer: b4 0.12.4 X-GND-Sasl: kory.maincent@bootlin.com Instead of setting HDMA_V0_LOCAL_ABORT_INT_EN bit, HDMA_V0_LOCAL_STOP_INT_EN bit got set twice, due to which the abort interrupt is not getting generated for HDMA. Fix it by setting the correct interrupt enable bit. Fixes: e74c39573d35 ("dmaengine: dw-edma: Add support for native HDMA") Reviewed-by: Serge Semin Reviewed-by: Manivannan Sadhasivam Signed-off-by: Kory Maincent --- Changes in v3: - Split the patch in two to differ bug fix and simple harmless typo. Changes in v6: - Update commit message --- drivers/dma/dw-edma/dw-hdma-v0-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/dw-edma/dw-hdma-v0-core.c b/drivers/dma/dw-edma/dw-hdma-v0-core.c index 1f4cb7db5475..108f9127aaaa 100644 --- a/drivers/dma/dw-edma/dw-hdma-v0-core.c +++ b/drivers/dma/dw-edma/dw-hdma-v0-core.c @@ -236,7 +236,7 @@ static void dw_hdma_v0_core_start(struct dw_edma_chunk *chunk, bool first) /* Interrupt enable&unmask - done, abort */ tmp = GET_CH_32(dw, chan->dir, chan->id, int_setup) | HDMA_V0_STOP_INT_MASK | HDMA_V0_ABORT_INT_MASK | - HDMA_V0_LOCAL_STOP_INT_EN | HDMA_V0_LOCAL_STOP_INT_EN; + HDMA_V0_LOCAL_STOP_INT_EN | HDMA_V0_LOCAL_ABORT_INT_EN; SET_CH_32(dw, chan->dir, chan->id, int_setup, tmp); /* Channel control */ SET_CH_32(dw, chan->dir, chan->id, control1, HDMA_V0_LINKLIST_EN); -- 2.25.1