From nobody Mon Apr 6 19:55:31 2026 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fqKnJ1TPbz6Yd1F for ; Mon, 06 Apr 2026 19:55:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fqKnJ0BH3z3Z7T for ; Mon, 06 Apr 2026 19:55:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775505332; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rWB6ZWBb2hwwnNSk5TKdp7Nr+Ov8Xshk0PlJEA9i4s0=; b=cjZxi+/kX++6/HHnXBt49OqZt0jd3lZk/d5nujh7X5k+SPmNJWuu1IsVVb4Fap3T4mzm/K TmpkCOLPPoWaw86Y+XoppTX9kn86Ic6+IGVkyo2wk3/4XJQ7D8t8WENpIzCsx+RRXprkm3 jnOXS+YFuS3nsMN52znljWcZ6Kg1V0ojM0LX8Zt6jxS/RYeX+siiAiFyq9ZhUIHxHKvKc3 boS+xWGgMLHTszV4zMylzRQkZlt9nnrRSpsenGT3pKaBa0Xkp+3zVXS1WYphhocR39KMKO cxo7wfzlyL2u7dAdA2xQ0al10UkTIENDOlBj1Eu2V4u51bF4Kp50wro6zIRzmw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1775505332; a=rsa-sha256; cv=none; b=sOMmE0g0PUjDGA4TKb/rRDfe5EV/b6OpsGOy7sB+W4FhHyFBxlbgDwR6h06EEyAeBADni5 zd9yFxi0X3FshmcJpkZOCBPWhyh4id4TnBp0fH+FU57SCUxZfo/hDt9jTB6rNRjyUI2I4C qNVP793ytjbd57Gja1HaKqv+IumavmJk92+zSk45R5p7kPydX1hfmw60B/GJgP6lODvrnV eMqjFOekh6VSQPfL0y9OU1wGbqo1wF9m5UgNJXvkPm5eYSNGJA+vLSF8MNCKAQv6q9TBj5 58/sZEuFjm4cuym5YAWxPbmDgfAv0GDxkdA56kwRKaYloLcO6z14Wp2vuIN89A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775505332; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rWB6ZWBb2hwwnNSk5TKdp7Nr+Ov8Xshk0PlJEA9i4s0=; b=qat4+0YxwEv33AhjEO1mJjdZxfAm+9hiXLHLukh1vsmPmeakzZW/oX4pSTlCfcb49DzB0C O0mrvQ6U8xpWbM2nK0WsPyuqwyd5RseNMDKp6xlYqKEJ1nwaxcnD2lkcxVbIerTrllzdg7 Q5lXIeYPe56Wm9xA+bLh8hEtPid8p1rT4wYzraUPvVjh3B59aOGSpxE5zySBGtXgGE0Sa4 TgK4WNekQoT7rvss+ZCQVLwm7NKkpUr6eVPEqEMZk7xJvV0Vnlc51z5RCiFePRip+BLjHY vZcxYDRRQ1kRYn2R/XJoH3DFN2akB/VGRvbNXzxnlEADIJrKWk2komrdUa+nWQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fqKnH61nNz16v0 for ; Mon, 06 Apr 2026 19:55:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 36648 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 06 Apr 2026 19:55:31 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jean-=?utf-8?Q?S=C3=A9bast?==?utf-8?Q?ien P=C3=A9?=dron Subject: git: 356d6f47d3b5 - main - linuxkpi: Add List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dumbbell X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 356d6f47d3b54b34aaba9e60aa551f3d615d0e2f Auto-Submitted: auto-generated Date: Mon, 06 Apr 2026 19:55:31 +0000 Message-Id: <69d40fb3.36648.27830016@gitrepo.freebsd.org> The branch main has been updated by dumbbell: URL: https://cgit.FreeBSD.org/src/commit/?id=356d6f47d3b54b34aaba9e60aa551f3d615d0e2f commit 356d6f47d3b54b34aaba9e60aa551f3d615d0e2f Author: Jean-Sébastien Pédron AuthorDate: 2026-03-08 09:40:38 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2026-04-06 19:28:09 +0000 linuxkpi: Add To be exact, there was a dummy file with no content before. This commit defines `struct mfd_cell` and adds two function stubs. The function stubs are not implemented but still return success. They log a message to indicate they need to be implemented. Also, unlike Linux, includes . This works around the fact that we can't include from , due to a conflict with the FreeBSD-native `struct resource`. The amdgpu DRM driver started to use it in Linux 6.11. Reviewed by: bz, emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D55736 --- .../linuxkpi/common/include/linux/mfd/core.h | 49 ++++++++++++++++++++++ sys/compat/linuxkpi/dummy/include/linux/mfd/core.h | 0 2 files changed, 49 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/mfd/core.h b/sys/compat/linuxkpi/common/include/linux/mfd/core.h new file mode 100644 index 000000000000..1a69a3803b5d --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/mfd/core.h @@ -0,0 +1,49 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2026 The FreeBSD Foundation + */ + +#ifndef _LINUXKPI_LINUX_MFD_CORE_H_ +#define _LINUXKPI_LINUX_MFD_CORE_H_ + +#include + +/* + * is not included by Linux, but we need it here to get the + * definition of `struct resource`. + * + * At least the amdgpu DRM driver (amdgpu_isp.c at the time of this writing) + * needs the structure without including this header: it relies on an implicit + * include of from , which we can't have due to + * conflict with the FreeBSD native `struct resource`. + */ +#include + +#include /* pr_debug */ + +struct resource; +struct mfd_cell { + const char *name; + void *platform_data; + size_t pdata_size; + int num_resources; + const struct resource *resources; +}; + +static inline int +mfd_add_hotplug_devices(struct device *parent, + const struct mfd_cell *cells, int n_devs) +{ + pr_debug("%s: TODO\n", __func__); + + return (0); +} + +static inline void +mfd_remove_devices(struct device *parent) +{ + pr_debug("%s: TODO\n", __func__); +} + +#endif /* _LINUXKPI_LINUX_MFD_CORE_H_ */ diff --git a/sys/compat/linuxkpi/dummy/include/linux/mfd/core.h b/sys/compat/linuxkpi/dummy/include/linux/mfd/core.h deleted file mode 100644 index e69de29bb2d1..000000000000