24 Sep, 2011

1 commit

  • If CPM mode is not used, the fsl_dummy_rx variable is never allocated. When
    the cleanup attempts to free it, the reference count is zero and a WARN is
    generated. The same CPM mode check used in the initialize is applied to the
    free as well.

    Tested on 2.6.33 with the previous spi_mpc8xxx driver. The renamed
    spi-fsl-spi driver looks to have the same problem.

    Signed-off-by: Jeff Harris
    Signed-off-by: Grant Likely

    Jeff Harris
     

06 Jul, 2011

1 commit

  • This patch fixes the freescale spi driver for CPM. Without this
    patch SPI on CPM failed because cpm_muram_alloc_fixed tries to
    allocate muram in an preserved area. The error reported was:

    mpc8xxx_spi f0011a80.spi: can't allocate spi parameter ram
    mpc8xxx_spi: probe of f0011a80.spi failed with error -12

    Now the driver uses of_iomap to get access to this area
    similar to i2c driver driver in the i2c-cpm.c which has a
    similar device tree node. This is tested on a MPC8247 with CPM2.

    Signed-off-by: Holger Brunck
    Signed-off-by: Grant Likely

    Holger Brunck
     

06 Jun, 2011

1 commit

  • Sort the SPI makefile and enforce the naming convention spi_*.c for
    spi drivers.

    This change also rolls the contents of atmel_spi.h into the .c file
    since there is only one user of that particular include file.

    v2: - Use 'spi-' prefix instead of 'spi_' to match what seems to be
    be the predominant pattern for subsystem prefixes.
    - Clean up filenames in Kconfig and header comment blocks

    Signed-off-by: Grant Likely
    Acked-by: Wolfram Sang
    Acked-by: Linus Walleij

    Grant Likely