On Tue, 22 Apr 2008, Jeff Garzik wrote:Quite frankly, I'd actually prefer to just reinstate "dev" to the irq registration instead. Why? Because that field is how we are able to track multiple interrupt registrations that share an IRQ. Now, the "request_irq()" logic has a special rule that actually tests that NULL is a valid cookie if the IRQF_SHARED bit isn't set, but isn't it a nice thing to double-check regardless? This, in contrast, *really* sucks as a cookie. In fact, it's useless. If there are multiple tp3780i instances on the same irq, they will always have the same cookie. That's why we pass in a "device" pointer or similar - exactly to make sure that the cookie is unique for that irq resource! So it would be much nicer to fix the cookie to be a real device pointer (why not "pSettings" itself?) that is stable across the whole series of request_irq/free_irq. And that also would tend to get rid of the butt-ugly casts. Willing to fix those up? Linus --
| Greg KH | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Adrian Bunk | [1/6] 2.6.21-rc2: known regressions |
| Paul Jackson | Re: cpuset-remove-sched-domain-hooks-from-cpusets |
git: | |
| Linus Torvalds | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Andrew Morton | Re: [BUG] New Kernel Bugs |
