drivers/soc/microchip/mpfs-control-scb.c
Source file repositories/reference/linux-study-clean/drivers/soc/microchip/mpfs-control-scb.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/soc/microchip/mpfs-control-scb.c- Extension
.c- Size
- 1083 bytes
- Lines
- 41
- 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/platform_device.h
Detected Declarations
function mpfs_control_scb_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/platform_device.h>
static const struct mfd_cell mpfs_control_scb_devs[] = {
MFD_CELL_NAME("mpfs-tvs"),
};
static int mpfs_control_scb_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
return devm_mfd_add_devices(dev, PLATFORM_DEVID_NONE,
mpfs_control_scb_devs,
ARRAY_SIZE(mpfs_control_scb_devs), NULL, 0,
NULL);
}
static const struct of_device_id mpfs_control_scb_of_match[] = {
{ .compatible = "microchip,mpfs-control-scb", },
{},
};
MODULE_DEVICE_TABLE(of, mpfs_control_scb_of_match);
static struct platform_driver mpfs_control_scb_driver = {
.driver = {
.name = "mpfs-control-scb",
.of_match_table = mpfs_control_scb_of_match,
},
.probe = mpfs_control_scb_probe,
};
module_platform_driver(mpfs_control_scb_driver);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Conor Dooley <conor.dooley@microchip.com>");
MODULE_DESCRIPTION("PolarFire SoC control scb driver");
Annotation
- Immediate include surface: `linux/array_size.h`, `linux/of.h`, `linux/mfd/core.h`, `linux/mfd/syscon.h`, `linux/platform_device.h`.
- Detected declarations: `function mpfs_control_scb_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.