drivers/staging/greybus/arche-platform.c
Source file repositories/reference/linux-study-clean/drivers/staging/greybus/arche-platform.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/greybus/arche-platform.c- Extension
.c- Size
- 18012 bytes
- Lines
- 654
- Domain
- Driver Families
- Bucket
- drivers/staging
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/clk.hlinux/delay.hlinux/gpio/consumer.hlinux/init.hlinux/module.hlinux/of_platform.hlinux/pinctrl/consumer.hlinux/platform_device.hlinux/pm.hlinux/interrupt.hlinux/irq.hlinux/suspend.hlinux/time.hlinux/greybus.hlinux/of.harche_platform.hlinux/usb/usb3613.h
Detected Declarations
struct arche_platform_drvdataenum svc_wakedetect_statefunction usb3613_hub_mode_ctrlfunction arche_platform_set_statefunction arche_platform_set_wake_detect_statefunction svc_reset_onofffunction apb_cold_bootfunction apb_powerofffunction arche_platform_wd_irq_enfunction arche_platform_wd_irq_threadfunction arche_platform_wd_irqfunction arche_platform_coldboot_seqfunction arche_platform_fw_flashing_seqfunction arche_platform_poweroff_seqfunction state_storefunction state_showfunction arche_platform_pm_notifierfunction arche_platform_probefunction arche_platform_removefunction arche_platform_suspendfunction arche_platform_resumefunction arche_platform_shutdownfunction arche_initfunction arche_exitmodule init arche_init
Annotated Snippet
module_init(arche_init);
static void __exit arche_exit(void)
{
arche_apb_exit();
platform_driver_unregister(&arche_platform_device_driver);
}
module_exit(arche_exit);
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Vaibhav Hiremath <vaibhav.hiremath@linaro.org>");
MODULE_DESCRIPTION("Arche Platform Driver");
Annotation
- Immediate include surface: `linux/clk.h`, `linux/delay.h`, `linux/gpio/consumer.h`, `linux/init.h`, `linux/module.h`, `linux/of_platform.h`, `linux/pinctrl/consumer.h`, `linux/platform_device.h`.
- Detected declarations: `struct arche_platform_drvdata`, `enum svc_wakedetect_state`, `function usb3613_hub_mode_ctrl`, `function arche_platform_set_state`, `function arche_platform_set_wake_detect_state`, `function svc_reset_onoff`, `function apb_cold_boot`, `function apb_poweroff`, `function arche_platform_wd_irq_en`, `function arche_platform_wd_irq_thread`.
- Atlas domain: Driver Families / drivers/staging.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.