Hello, Thomas Gleixner wrote:mmpf. It's not nice to use disable_irq()/enable_irq() in a driver, is it? It's a ns9215 SoC. The rtc component has a clock flag that I need to set before accessing the address space. After enabling the clock flag I get an irq if the rtc is up. The rtc itself uses the same irq. As I want to handle the clk enabling in platform code and the actual rtc in a driver I need a shared irq. Now the problem is that the rtc remembers its alarm flags over reboots[1] and starts asserting the irq when the platform code has requested the irq. I currently see two ways to handle that: 1) find an alternative patch similar to the one I sent that don't break driver code; or 2) let the platform code disable the rtc's irqs. for 1) you need to remember the reason for disabling the irq (or fix all drivers not to use disable_irq()). And 2) is ugly because I have to ioremap then. Best regards Uwe [1] not entirely sure, but I had the rtc in a state in which the rtc component asserted an irq directly after a reset. -- Uwe Kleine-König, Software Engineer Digi International GmbH Branch Breisach, Küferstrasse 8, 79206 Breisach, Germany Tax: 315/5781/0242 / VAT: DE153662976 / Reg. Amtsgericht Dortmund HRB 13962 --
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Linus Torvalds | Linux 2.6.25-rc4 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Andrew Morton | 2.6.23-rc6-mm1 |
git: | |
| Arjan van de Ven | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Andrew Morton | Re: [BUG] New Kernel Bugs |
| Radu Rendec | htb parallelism on multi-core platforms |
