Re: [PATCH v6 06/40] power: reset: Add a driver for the ep93xx reset
From: Andy Shevchenko
Date: Wed Dec 13 2023 - 12:55:21 EST
On Tue, Dec 12, 2023 at 11:20:23AM +0300, Nikita Shubin wrote:
> Implement the reset behaviour of the various EP93xx SoCS
> in drivers/power/reset.
>
> It used to be located in arch/arm/mach-ep93xx.
...
> +#include <linux/bits.h>
+ container_of.h
> +#include <linux/delay.h>
+ errno.h
> +#include <linux/mfd/syscon.h>
> +#include <linux/notifier.h>
> +#include <linux/platform_device.h>
Should this be the auxiliary one?
> +#include <linux/reboot.h>
+ device.h or slab.h where devm_kzalloc() is defined.
Depends on above dev_printk.h (it's guaranteed by device.h).
> +static const struct auxiliary_device_id ep93xx_reboot_ids[] = {
> + {
> + .name = "soc_ep93xx.reset-ep93xx",
> + },
> + { /* sentinel */ }
> +};
> +MODULE_DEVICE_TABLE(auxiliary, ep93xx_reboot_ids);
module.h
mod_devicetable.h
...
> +static struct auxiliary_driver ep93xx_reboot_driver = {
> + .probe = ep93xx_reboot_probe,
> + .id_table = ep93xx_reboot_ids,
> +};
> +module_auxiliary_driver(ep93xx_reboot_driver);
Not seeing the platform_device.h use...
--
With Best Regards,
Andy Shevchenko