Page MenuHomeFreeBSD

linuxkpi: Add <linux/mfd/core.h>
ClosedPublic

Authored by dumbbell on Mar 8 2026, 1:24 PM.
Tags
None
Referenced Files
F152303408: D55736.id175006.diff
Tue, Apr 14, 12:51 AM
Unknown Object (File)
Thu, Apr 9, 10:08 PM
Unknown Object (File)
Wed, Apr 8, 11:32 PM
Unknown Object (File)
Tue, Apr 7, 4:41 PM
Unknown Object (File)
Tue, Apr 7, 3:59 PM
Unknown Object (File)
Mon, Apr 6, 9:22 PM
Unknown Object (File)
Wed, Mar 25, 1:43 AM
Unknown Object (File)
Fri, Mar 20, 7:06 AM
Subscribers

Details

Summary

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, <linux/mfd/core.h> includes <linux/ioport.h>. This works around the fact that we can't include <linux/ioport.h> from <linux/pci.h>, due to a conflict with the FreeBSD-native struct resource.

The amdgpu DRM driver started to use it in Linux 6.11.

This is part of the update of DRM drivers to Linux 6.11.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mar 8 2026, 1:30 PM

Fix copyright header to use SPDX comment.

This revision now requires review to proceed.Mar 8 2026, 8:56 PM
This revision is now accepted and ready to land.Sun, Mar 29, 11:18 PM
This revision was automatically updated to reflect the committed changes.