1. 30 11月, 2009 4 次提交
  2. 19 2月, 2009 1 次提交
    • H
      drivers/net/sfc: fix sparse warnings: Should it be static? · ff2ef902
      Hannes Eder 提交于
      Impact: Include the header file.  If CONFIG_SFC_MTD is not defined
      then the functions 'efx_mtd_remove' and 'efx_mtd_rename' are defined
      'static inline' with an empty function body in the header file, but
      the the whole file mtd.c is not built in this case.
      
      Fix this sparse warnings:
        drivers/net/sfc/mtd.c:204:6: warning: symbol 'efx_mtd_remove' was not declared. Should it be static?
        drivers/net/sfc/mtd.c:221:6: warning: symbol 'efx_mtd_rename' was not declared. Should it be static?
        drivers/net/sfc/mtd.c:230:5: warning: symbol 'efx_mtd_probe' was not declared. Should it be static?
      Signed-off-by: NHannes Eder <hannes@hanneseder.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ff2ef902
  3. 13 12月, 2008 1 次提交
    • B
      sfc: Clean up waits for flash/EEPROM operations · be4ea89c
      Ben Hutchings 提交于
      Make falcon_spi_wait() ignore the write timer - it is only relevant to
      write commands, it only works for the device that contains VPD, and it
      might not be initialised properly at all.
      
      Rename falcon_spi_fast_wait() to falcon_spi_wait_write(), reflecting
      its use, and make it wait up to 10 ms (not 1 ms) since buffered writes
      to EEPROM may take this long to complete.
      
      Make both wait functions sleep instead of busy-waiting.
      
      Replace wait for command completion at top of falcon_spi_cmd() with a
      single poll; no command should be running when the function starts.
      
      Correct some comments.
      Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      be4ea89c
  4. 06 11月, 2008 1 次提交