mfd: imanager2: Add Core supports for IT8516/18/28
Quoted 3 lines
You've replied to this email as an independent message, so now there is little context. When you reply, please ensure your mailer replies to the thread.
Could you tell me more detail about this?
I use Git to reply mails but don't know how to set them to be dependent on.
Quoted 25 lines · Wei-Chun Pan
Quoted 13 lines
I have a question for your comment. As your mail,
Quoted 11 lines
Review
Quoted 8 lines
(quoted diff) +8
-0+ +static void __exit imanager2_mfd_device_exit(void) { + mfd_remove_devices(&ec_pdev->dev); + platform_device_unregister(ec_pdev); +} + +module_init(imanager2_mfd_device_init); +module_exit(imanager2_mfd_device_exit);This is a mess. Use
module_platform_driver()instead.Quoted 4 lines
Quoted 4 lines
Review
Quoted 4 lines
(quoted diff) +4
-0+MODULE_AUTHOR("Richard Vidal-Dorsch <richard.dorsch at +advantech.com>"); +MODULE_DESCRIPTION("iManager2 platform device definitions v" +DRV_VERSION); MODULE_LICENSE("GPL");
MODULE_VERSION(DRV_VERSION);Quoted 5 lines
Quoted 1 line
How can I use
module_platform_driver()and my driver exit function also can domfd_remove_devices().
Or any other better function install ofmfd_remove_devices()?
Quoted 7 lines
That's the point - you don't do
mfd_remove_devices()inexit(), you domfd_add_devices()in .probe() andmfd_remove_devices()in .remove().The only thing you want to do in
init()isplatform_driver_register(), or even better
- don't haveinit()andexit()calls and use usemodule_platform_driver_probe()instead.
It seems that module_platform_driver() only registers/unregisters driver but not device. Is there a method to register/unregister my device?
--
Wei-Chun Pan
Quoted 6 lines · Wei-Chun Pan
Quoted 3 lines
You've replied to this email as an independent message, so now there is little context. When you reply, please ensure your mailer replies to the thread.
Could you tell me more detail about this?
I use Git to reply mails but don't know how to set them to be dependent on.
How do you use Git to reply to emails?
Quoted 28 lines
Quoted 28 lines · Wei-Chun Pan
Quoted 13 lines
I have a question for your comment. As your mail,
Quoted 11 lines
Review
Quoted 8 lines
(quoted diff) +8
-0+ +static void __exit imanager2_mfd_device_exit(void) { + mfd_remove_devices(&ec_pdev->dev); + platform_device_unregister(ec_pdev); +} + +module_init(imanager2_mfd_device_init); +module_exit(imanager2_mfd_device_exit);This is a mess. Use
module_platform_driver()instead.Quoted 4 lines
Quoted 4 lines
Review
Quoted 4 lines
(quoted diff) +4
-0+MODULE_AUTHOR("Richard Vidal-Dorsch <richard.dorsch at +advantech.com>"); +MODULE_DESCRIPTION("iManager2 platform device definitions v" +DRV_VERSION); MODULE_LICENSE("GPL");
MODULE_VERSION(DRV_VERSION);Quoted 5 lines
Quoted 1 line
How can I use
module_platform_driver()and my driver exit function also can domfd_remove_devices().
Or any other better function install ofmfd_remove_devices()?That's the point - you don't do
mfd_remove_devices()inexit(), you domfd_add_devices()in .probe() andmfd_remove_devices()in .remove().
Quoted 7 lines
Quoted 4 lines
The only thing you want to do in
init()isplatform_driver_register(), or even better
- don't haveinit()andexit()calls and use usemodule_platform_driver_probe()instead.It seems that
module_platform_driver()only registers/unregisters driver but not device. Is there a method to register/unregister my device?
You need to do that from Device Tree or from within arch/<arch>/{mach,plat}-*
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog