Skip to content
Snippets Groups Projects
  1. Mar 23, 2011
  2. Jan 21, 2011
  3. Nov 09, 2010
  4. Jul 30, 2010
  5. Jan 20, 2010
    • Paul Mundt's avatar
      spi: xilinx_spi: Fix up I/O routine wrapping bogosity. · 97782149
      Paul Mundt authored
      
      xilinx_spi presently makes some fairly questionable assumptions about I/O
      routines, and attempts to assign ioread32/iowrite32 and friends directly
      to its own internal function pointers. On many platforms these I/O
      routines are macros or wrappers and not actual functions on their own,
      resulting in things like:
      
      ERROR: "ioread32be" [drivers/spi/xilinx_spi.ko] undefined!
      ERROR: "iowrite32be" [drivers/spi/xilinx_spi.ko] undefined!
      ERROR: "iowrite32" [drivers/spi/xilinx_spi.ko] undefined!
      ERROR: "ioread32" [drivers/spi/xilinx_spi.ko] undefined!
      
      If xilinx_spi wants to do this sort of casting, it needs to provide its
      own wrappers for these, or change how it does accesses completely.
      
      I've opted for the first approach, and the attached silly patch does
      that. If someone with the hardware available wants to give the second
      option a try that's ok too. In any event, the current code is broken for
      at least: arm, avr32, blackfin, microblaze, mn10300, and sh.
      
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      Acked-by: default avatarRichard Röjfors <richard.rojfors@pelagicore.com>
      Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      97782149
  6. Dec 08, 2009
  7. Nov 04, 2009
  8. Jun 18, 2009
  9. Mar 11, 2009
  10. Jan 09, 2009
  11. Jul 24, 2008
  12. Apr 28, 2008
  13. Apr 11, 2008
  14. Aug 31, 2007
    • David Brownell's avatar
      SPI driver hotplug/coldplug fixes · fc3ba952
      David Brownell authored
      
      Update various SPI drivers so they properly support
      
        - coldplug through "modprobe $(cat /sys/devices/.../modalias)"
      
        - hotplug through "modprobe $(MODALIAS)"
      
      The basic rule for platform, SPI, and (new style) I2C drivers is just
      to make sure that modprobing the driver name works.  In this case, all
      the relevant drivers are platform drivers, and this patch either
      
        (a)	Changes the driver name, if no in-tree code would break;
      	this is simpler and thus preferable in the long term.
      
        (b)	Adds MODULE_ALIAS directives, when in-tree platforms declare
      	devices using the current driver name; less desirable.
      
      Most systems will link SPI controller drivers statically, but
      there's no point in being needlessly broken.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Cc: Jean Delvare <khali@linux-fr.org>
      Acked-by: default avatarAndrei Konovalov <akonovalov@ru.mvista.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      fc3ba952
  15. Jul 17, 2007
Loading