drivers/soc/microchip/mpfs-mss-top-sysreg.c
Source file repositories/reference/linux-study-clean/drivers/soc/microchip/mpfs-mss-top-sysreg.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/soc/microchip/mpfs-mss-top-sysreg.c- Extension
.c- Size
- 1226 bytes
- Lines
- 47
- Domain
- Driver Families
- Bucket
- drivers/soc
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/array_size.hlinux/of.hlinux/mfd/core.hlinux/mfd/syscon.hlinux/of_platform.hlinux/platform_device.h
Detected Declarations
function mpfs_mss_top_sysreg_probe
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0
#include <linux/array_size.h>
#include <linux/of.h>
#include <linux/mfd/core.h>
#include <linux/mfd/syscon.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
static const struct mfd_cell mpfs_mss_top_sysreg_devs[] = {
MFD_CELL_NAME("mpfs-reset"),
};
static int mpfs_mss_top_sysreg_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
int ret;
ret = devm_mfd_add_devices(dev, PLATFORM_DEVID_NONE,
mpfs_mss_top_sysreg_devs,
ARRAY_SIZE(mpfs_mss_top_sysreg_devs), NULL,
0, NULL);
if (ret)
return ret;
return devm_of_platform_populate(dev);
}
static const struct of_device_id mpfs_mss_top_sysreg_of_match[] = {
{ .compatible = "microchip,mpfs-mss-top-sysreg", },
{},
};
MODULE_DEVICE_TABLE(of, mpfs_mss_top_sysreg_of_match);
static struct platform_driver mpfs_mss_top_sysreg_driver = {
.driver = {
.name = "mpfs-mss-top-sysreg",
.of_match_table = mpfs_mss_top_sysreg_of_match,
},
.probe = mpfs_mss_top_sysreg_probe,
};
module_platform_driver(mpfs_mss_top_sysreg_driver);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Conor Dooley <conor.dooley@microchip.com>");
MODULE_DESCRIPTION("PolarFire SoC mss top sysreg driver");
Annotation
- Immediate include surface: `linux/array_size.h`, `linux/of.h`, `linux/mfd/core.h`, `linux/mfd/syscon.h`, `linux/of_platform.h`, `linux/platform_device.h`.
- Detected declarations: `function mpfs_mss_top_sysreg_probe`.
- Atlas domain: Driver Families / drivers/soc.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.