1. 08 12月, 2010 1 次提交
    • V
      ARM: S3C24XX: Fix mess with gpio {set,get}_pull callbacks · 812c4e40
      Vasily Khoruzhick 提交于
      Currently the {set,get}_pull callbacks of the s3c24xx_gpiocfg_default structure
      are initalized via s3c_gpio_{get,set}pull_1up. This results in a linker
      error when only CONFIG_CPU_S3C2442 is selected:
      
      arch/arm/plat-s3c24xx/built-in.o:(.data+0x13f4): undefined reference to
      `s3c_gpio_getpull_1up'
      arch/arm/plat-s3c24xx/built-in.o:(.data+0x13f8): undefined reference to
      `s3c_gpio_setpull_1up'
      
      The s3c2442 has pulldowns instead of pullups compared to the s3c2440.
      The method of controlling them is the same though.
      So this patch modifies the existing s3c_gpio_{get,set}pull_1up helper functions
      to take an additional parameter deciding whether the pin has a pullup or pulldown.
      The s3c_gpio_{get,set}pull_1{down,up} functions then wrap that functions passing
      either S3C_GPIO_PULL_UP or S3C_GPIO_PULL_DOWN.
      
      Furthermore this patch sets up the s3c24xx_gpiocfg_default.{get,set}_pull fields
      in the s3c244{0,2}_map_io function to the new pulldown helper functions.
      
      Based on patch from "Lars-Peter Clausen" <lars@metafoo.de>
      Signed-off-by: NVasily Khoruzhick <anarsoul@gmail.com>
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      812c4e40
  2. 04 12月, 2010 1 次提交
    • B
      ARM: mini2440: Fix Kconfig to allow kernel to build · 2e18edf7
      Ben Dooks 提交于
      The MACH_MINI2440 entry requires the backlight LED driver, but this
      subsystem has not been enabled and the select of LEDS_TRIGGER_BACKLIGHT
      alone is insufficient to enable the necessary bits of the LED driver.
      
      Add NEW_LEDS, LEDS_CLASS and LEDS_TRIGGER to the select to allow the
      kernel to link.
      
      This fixes the following error:
      
      drivers/built-in.o: In function `led_trigger_set':
      /home/ben/linux.git/drivers/leds/led-triggers.c:116: undefined reference to `led_brightness_set'
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      2e18edf7
  3. 30 11月, 2010 4 次提交
  4. 26 11月, 2010 2 次提交
  5. 25 11月, 2010 18 次提交
  6. 24 11月, 2010 8 次提交
  7. 23 11月, 2010 2 次提交
    • P
      mmc: sdhci: 8-bit bus width changes · 15ec4461
      Philip Rakity 提交于
      We now:
       * check for a v3 controller before setting 8-bit bus width
       * offer a callback for platform code to switch to 8-bit mode, which
         allows non-v3 controllers to support it
       * rely on mmc->caps |= MMC_CAP_8_BIT_DATA; in platform code to specify
         that the board designers have indeed brought out all the pins for
         8-bit to the slot.
      
      We were previously relying only on whether the *controller* supported
      8-bit, which doesn't tell us anything about the pin configuration in
      the board design.
      
      This fixes the MMC card regression reported by Maxim Levitsky here:
         http://thread.gmane.org/gmane.linux.kernel.mmc/4336
      by no longer assuming that 8-bit works by default.
      Signed-off-by: NPhilip Rakity <prakity@marvell.com>
      Tested-by: NGiuseppe Cavallaro <peppe.cavallaro@st.com>
      Signed-off-by: NChris Ball <cjb@laptop.org>
      15ec4461
    • K
      xen: set IO permission early (before early_cpu_init()) · ec35a69c
      Konrad Rzeszutek Wilk 提交于
      This patch is based off "xen dom0: Set up basic IO permissions for dom0."
      by Juan Quintela <quintela@redhat.com>.
      
      On AMD machines when we boot the kernel as Domain 0 we get this nasty:
      
      mapping kernel into physical memory
      Xen: setup ISA identity maps
      about to get started...
      (XEN) traps.c:475:d0 Unhandled general protection fault fault/trap [#13] on VCPU 0 [ec=0000]
      (XEN) domain_crash_sync called from entry.S
      (XEN) Domain 0 (vcpu#0) crashed on cpu#0:
      (XEN) ----[ Xen-4.1-101116  x86_64  debug=y  Not tainted ]----
      (XEN) CPU:    0
      (XEN) RIP:    e033:[<ffffffff8130271b>]
      (XEN) RFLAGS: 0000000000000282   EM: 1   CONTEXT: pv guest
      (XEN) rax: 000000008000c068   rbx: ffffffff8186c680   rcx: 0000000000000068
      (XEN) rdx: 0000000000000cf8   rsi: 000000000000c000   rdi: 0000000000000000
      (XEN) rbp: ffffffff81801e98   rsp: ffffffff81801e50   r8:  ffffffff81801eac
      (XEN) r9:  ffffffff81801ea8   r10: ffffffff81801eb4   r11: 00000000ffffffff
      (XEN) r12: ffffffff8186c694   r13: ffffffff81801f90   r14: ffffffffffffffff
      (XEN) r15: 0000000000000000   cr0: 000000008005003b   cr4: 00000000000006f0
      (XEN) cr3: 0000000221803000   cr2: 0000000000000000
      (XEN) ds: 0000   es: 0000   fs: 0000   gs: 0000   ss: e02b   cs: e033
      (XEN) Guest stack trace from rsp=ffffffff81801e50:
      
      RIP points to read_pci_config() function.
      
      The issue is that we don't set IO permissions for the Linux kernel early enough.
      
      The call sequence used to be:
      
          xen_start_kernel()
      	x86_init.oem.arch_setup = xen_setup_arch;
              setup_arch:
                 - early_cpu_init
                     - early_init_amd
                        - read_pci_config
                 - x86_init.oem.arch_setup [ xen_arch_setup ]
                     - set IO permissions.
      
      We need to set the IO permissions earlier on, which this patch does.
      Acked-by: NJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      ec35a69c
  8. 22 11月, 2010 4 次提交