Linux RTC
 help / color / mirror / Atom feed
* [rtc-linux] RTC used as a module
@ 2016-12-08 13:02 Michal Simek
  2017-02-23 12:14 ` Alexandre Belloni
  0 siblings, 1 reply; 19+ messages in thread
From: Michal Simek @ 2016-12-08 13:02 UTC (permalink / raw)
  To: rtc-linux


[-- Attachment #1.1: Type: text/plain, Size: 1641 bytes --]

Hi guys,

I am trying to find out reason for this behavior. If rtc-zynqmp is used
as module for the first time it is correctly probed based on aliases
setting. (rtc5 for log below). But then driver is removed and add again
rtc5 is still not freed. rtc_device_release() is not called that's why
rtc->id can't be used again.

sh-4.3# modprobe rtc-zynqmp
[   42.468565] rtc_zynqmp ffa60000.rtc: rtc core: registered
ffa60000.rtc as rtc5
sh-4.3# rmmod rtc-zynqmp
sh-4.3# modprobe rtc-zynqmp
[   48.648222] rtc_zynqmp ffa60000.rtc: /aliases ID 5 not available
[   48.654280] rtc_zynqmp ffa60000.rtc: rtc core: registered
ffa60000.rtc as rtc0


I didn't try different rtc drivers but it looks like that someone keeps
reference that's why release function is not called.

Can someone check this with different RTC module?
Or is this expected behavior?

Thanks,
Michal

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP SoCs


-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2017-08-21 13:00 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-08 13:02 [rtc-linux] RTC used as a module Michal Simek
2017-02-23 12:14 ` Alexandre Belloni
2017-03-03  9:41   ` Michal Simek
2017-03-03 14:46     ` Michal Simek
2017-03-03 15:09       ` Alexandre Belloni
2017-03-03 19:55         ` Michal Simek
2017-03-03 20:04       ` John Stultz
2017-03-06 14:56         ` Michal Simek
2017-03-16 15:35           ` Michal Simek
2017-04-07  7:12             ` Michal Simek
2017-06-29  7:34               ` Michal Simek
2017-08-20 22:03                 ` Alexandre Belloni
2017-08-21 10:50                   ` Michal Simek
2017-08-21 12:13                     ` Alexandre Belloni
2017-08-21 12:19                       ` Michal Simek
2017-08-21 12:47                         ` Alexandre Belloni
2017-08-21 12:50                           ` Michal Simek
2017-08-21 12:53                           ` Alexandre Belloni
2017-08-21 13:00                             ` Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox