Permalink
Commits on May 31, 2012
  1. i2c-bcm2708: clean up IRQ handler a little

    bootc committed May 31, 2012
    Signed-off-by: Chris Boot <bootc@bootc.net>
  2. i2c-bcm2708: fix buffer overruns

    bootc committed May 31, 2012
    The driver assumed the hardware wouldn't fill the FIFO with more data
    than it was told to process. In the same vein it wrote as much data as
    it could until the FIFO was full. Now we check the read/write position
    against the message length to make sure we don't read/write too much.
    
    Signed-off-by: Chris Boot <bootc@bootc.net>
Commits on May 25, 2012
  1. i2c-bcm2708: replace the waitqueue with a struct completion

    bootc committed May 25, 2012
    Signed-off-by: Chris Boot <bootc@bootc.net>
  2. spi-bcm2708: replace the waitqueue with a struct completion

    bootc committed May 25, 2012
    Signed-off-by: Chris Boot <bootc@bootc.net>
  3. mmc: avoid multiblock reads for the last sector in SPI mode

    bootc committed May 25, 2012
    I was trying to get a Micro-SD card working over SPI today when I ran
    into an issue which made the card unusable. The card was probed
    correctly, and the msdos partition table was read, but then some command
    was sent that made the card go into a bad state and stay that way. Only
    a re-probe would get the card unstuck and only until just after the
    partition tables were read.
    
    After some digging I ran into a post [1] on the spi-devel-general mailing
    list where someone had exactly the same issue as me, but back in 2007.
    There was a patch attached which, after some cleanup, fixes the issue
    completely for me.
    
    I have tried this with 3 different Micro-SD cards, all of which suffered
    from the problem before the patch and none of which fail after the
    patch.
    
    The error shows up as lots of:
    mmcblk0: error -38 sending status comand, retrying
    mmcblk0: error -38 sending status comand, retrying
    mmcblk0: error -38 sending status comand, aborting
    
       1 : http://permalink.gmane.org/gmane.linux.kernel.spi.devel/516
    
    Signed-off-by: Chris Boot <bootc@bootc.net>
Commits on May 21, 2012
  1. i2c-bcm2708: clean up; enable BSC1

    bootc committed May 19, 2012
    Signed-off-by: Chris Boot <bootc@bootc.net>
  2. i2c-bcm2708: fix stupid mistake

    bootc committed May 19, 2012
    This makes it actually work.
    
    Signed-off-by: Chris Boot <bootc@bootc.net>
  3. i2c-bcm2708: BCM2708 I2C driver

    bootc committed May 19, 2012
    Signed-off-by: Chris Boot <bootc@bootc.net>
  4. spi-bcm2708: implement interrupt mode

    bootc committed May 19, 2012
    This reduces CPU usage by the SPI driver to a very small amount for most
    things. Previously this used a busy loop, so the CPU was pegged at 100%
    while transfers were occurring.
    
    Signed-off-by: Chris Boot <bootc@bootc.net>
  5. spi-bcm2708: Put the pins in the right mode ourselves

    bootc committed May 19, 2012
    I keep forgetting to run the pin mode helper program, resulting in
    endless confusion and annoyance. Until pinmux arrives, let's do it
    ourselves in this hacky way. It'll do for now.
    
    Signed-off-by: Chris Boot <bootc@bootc.net>
  6. spi-bcm2708: don't release chipsel when not asked to

    bootc committed May 17, 2012
    We currently assert the appropriate CS line and tear it down again after
    each transfer. What we really want to do is keep the CS line active for
    all transfers unless we are specifically asked to deassert with struct
    spi_transfer->cs_change, or we finish the last transfer in a message.
    
    Signed-off-by: Chris Boot <bootc@bootc.net>
  7. spi-bcm2708: replace u8 with bool

    bootc committed May 17, 2012
    Signed-off-by: Chris Boot <bootc@bootc.net>
  8. spi-bcm2708: Remove unused variable

    bootc committed May 14, 2012
    Signed-off-by: Chris Boot <bootc@boot.net>
  9. spi-bcm2708: rename from bcm27xx

    bootc committed May 14, 2012
    This patch also changes the driver/module name to bcm2708_spi (swapping
    the hyphen for an underscore).
    
    Signed-off-by: Chris Boot <bootc@bootc.net>
  10. spi-bcm27xx: use roundup_pow_of_two() instead of rolling our own

    bootc committed May 14, 2012
    Signed-off-by: Chris Boot <bootc@bootc.net>
  11. spi-bcm27xx: SPI driver for bcm27xx

    bootc committed May 12, 2012
    This is a basic version of an SPI driver for the BCM27xx platform
    including BCM2708 as used in the Raspberry Pi.
    
    You'll need to flip the pins into ALT0 mode before you use this driver,
    as they are set to a different mode at boot. You can get a tool to do
    this at:
    http://gromit.cs.man.ac.uk/RaspberryPi/switchPinCtrl.c
    
    Thanks to csoutreach / A Robinson for his driver which I used as an
    inspiration. You can find his version here:
    
    http://piface.openlx.org.uk/raspberry-pi-spi-kernel-driver-available-for
    
    IRQ mode is coming next.
    
    Signed-off-by: Chris Boot <bootc@bootc.net>
  12. sdcard patch improvements from naren

    popcornmix authored and bootc committed May 17, 2012
  13. Add __VCCOREVER__ to makefile

    popcornmix authored and bootc committed May 16, 2012
  14. Fix for bug in mbox_read. Thanks lp0

    popcornmix authored and bootc committed May 16, 2012
  15. bcm2708: update for 3.2 kernel

    bootc committed May 8, 2012
    Signed-off-by: Chris Boot <bootc@bootc.net>
  16. sound/arm/bcm2835.c: add linux/module.h include

    bootc committed May 8, 2012
    Signed-off-by: Chris Boot <bootc@bootc.net>
  17. net: usb: smsc95xx: fix mtu

    fillods authored and bootc committed Apr 20, 2012
    Make smsc95xx recalculate the hard_mtu after adjusting the
    hard_header_len.
    
    Without this, usbnet adjusts the MTU down to 1488 bytes, and the host is
    unable to receive standard 1500-byte frames from the device.
    
    Inspired by same fix on cdc_eem 78fb72f.
    
    Tested on ARM/Beagle.
    
    Signed-off-by: Stephane Fillod <fillods@users.sf.net>
    Signed-off-by: David S. Miller <davem@davemloft.net>
  18. mach-bcm2708: fix mach/debug-macro.S so that early printk works

    bootc committed May 7, 2012
    Not sure what the original code was trying to do as it was completely
    wrong on many levels. This patch fixes the macro to return the correct
    physical and virtual addresses of the PL011 UART on the RPi.
    
    Note that you need to boot the compressed kernel (zImage) so that the
    UART is configured at boot, or your kernel will hang when it tries to
    access the UART.
    
    Signed-off-by: Chris Boot <bootc@bootc.net>
  19. mach-bcm2708: Fix UART code in mach/uncompress.h

    bootc committed May 7, 2012
    The UART code was completely broken and caused the RPi to hang at boot
    when trying to decompress the kernel. This patch also adds code to set
    up the UART at 115200 baud, which is the default speed for the console
    later on in the boot process, as it is not set up by the bootloader.
    
    Signed-off-by: Chris Boot <bootc@bootc.net>
  20. mach-bcm2708: Move AMBA clock constant to mach/platform.h

    bootc committed May 7, 2012
    We'll be using this in future patches for setting up the UART early.
    
    Signed-off-by: Chris Boot <bootc@bootc.net>
  21. Remove some patch backup files

    bootc committed May 7, 2012
    Signed-off-by: Chris Boot <bootc@bootc.net>
  22. arm: remove divdi3, it's not necessary at all

    bootc committed May 7, 2012
    This was added for the DWC OTG driver in commit d5ef856. As we've
    removed the dead code from that driver that depends on this, it is no
    longer required at all.
    
    Signed-off-by: Chris Boot <bootc@bootc.net>
  23. dwc_otg: Use atomic memory allocations where necessary

    bootc committed May 7, 2012
    With CONFIG_DEBUG_ATOMIC_SLEEP enabled the USB code complains about 2
    callsites of kmalloc without GFP_ATOMIC. Fix this.
    
    Signed-off-by: Chris Boot <bootc@bootc.net>
  24. dwc_{common_port,otg}: remove documentation from the source tree

    bootc committed May 7, 2012
    There is lots of doxygen-generated bundled source documentation in the
    tree. As this is in the source code, remove this redundant copy.
    
    Singed-off-by: Chris Boot <bootc@bootc.net>