Re: [PATCH 1/7] spi: Add support for device table matching



On Thu, Jul 30, 2009 at 02:40:50AM +0400, Anton Vorontsov wrote:
[...]
- If you don't store "id" in the device struct, you'll have
to look up the device table twice (at first during bus->match(),
and second time in drivers' probe() hook, i.e.
probe(struct bus_dev *dev) {
id = bus_get_devid(dev); /* here */
}

Hm... actually, we're doing this anyway, but in spi core.

So, doing something like spi_get_device_id() might be a good
idea.

Thanks,

--
Anton Vorontsov
email: cbouatmailru@xxxxxxxxx
irc://irc.freenode.net/bd2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Simplifying devfs: minor == unit
    ... Right before I left to BSDCan I was looking at the devfs code. ... happen if I would completely remove minor numbers from device drivers. ... struct cdev *dev; ...
    (freebsd-arch)
  • Re: Please revert 5adc55da4a7758021bcc374904b0f8b076508a11 (PCI_MULTITHREAD_PROBE)
    ... the usbatm USB ADSL modem drivers have this functionality. ... USB hub thread if done from probe(), it's done in a separate kernel thread. ... Clients of usbatm, like the speedtch driver, register themselves with usbatm, ...
    (Linux-Kernel)
  • Re: [PATCH] add hook for PCI resource deallocation
    ... hook based on the feedback from Ashok ... We need this hook to deallocate architecture specific PCI resource ... * pcibios_disable_device - disable arch specific PCI resources for device dev ...
    (Linux-Kernel)
  • DM9009 NIC Driver anyone?
    ... drivers all over the web. ... Here's how you install it:" ... where it asks if I want it to probe for a NIC. ... lp0: using parport0. ...
    (comp.os.linux.networking)
  • Re: Hooks
    ... If you've declared the hook procedure as you have, ... the pointer before passing it to SetWindowsHookEx(). ... If you tell us, again, why you are trying to capture all mouse and keyboard ... > write these types of drivers? ...
    (microsoft.public.windowsce.embedded.vc)