From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E1C944749CE for ; Fri, 24 Jul 2026 23:23:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784935387; cv=none; b=X9583R8h5qYkGjv/wWNvR9IYIbcSU445KT3Wcc4nLKNLQvczT2e6CwjVEky17IXnAnZ7QUMNrXfOqLSY4RVJ3W2j3tGEy9dK4NHtgv+xgyEZwWA6h2A13lslcwIHy54IeX80YB2wI69OXm4CDRj0+/NYOOy+8R8I6IQCKCZmOuU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784935387; c=relaxed/simple; bh=3ZGWXISsjF8lL5z+RPaUpb0GJkUQ1n0Yr3mcTRITdEw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bo8xdtanp8p4muRZGDkA+j1xMvKFWSjwAVAmUuVtqow3+1Os9ffMsj6td5tvMaQRnjbe3z6wwCjY8O9oaEnyE8Q8OlT9WIjMlzrFWE/MGCdRN6Wb23ZuXC5+VV7Cd0B8b8okHH3CISL27Hc4pTR4zQpRyOjLMOnvix91MB9DmtM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=DBmvhGN8; arc=none smtp.client-ip=209.85.210.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DBmvhGN8" Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-84536ecfc5bso1227887b3a.2 for ; Fri, 24 Jul 2026 16:23:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784935385; x=1785540185; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=ak3a7+5iHL+DI779EzdC6NLfZP9M06vxpEidoqxCeoA=; b=DBmvhGN8AnK0fX1oFNesxpjAh6f7uGBikYDR/ocgBaYzulG0SyWFpQhrKJLGb+p3hz bDkmcDQhrJTAIpjb8F/OwnxPqDYAhZRKJZYrjiKeKUxDlcTq1hcvjlNyxWd1/OUDoaeY e88Kxo4KgU7BZ2kJ7SHEKqQf2yjiWN513pfZlXo4l+ZWeUz7dUEs2nWRwc2Q+fFhNW/9 fjH4GuvHfCeMdH/guBK8Vm8aKR0AZQvej0CaXWvhRo9/ZGavRBu5QaY+YbmFJqDBY1yN PjakvwTXJE+q8WTmr67V3RIdrokt0/QIcC05o/UcWakSocODWiTzk5NFFQs3pvYvUww6 3FRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784935385; x=1785540185; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ak3a7+5iHL+DI779EzdC6NLfZP9M06vxpEidoqxCeoA=; b=TFAEbosZHsA+O0pHtDPanpKLb90eCarDugf8VU9yzLxwVVr1zPkwnpR7n7rFfQQ6+/ mtsYbnJQLCcix9zaMPdgKiW3PUAuAf7SY/JKoXnzGHJaObuHTon2n/Q8fEl95JXfO0u4 FMG4tuzG31KPTfi6tyuOl2b6Uzc0gsnVCwVVNC1M3e8dQwe8/y9RpnqQESul5yQl7xTF /m+Gwzt3Q+wb/l79jfkIG3M9Uo0hwJMHGHwGOOzwiG92Odu+RH2R4mvnAPc46YPGKJ4K mwqRg/8qi6WYz8+Du6iVICXfZrFnMpQg5/XRVnQnY/NY8CZgqzw9qMaNk48XhAlBRDfr dXsA== X-Forwarded-Encrypted: i=1; AHgh+RpciC3OA0D4s3IxPb2ct7TnqFk5FOgUdDCMF8qJ8V1nQBEcgeWgSG9khb1QOWjlRkS0q6Y9wDNT1sWZLqY=@vger.kernel.org X-Gm-Message-State: AOJu0Yw/CSFzzsjh3um+nv4uj/4nUj1E5yXDEy6++DQ/6ssFG9WtTe3u oK7ml2RO44IAuVZOunTI70PkvbRleNDavfE6GQzUuGx1BWVsIKHsHRp7 X-Gm-Gg: AR+sD13U5BmSFzDkgOXwpvsL/sI9qNrui6wZUR/z8Rz7prt0u9kIo3V9rUCnEWrwWZb Mr/uF/k6ypXc34Ite/lsivyRJiXBMYCpoS1mj7gEZaWHR/6NJ2M78f9vAUq6wbJyh+lInQPieWI Rm3oGzma2ptKu4eIIoyJMv6CdU9ePKZQAYpeVVi/C149NalL9ovx0f6PqUKwBMgYh0AkdEIEURT 2IXIMaxo8KM1H99T9MiSKnS2tERiphGId3+076lbVHKbh8+YzeaXE8Pv+gQV3jHQV/Hg5U7x99z e0XVBgsF6z8a3N3XFs+nbdqYCLFw5dQX47TDlZ7378J5gJMBFkHqSdLYHaRBpi5wo30islYLz5t 3AnbvntLMclS9yUzf1HstkE6A8XxDrJ5lIfA7W1OmHauaHVVDe3XoemCdP3X+cDYFqjnVfNOA/A 44NrP/dJfp9hDwJ5P9RvxGfUtlOmihGTKVPJ840m50gorfG1U2Wze/hTVkZ6ONMuAY3yXBOb8E/ RrYgreTnWKsfcy2aictlnsO57fUPy1i4ojQo4HgLSPhsc/W+I+fmZA= X-Received: by 2002:a05:6a00:178e:b0:84a:2d5c:528c with SMTP id d2e1a72fcca58-84e5958d84fmr206478b3a.61.1784935385215; Fri, 24 Jul 2026 16:23:05 -0700 (PDT) Received: from ryzen.lan ([2601:644:8000:7a86::e35]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-84e5341d8f0sm510545b3a.44.2026.07.24.16.23.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2026 16:23:04 -0700 (PDT) From: Rosen Penev To: dmaengine@vger.kernel.org Cc: Ludovic Desroches , Vinod Koul , Frank Li , linux-arm-kernel@lists.infradead.org (moderated list:MICROCHIP AT91 DMA DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] dma: at_hdmac: add device_synchronize callback Date: Fri, 24 Jul 2026 16:23:01 -0700 Message-ID: <20260724232301.50237-1-rosenp@gmail.com> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Implement the device_synchronize callback for the atmel DMA driver by adding atc_synchronize() which calls vchan_synchronize() on the associated virt channel. This ensures proper synchronization of pending descriptors when requested by the DMA framework. Assisted-by: OpenCode:Big-Pickle Signed-off-by: Rosen Penev --- drivers/dma/at_hdmac.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c index bb501c0baa7e..d587f5809814 100644 --- a/drivers/dma/at_hdmac.c +++ b/drivers/dma/at_hdmac.c @@ -1617,6 +1617,13 @@ static int atc_resume(struct dma_chan *chan) return 0; } +static void atc_synchronize(struct dma_chan *chan) +{ + struct at_dma_chan *atchan = to_at_dma_chan(chan); + + vchan_synchronize(&atchan->vc); +} + static int atc_terminate_all(struct dma_chan *chan) { struct at_dma_chan *atchan = to_at_dma_chan(chan); @@ -2040,6 +2047,7 @@ static int __init at_dma_probe(struct platform_device *pdev) atdma->dma_device.device_free_chan_resources = atc_free_chan_resources; atdma->dma_device.device_tx_status = atc_tx_status; atdma->dma_device.device_issue_pending = atc_issue_pending; + atdma->dma_device.device_synchronize = atc_synchronize; atdma->dma_device.dev = &pdev->dev; /* set prep routines based on capability */ -- 2.55.0