drivers/power/reset/keystone-reset.c
Source file repositories/reference/linux-study-clean/drivers/power/reset/keystone-reset.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/power/reset/keystone-reset.c- Extension
.c- Size
- 3834 bytes
- Lines
- 157
- Domain
- Driver Families
- Bucket
- drivers/power
- 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/io.hlinux/module.hlinux/notifier.hlinux/platform_device.hlinux/reboot.hlinux/regmap.hlinux/mfd/syscon.hlinux/of.h
Detected Declarations
function rsctrl_enable_rspll_writefunction rsctrl_restart_handlerfunction rsctrl_probe
Annotated Snippet
if (ret == -EOVERFLOW && !i) {
dev_err(dev, "ti,wdt-list property has to contain at"
"least one entry\n");
return -EINVAL;
} else if (ret) {
break;
}
if (val >= WDT_MUX_NUMBER) {
dev_err(dev, "ti,wdt-list property can contain "
"only numbers < 4\n");
return -EINVAL;
}
rg = rsmux_offset + val * 4;
ret = regmap_update_bits(devctrl_regs, rg, RSMUX_OMODE_MASK,
RSMUX_OMODE_RESET_ON |
RSMUX_LOCK_SET);
if (ret)
return ret;
}
ret = devm_register_sys_off_handler(dev, SYS_OFF_MODE_RESTART, 128,
rsctrl_restart_handler, NULL);
if (ret)
dev_err(dev, "cannot register restart handler (err=%d)\n", ret);
return ret;
}
static struct platform_driver rsctrl_driver = {
.probe = rsctrl_probe,
.driver = {
.name = KBUILD_MODNAME,
.of_match_table = rsctrl_of_match,
},
};
module_platform_driver(rsctrl_driver);
MODULE_AUTHOR("Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>");
MODULE_DESCRIPTION("Texas Instruments keystone reset driver");
MODULE_ALIAS("platform:" KBUILD_MODNAME);
Annotation
- Immediate include surface: `linux/io.h`, `linux/module.h`, `linux/notifier.h`, `linux/platform_device.h`, `linux/reboot.h`, `linux/regmap.h`, `linux/mfd/syscon.h`, `linux/of.h`.
- Detected declarations: `function rsctrl_enable_rspll_write`, `function rsctrl_restart_handler`, `function rsctrl_probe`.
- Atlas domain: Driver Families / drivers/power.
- 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.