1. 24 12月, 2010 4 次提交
    • M
      spi/fsl_espi: fix wrong setting of the address in the command buffer · 0dd2c96f
      Mingkai Hu 提交于
      Or else we can't operate on the right address when the trans length
      is greater than 65535.
      Signed-off-by: NMingkai Hu <Mingkai.hu@freescale.com>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      0dd2c96f
    • M
      spi/fsl_espi: change the read behaviour of the SPIRF · e6289d63
      Mingkai Hu 提交于
      The user must read N bytes of SPIRF (1 <= N <= 4) that do not exceed the
      amount of data in the receive FIFO, so read the SPIRF byte by byte when
      the data in receive FIFO is less than 4 bytes.
      
      On Simics, when read N bytes that exceed the amount of data in receive
      FIFO, we can't read the data out, that is we can't clear the rx FIFO,
      then the CPU will loop on the espi rx interrupt.
      Signed-off-by: NMingkai Hu <Mingkai.hu@freescale.com>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      e6289d63
    • D
      of/i2c: Fix request module by alias · 02086264
      David Daney 提交于
      If we are registering an i2c device that has a device tree node like
      this real-world example:
      
            rtc@68 {
              compatible = "dallas,ds1337";
              reg = <0x68>;
            };
      
      of_i2c_register_devices() will try to load a module called ds1337.ko.
      There is no such module, so it will fail.  If we look in modules.alias
      we will find entries like these:
      
      .
      .
      .
      alias i2c:ds1339 rtc_ds1307
      alias i2c:ds1338 rtc_ds1307
      alias i2c:ds1337 rtc_ds1307
      alias i2c:ds1307 rtc_ds1307
      alias i2c:ds1374 rtc_ds1374
      .
      .
      .
      
      The module we want is really called rtc_ds1307.ko.  If we request a
      module called "i2c:ds1337", the userspace module loader will do the
      right thing (unless it is busybox) and load rtc_ds1307.ko.  So we add
      the I2C_MODULE_PREFIX to the request_module() string.
      Signed-off-by: NDavid Daney <ddaney@caviumnetworks.com>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      02086264
    • W
      powerpc/mpc5200: include fs.h in mpc52xx_gpt.c · 5e2f55c6
      Wolfram Sang 提交于
      Fix build errors like these (from a randconfig and my defconfig for a custom board):
      
      src/arch/powerpc/platforms/52xx/mpc52xx_gpt.c:549: error: dereferencing pointer to incomplete type: 1 errors in 1 logs
      src/arch/powerpc/platforms/52xx/mpc52xx_gpt.c:636: error: implicit declaration of function 'nonseekable_open': 1 errors in 1 logs
      src/arch/powerpc/platforms/52xx/mpc52xx_gpt.c:657: error: variable 'mpc52xx_wdt_fops' has initializer but incomplete type: 1 errors in 1 logs
      src/arch/powerpc/platforms/52xx/mpc52xx_gpt.c:658: error: excess elements in struct initializer: 1 errors in 1 logs
      src/arch/powerpc/platforms/52xx/mpc52xx_gpt.c:658: error: unknown field 'owner' specified in initializer: 1 errors in 1 logs
      ...
      Reported-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      5e2f55c6
  2. 22 12月, 2010 1 次提交
  3. 21 12月, 2010 13 次提交
  4. 20 12月, 2010 3 次提交
  5. 19 12月, 2010 3 次提交
  6. 18 12月, 2010 16 次提交