1. 15 12月, 2009 2 次提交
    • D
      PCI: Global variable decls must match the defs in section attributes · 491424c0
      David Howells 提交于
      Global variable declarations must match the definitions in section attributes
      as the compiler is at liberty to vary the method it uses to access a variable,
      depending on the section it is in.
      
      When building the FRV arch, I now see:
      
        drivers/built-in.o: In function `pci_apply_final_quirks':
        drivers/pci/quirks.c:2606: relocation truncated to fit: R_FRV_GPREL12 against symbol `pci_dfl_cache_line_size' defined in .devinit.data section in drivers/built-in.o
        drivers/pci/quirks.c:2623: relocation truncated to fit: R_FRV_GPREL12 against symbol `pci_dfl_cache_line_size' defined in .devinit.data section in drivers/built-in.o
        drivers/pci/quirks.c:2630: relocation truncated to fit: R_FRV_GPREL12 against symbol `pci_dfl_cache_line_size' defined in .devinit.data section in drivers/built-in.o
      
      because the declaration of pci_dfl_cache_line_size in linux/pci.h does not
      match the definition in drivers/pci/pci.c.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      491424c0
    • D
      FRV: Fix no-hardware-breakpoint case · 5185fb06
      David Howells 提交于
      If there is no hardware breakpoint support, modify_user_hw_breakpoint()
      tries to return a NULL pointer through as an 'int' return value:
      
        In file included from kernel/exit.c:53:
        include/linux/hw_breakpoint.h: In function 'modify_user_hw_breakpoint':
        include/linux/hw_breakpoint.h:96: warning: return makes integer from pointer without a cast
      
      Return 0 instead.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      5185fb06
  2. 14 12月, 2009 25 次提交
  3. 13 12月, 2009 1 次提交
    • M
      spi: SuperH MSIOF SPI Master driver V2 · 8051effc
      Magnus Damm 提交于
      This patch is V2 of SPI Master support for the SuperH MSIOF.
      Full duplex, spi mode 0-3, active high cs, 3-wire and lsb
      first should all be supported, but the driver has so far
      only been tested with "mmc_spi".
      
      The MSIOF hardware comes with 32-bit FIFOs for receive and
      transmit, and this driver simply breaks the SPI messages
      into FIFO-sized chunks. The MSIOF hardware manages the pins
      for clock, receive and transmit (sck/miso/mosi), but the chip
      select pin is managed by software and must be configured as
      a regular GPIO pin by the board code.
      
      Performance wise there is still room for improvement, but
      on a Ecovec board with the built-in sh7724 MSIOF0 this driver
      gets Mini-sd read speeds of about half a megabyte per second.
      
      Future work include better clock setup and merging of 8-bit
      transfers into 32-bit words to reduce interrupt load and
      improve throughput.
      Signed-off-by: NMagnus Damm <damm@opensource.se>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      8051effc
  4. 12 12月, 2009 12 次提交