From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (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 62E9640B39B for ; Mon, 20 Jul 2026 12:04:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784549068; cv=none; b=ragnlLpXAItD7Z/i9y8Ti+CWf+5d1JyWuWnmtf+QmOx9DnEjs8q/4ysP9lYMZSvAo1CpvvfHp8eL51Ee8ED/xABZjo+kldnioUW2dvGDN/+RYUnEo4ocyFllEnEwlAPOAkiANsM20SXomYh+W95yegMiWrLa2pysRg6NG7bxbnU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784549068; c=relaxed/simple; bh=IgOtZk6598P3l2gtZfQn+hzErjCRt72oL/mPASf+8Kw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=l8aGqZnJVspYu0wO1xcpOH/llQljALLhxnq3IvEjG2CszSoM7K7CReGF2EKEUEDmClunhPH4ntkCJvc8QKH3SJcQ7P0R/J7u9nfaYw+0QP0K4ZwS5bUlzvTPQeI8wCqbyF2SX/fQT1HVeupC3PmtwCWgXWun6OaKi0n199iD0Ho= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b=gEoeA8YO; arc=none smtp.client-ip=209.85.221.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b="gEoeA8YO" Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-47f707e5d75so804691f8f.1 for ; Mon, 20 Jul 2026 05:04:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1784549063; x=1785153863; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=pXt6KjlGRsEkAG+bRvHxCmyBIQh0OFEmeRxdi42Dq8w=; b=gEoeA8YOUrc/PgIaQ6sRHKHeaxC/BmgzWtb25ayVGETBx7wMD0wwjbd2DkUZ8QRFIF +scbm2nlSPDBmbQeQjS0iXXT6++u5PxqkV7iuavfHUbXnrx0s+pi6/NjwALuRMER1HA5 7OUkf0UFoq28fGEOyzcsHsYs6khxIBlVvSbWqO+td/sxdgpeQln9mdtePTEArQBMtTDq tfvLp9QbGLhQXfi6T2P9/EMW6M7yZxmg6jB7qoQdOdjvycngnnZqLQ/X8/uLVkzLVSKX +ijOJeRICyuO3FEVOM3Pu5Q1XTVeGoYi/CpyHKv2njiIX2ZVJSIy6Be37Ev23z9/lnJ0 lO+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784549063; x=1785153863; h=content-transfer-encoding:content-type: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=pXt6KjlGRsEkAG+bRvHxCmyBIQh0OFEmeRxdi42Dq8w=; b=lFEqaMXMN0EgTtiIPv0EwgIqPmDREC7NyYO8vn1A797NS2wPpndXQeYN+3PQ9m/pOS 4JtztxsGLZfD6ov9QH2cRdBCGw4a+9Lux5Cwe3BMSpXxMpUG/2ol1pAot/JUJjnALF4g xeRmbLf6gS1JBEIc2I+zteaUKhoSroDw8sNMOi/rE3uzC387FpMD25OaUQZ6esSfYioc kddaJxE5X68yf44nskF8eO0sNtyk9o8ozJCS00kxLT7Y7wfjfsHegKYyXUWWiO3sOqat 4JiTVK+hW/tFpktTfWS0cYvr9rSN5gxmjPFwLahSIFZn+Byk6peP6Lhg7OC8bX9ce/uH cz6w== X-Forwarded-Encrypted: i=1; AHgh+RqU406WCljFVsnEfBpabY7kxxHg9d3e3Apjx24H3qZGFs0ZqT5OdY0mBjjUOz13e4hj17CDjeorSwitQ5Q=@vger.kernel.org X-Gm-Message-State: AOJu0YweNs0UAwCkJk1NiIOoEza1FFnt4mBcvYH6/52xRBk7GRIXuqAA LoW/WtA5aUBPYcVvpVbgwj0DuHcgC9Olfm9B5s95C+D2DPI6MWX4uBCcon/aZ0arUoc= X-Gm-Gg: AR+sD11DmHYQPsvIFwMKPCICKM4A7CITqKNyGWVIiF6DhSmiFO8GZJRdIyUUPNGd/tO tOnXEd1/fwC3GuxZXeOB2q3ur9nt1qSs5QCzsHn+TR36+Bjf4SlIhC8wC7dvvugVbgEmi+P7H+Y 8BUiwQeBBQkcSm6CzMZ32Ei6y0IW8Sw+iyWKATKp7svamwTIYRoKtwNMthRqhXkllw4jvzk74s7 R1JEUBISAozuUzELcne0l/x0ZnTJT3Mclc3zEkmITf1GJNzEakf3IfhMHvU5G89TKcYyUVxtp91 Qxc3vIjtNqkwLPapRu+h27OQBcfNLJSYtmu+7CNuL/Y4p/2ACg/5hDulRzZja/gVJkyJ0ozGGX1 RShmIiaTu4Nz4T3rmOSMNCb/naGkvgn8VU3Z25YG0R2SV5UXkZKXTlnS2C5TDaj3c2H1z4qOFpv tQmPqSfcAPPwIBW7PQykrjzfPi+HBzmMxpsvELl7xG8Xd+n8Hx/QM/CHSG02WoM5U1fwTo++HQ1 OQg X-Received: by 2002:a05:6000:2208:b0:47f:7736:5485 with SMTP id ffacd0b85a97d-47f7736551dmr5473299f8f.16.1784549063475; Mon, 20 Jul 2026 05:04:23 -0700 (PDT) Received: from localhost (p200300f65f47db048587886ecb5b26b2.dip0.t-ipconnect.de. [2003:f6:5f47:db04:8587:886e:cb5b:26b2]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-47f63e499c2sm27668455f8f.4.2026.07.20.05.04.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2026 05:04:22 -0700 (PDT) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig=20=28The=20Capable=20Hub=29?= To: Vinod Koul Cc: Andy Shevchenko , Frank Li , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, Basavaraj Natikar , Manivannan Sadhasivam , Viresh Kumar , Andy Shevchenko Subject: [PATCH v3 0/2] dmaengine: Use named initializers for arrays of pci_device_id Date: Mon, 20 Jul 2026 14:03:47 +0200 Message-ID: X-Mailer: git-send-email 2.55.0.11.g153666a7d9bb 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 X-Developer-Signature: v=1; a=openpgp-sha256; l=1995; i=u.kleine-koenig@baylibre.com; h=from:subject:message-id; bh=IgOtZk6598P3l2gtZfQn+hzErjCRt72oL/mPASf+8Kw=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBqXg6oi5kDPUInOiBEjlm58JC2TDD4vPdF8YQch XRq31oKBYuJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCal4OqAAKCRCPgPtYfRL+ Tvy/B/99uS/Xzxg3Je6lEtoOqAOh6ZQoz3+o/cYkLyi7uywDa8FvKzHsouu0ybrS0qDQ4H6P4SZ Wzw3RncHWhYjvyXPwogf817uuoGG833sYDxw6Zd46a0YnS5GABfpCAAmHZmIEBNfWg8Zj1K1oIx 6bY/gSewaNr6BWdtdF1vIHnG1CIbd3rXYoNZKeUDVUTVoEFmVTkI59+YHOfMxoLT44EeEhwd6oE ye1IaPsGp4vWCM6SPk+CjW6fysatBKQWTZJSjUfAkChYIAqskNxq5R397XWRhWjbq7o1+osD4m0 ZE2UawxGFdIJSYUPCsXWOynSRCf0d5kOdnCbgpb+tp/I26vz X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: 8bit Hello, the objective of this patch series is to prepare drivers/dma for a change of pci_device_id that requires all users to initialize .driver_data by name. See https://lore.kernel.org/all/cover.1780048925.git.u.kleine-koenig@baylibre.com/ for more details. (This is about platform_device_id, but I intend to do that for pci_device_id in the same manner.) v2 is available at https://lore.kernel.org/dmaengine/cover.1781161455.git.ukleinek@kernel.org . Changes since then: - Rebase to current next - Add review tags by Frank Li and Andy Shevchenko - Fix commit log to talk about the right device_id type (i.e. pci_device_id and neither pnp nor platform) (partly found by Sashiko) Note that Andy prefers the use of PCI_DEVICE_DATA() over PCI_VDEVICE() + explicit .driver_data because the former is more compact and the follow-up change to struct pci_device_id could be handled in the definition of that macro. I disagree here, as the compactness is bought with quite some magic in the #define once it handles the union, and being explicit (and thus less compact) has its merits, too. Additionally the affected drivers need an adaption anyhow in their probe function, and switching both .probe() and the .id_table in a single patch seems right to me. Because from my POV my subjective opinion is obviously the right one, I didn't follow Andy's request. Best regards Uwe Uwe Kleine-König (The Capable Hub) (2): dmaengine: hsu: Drop unused pci driver data dmaengine: Consistently define pci_device_ids using named initializers drivers/dma/amd/ptdma/ptdma-pci.c | 4 ++-- drivers/dma/dw-edma/dw-edma-pcie.c | 2 +- drivers/dma/dw/pci.c | 22 +++++++++++----------- drivers/dma/hsu/pci.c | 4 ++-- drivers/dma/pch_dma.c | 26 +++++++++++++------------- 5 files changed, 29 insertions(+), 29 deletions(-) base-commit: 0718283ab28bc3907e10b61a6b4be6fefa1cbb2f -- 2.55.0.11.g153666a7d9bb