1. 27 Jan, 2012 4 commits
  2. 26 Jan, 2012 3 commits
    • Grazvydas Ignotas's avatar
      ARM: OMAP: fix erroneous mmc2 clock change on mmc3 setup · ffa1e4ed
      Grazvydas Ignotas authored
      hsmmc23_before_set_reg() can set MMCSDIO2ADPCLKISEL bit, which
      enables internal clock for MMC2. Currently this function is also called
      by code handling MMC3, and if .internal_clock is set in platform data
      (by default it currently is), it will set MMCSDIO2ADPCLKISEL for MMC2
      instead of MMC3 (MMC3 doesn't have such bit so nothing actually needs to
      be done). This breaks 2nd SD slot on pandora.
      
      Fix this by changing hsmmc23_before_set_reg() to only handle MMC2.
      Note that this removes .remux() call for MMC3, but no board currently
      needs it and it's also not called for MMC4 and MMC5.
      Signed-off-by: default avatarGrazvydas Ignotas <notasas@gmail.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      ffa1e4ed
    • Yegor Yefremov's avatar
      ARM: OMAP2+: GPMC: fix device size setup · 8ef5d844
      Yegor Yefremov authored
      following statement can only change device size from 8-bit(0) to 16-bit(1),
      but not vice versa:
      
      regval |= GPMC_CONFIG1_DEVICESIZE(wval);
      
      so as this field has 1 reserved bit, that could be used in future,
      just clear both bits and then OR with the desired value
      Signed-off-by: default avatarYegor Yefremov <yegorslists@googlemail.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      8ef5d844
    • Vaibhav Hiremath's avatar
      ARM: OMAP2+: timer: Fix crash due to wrong arg to __omap_dm_timer_read_counter · dbc3982a
      Vaibhav Hiremath authored
      Commit 2f0778af (ARM: 7205/2: sched_clock: allow sched_clock to be
      selected at runtime) had a typo for the case when CONFIG_OMAP_32K_TIMER
      is not set.
      
      In dmtimer_read_sched_clock(), wrong argument was getting passed to
      __omap_dm_timer_read_counter() function call; instead of "&clksrc",
      we were passing "clksrc.io_base", which results into kernel crash.
      
      To reproduce kernel crash, just disable the CONFIG_OMAP_32K_TIMER config
      option (and DEBUG_LL) and build/boot the kernel.
      This will use dmtimer as a kernel clocksource and lead to kernel
      crash during boot  -
      
      [    0.000000] OMAP clocksource: GPTIMER2 at 26000000 Hz
      [    0.000000] sched_clock: 32 bits at 26MHz, resolution 38ns, wraps every
      165191ms
      [    0.000000] Unable to handle kernel paging request at virtual address
      00030ef1
      [    0.000000] pgd = c0004000
      [    0.000000] [00030ef1] *pgd=00000000
      [    0.000000] Internal error: Oops: 5 [#1] SMP
      [    0.000000] Modules linked in:
      [    0.000000] CPU: 0    Not tainted  (3.3.0-rc1-11574-g0c76665-dirty #3)
      [    0.000000] PC is at dmtimer_read_sched_clock+0x18/0x4c
      [    0.000000] LR is at update_sched_clock+0x10/0x84
      [    0.000000] pc : [<c00243b8>]    lr : [<c0018684>]    psr: 200001d3
      [    0.000000] sp : c0641f38  ip : c0641e18  fp : 0000000a
      [    0.000000] r10: 151c3303  r9 : 00000026  r8 : 76276259
      [    0.000000] r7 : 00028547  r6 : c065ac80  r5 : 431bde82  r4 : c0655968
      [    0.000000] r3 : 00030ef1  r2 : fb032000  r1 : 00000028  r0 : 00000001
      Signed-off-by: default avatarVaibhav Hiremath <hvaibhav@ti.com>
      [tony@atomide.com: updated comments]
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      dbc3982a
  3. 25 Jan, 2012 6 commits
    • Ilya Yanok's avatar
      ARM: OMAP3: hwmod data: register dss hwmods after dss_core · 1d2f56c8
      Ilya Yanok authored
      dss_core has to be initialized before any other DSS hwmod. Currently
      this is broken as dss_core is listed in chip/revision specific hwmod
      lists while other DSS hwmods are listed in common list which is
      registered first.
      
      This patch moves DSS hwmods (except for dss_core) to the separate list
      which is registered last to ensure that dss_core is already registered.
      
      This solves the problem with BUG() in L3 interrupt handler on boards
      with DSS enabled in bootloader.
      
      The long-term fix to this is to ensure modules are set up in dependency
      order in the hwmod core code.
      
      CC: Tomi Valkeinen <tomi.valkeinen@ti.com>
      CC: Archit Taneja <archit@ti.com>
      CC: Paul Walmsley <paul@pwsan.com>
      Signed-off-by: default avatarIlya Yanok <yanok@emcraft.com>
      [paul@pwsan.com: add notes that this is just a temporary workaround until
       hwmod dependencies are added]
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      1d2f56c8
    • Paul Walmsley's avatar
      ARM: OMAP2/3: PRM: fix missing plat/irqs.h build breakage · d19e8f2e
      Paul Walmsley authored
      Commit 22f51371 ("ARM: OMAP3: pm: use
      prcm chain handler") breaks the build on a 2420-only config, due to
      a missing include for plat/irqs.h:
      
        CC      arch/arm/mach-omap2/prm2xxx_3xxx.o
      arch/arm/mach-omap2/prm2xxx_3xxx.c:41:11: error: 'INT_34XX_PRCM_MPU_IRQ' undeclared here (not in a function)
      
      Fix by explicitly including it.
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      Cc: Tero Kristo <t-kristo@ti.com>
      Cc: Kevin Hilman <khilman@ti.com>
      d19e8f2e
    • Paul Walmsley's avatar
      ARM: OMAP2+: io: fix compilation breakage on 2420-only configs · 16110798
      Paul Walmsley authored
      Commit 7b250aff ("ARM: OMAP: Avoid
      cpu_is_omapxxxx usage until map_io is done") breaks the build on a
      2420-only config on v3.3-rc1:
      
      arch/arm/mach-omap2/built-in.o: In function `omap2430_init_early':
      arch/arm/mach-omap2/io.c:406: undefined reference to `omap2_set_globals_243x'
      arch/arm/mach-omap2/io.c:410: undefined reference to `omap243x_clockdomains_init'
      arch/arm/mach-omap2/io.c:411: undefined reference to `omap2430_hwmod_init'
      
      Fix by only compiling omap2420_init_early() when CONFIG_SOC_OMAP2420
      is selected, and only compiling omap2430_init_early() when
      CONFIG_SOC_OMAP2430 is selected.
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      Cc: Tony Lindgren <tony@atomide.com>
      16110798
    • Peter Ujfalusi's avatar
      ARM: OMAP4: hwmod data: Add names for DMIC memory address space · 6af486e2
      Peter Ujfalusi authored
      To be able to get the memory resources by name from
      the DMIC driver (for MPU and for DMA).
      
      Without this patch, functionality that was working in 3.2 breaks in
      3.3-rc1.  This patch should have gone in as part of the 3.3 merge
      window, but was inadvertently missed.
      Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
      [paul@pwsan.com: added commit message note]
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      6af486e2
    • Tomi Valkeinen's avatar
      ARM: OMAP3: hwmod data: add SYSC_HAS_ENAWAKEUP for dispc · b0a85faf
      Tomi Valkeinen authored
      dispc's sysc_flags is missing SYSC_HAS_ENAWAKEUP flag. This seems to
      cause SYNC_LOST errors from the DSS when the power management is
      enabled.
      
      This patch adds the missing SYSC_HAS_ENAWAKEUP flag. Note that there are
      other flags missing also (clock activity, DSI's sysc flags), but as they
      are not critical, they will be fixed in the next merge window.
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      b0a85faf
    • Tomi Valkeinen's avatar
      ARM: OMAP2+: hwmod data: split omap2/3 dispc hwmod class · 1ac6d46e
      Tomi Valkeinen authored
      Currently OMAP2 and 3 share the same omap_hwmod_class and
      omap_hwmod_class_sysconfig for dispc. However, OMAP3 has sysconfig
      bits that OMAP2 doesn't have, so we need to split those structs into
      OMAP2 and OMAP3 specific versions.
      
      This patch only splits the structs, without changing the contents.
      This is a prerequisite for a subsequent fix.
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      [paul@pwsan.com: added commit note]
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      
      1ac6d46e
  4. 20 Jan, 2012 3 commits
    • Felipe Contreras's avatar
      ARM: OMAP2: fix regulator warnings · a075ccc6
      Felipe Contreras authored
      warning: (MACH_OMAP_ZOOM2 && MACH_OMAP_ZOOM3 && MACH_OMAP_4430SDP &&
      MACH_OMAP4_PANDA && TPS6105X) selects REGULATOR_FIXED_VOLTAGE
      which has unmet direct dependencies (REGULATOR)
      Signed-off-by: default avatarFelipe Contreras <felipe.contreras@gmail.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      a075ccc6
    • Felipe Contreras's avatar
      ARM: OMAP2: fix omap3 touchbook kconfig warning · 7080727c
      Felipe Contreras authored
      warning: (MACH_OMAP3_TOUCHBOOK && DRM_RADEON_KMS && DRM_I915 &&
      STUB_POULSBO && FB_BACKLIGHT && USB_APPLEDISPLAY && FB_OLPC_DCON &&
      ASUS_LAPTOP && SONY_LAPTOP && THINKPAD_ACPI && EEEPC_LAPTOP &&
      ACPI_ASUS && ACPI_CMPC && SAMSUNG_Q10) selects BACKLIGHT_CLASS_DEVICE
      which has unmet direct dependencies (HAS_IOMEM && BACKLIGHT_LCD_SUPPORT)
      
      A lot of boards need BACKLIGHT_CLASS_DEVICE for the framebuffers to
      work, but it's not *needed* for the device itself. It might be nice to
      enable it by default somewhoe if graphics stuff is enabled, but that's
      another story.
      Signed-off-by: default avatarFelipe Contreras <felipe.contreras@gmail.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      7080727c
    • Cousson, Benoit's avatar
      i2c: OMAP: Fix OMAP1 build error · 6c5aa407
      Cousson, Benoit authored
      CONFIG_OF is not defined for OMAP1 yet and thus the omap1_defconfig build
      generate an error for 3.3-rc1.
      
      drivers/i2c/busses/i2c-omap.c: In function 'omap_i2c_probe':
      drivers/i2c/busses/i2c-omap.c:1021:26: error: 'omap_i2c_of_match' undeclared (first use in this function)
      drivers/i2c/busses/i2c-omap.c:1021:26: note: each undeclared identifier is reported only once for each function it appears in
      
      Wrap omap_i2c_of_match with of_match_ptr() to prevent compilation error in case of OMAP1 build.
      Signed-off-by: default avatarBenoit Cousson <b-cousson@ti.com>
      Cc: Ben Dooks <ben-linux@fluff.org>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      6c5aa407
  5. 19 Jan, 2012 16 commits
  6. 18 Jan, 2012 8 commits
    • Linus Torvalds's avatar
      Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending · 4ba3069f
      Linus Torvalds authored
      * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending: (26 commits)
        target: Set additional sense length field in sense data
        target: Remove legacy device status check from transport_execute_tasks
        target: Remove __transport_execute_tasks() for each processing context
        target: Remove extra se_device->execute_task_lock access in fast path
        target: Drop se_device TCQ queue_depth usage from I/O path
        target: Fix possible NULL pointer with __transport_execute_tasks
        target: Remove TFO->check_release_cmd() fabric API caller
        tcm_fc: Convert ft_send_work to use target_submit_cmd
        target: Add target_submit_cmd() for process context fabric submission
        target: Make target_put_sess_cmd use target_release_cmd_kref
        target: Set response format in INQUIRY response
        target: tcm_mod_builder: small fixups
        Documentation/target: Fix tcm_mod_builder.py build breakage
        target: remove overagressive ____cacheline_aligned annoations
        tcm_loop: bump max_sectors
        target/configs: remove trailing newline from udev_path and alias
        iscsi-target: fix chap identifier simple_strtoul usage
        target: remove useless casts
        target: simplify target_check_cdb_and_preempt
        target: Move core_scsi3_check_cdb_abort_and_preempt
        ...
      4ba3069f
    • Linus Torvalds's avatar
      Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux · 507a03c1
      Linus Torvalds authored
      This includes initial support for the recently published ACPI 5.0 spec.
      In particular, support for the "hardware-reduced" bit that eliminates
      the dependency on legacy hardware.
      
      APEI has patches resulting from testing on real hardware.
      
      Plus other random fixes.
      
      * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux: (52 commits)
        acpi/apei/einj: Add extensions to EINJ from rev 5.0 of acpi spec
        intel_idle: Split up and provide per CPU initialization func
        ACPI processor: Remove unneeded variable passed by acpi_processor_hotadd_init V2
        ACPI processor: Remove unneeded cpuidle_unregister_driver call
        intel idle: Make idle driver more robust
        intel_idle: Fix a cast to pointer from integer of different size warning in intel_idle
        ACPI: kernel-parameters.txt : Add intel_idle.max_cstate
        intel_idle: remove redundant local_irq_disable() call
        ACPI processor: Fix error path, also remove sysdev link
        ACPI: processor: fix acpi_get_cpuid for UP processor
        intel_idle: fix API misuse
        ACPI APEI: Convert atomicio routines
        ACPI: Export interfaces for ioremapping/iounmapping ACPI registers
        ACPI: Fix possible alignment issues with GAS 'address' references
        ACPI, ia64: Use SRAT table rev to use 8bit or 16/32bit PXM fields (ia64)
        ACPI, x86: Use SRAT table rev to use 8bit or 32bit PXM fields (x86/x86-64)
        ACPI: Store SRAT table revision
        ACPI, APEI, Resolve false conflict between ACPI NVS and APEI
        ACPI, Record ACPI NVS regions
        ACPI, APEI, EINJ, Refine the fix of resource conflict
        ...
      507a03c1
    • Stefan Berger's avatar
      tpm: fix (ACPI S3) suspend regression · be405411
      Stefan Berger authored
      This patch fixes an (ACPI S3) suspend regression introduced in commit
      68d6e671 ("tpm: Introduce function to poll for result of self test")
      and occurring with an Infineon TPM and tpm_tis and tpm_infineon drivers
      active.
      
      The suspend problem occurred if the TPM was disabled and/or deactivated
      and therefore the TPM_PCRRead checking the result of the (asynchronous)
      self test returned an error code which then caused the tpm_tis driver to
      become inactive and this then seemed to have negatively influenced the
      suspend support by the tpm_infineon driver...  Besides that the tpm_tis
      drive may stay active even if the TPM is disabled and/or deactivated.
      Signed-off-by: default avatarStefan Berger <stefanb@linux.vnet.ibm.com>
      Tested-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: default avatarRajiv Andrade <srajiv@linux.vnet.ibm.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      be405411
    • Linus Torvalds's avatar
      nvme: fix merge error due to change of 'make_request_fn' fn type · 93c3d65b
      Linus Torvalds authored
      The type of 'make_request_fn' changed in 5a7bbad2 ("block: remove
      support for bio remapping from ->make_request"), but the merge of the
      nvme driver didn't take that into account, and as a result the driver
      would compile with a warning:
      
        drivers/block/nvme.c: In function 'nvme_alloc_ns':
        drivers/block/nvme.c:1336:2: warning: passing argument 2 of 'blk_queue_make_request' from incompatible pointer type [enabled by default]
        include/linux/blkdev.h:830:13: note: expected 'void (*)(struct request_queue *, struct bio *)' but argument is of type 'int (*)(struct request_queue *, struct bio *)'
      
      It's benign, but the warning is annoying.
      Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org>
      Cc: Matthew Wilcox <matthew.r.wilcox@intel.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      93c3d65b
    • Stephen Rothwell's avatar
      xen: using EXPORT_SYMBOL requires including export.h · 9ef9b20b
      Stephen Rothwell authored
      Fix these warnings:
      
        drivers/xen/biomerge.c:14:1: warning: data definition has no type or storage class [enabled by default]
        drivers/xen/biomerge.c:14:1: warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL' [-Wimplicit-int]
        drivers/xen/biomerge.c:14:1: warning: parameter names (without types) in function declaration [enabled by default]
      
      And this build error:
      
        ERROR: "xen_biovec_phys_mergeable" [drivers/block/nvme.ko] undefined!
      Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      9ef9b20b
    • Linus Torvalds's avatar
      Merge branch 'for-linus/i2c-33' of git://git.fluff.org/bjdooks/linux · aa303f2c
      Linus Torvalds authored
      * 'for-linus/i2c-33' of git://git.fluff.org/bjdooks/linux:
        i2c-eg20t: Change-company-name-OKI-SEMICONDUCTOR to LAPIS Semiconductor
        i2c-eg20t: Support new device LAPIS Semiconductor ML7831 IOH
        i2c-eg20t: modified the setting of transfer rate.
        i2c-eg20t: use i2c_add_numbered_adapter to get a fixed bus number
        i2c: OMAP: Add DT support for i2c controller
        I2C: OMAP: NACK without STP
        I2C: OMAP: correct SYSC register offset for OMAP4
      aa303f2c
    • Linus Torvalds's avatar
      Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media · 4a7c1ff2
      Linus Torvalds authored
      * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (57 commits)
        [media] as3645a: Fix compilation by including slab.h
        [media] s5p-fimc: Remove linux/version.h include from fimc-mdevice.c
        [media] s5p-mfc: Remove linux/version.h include from s5p_mfc.c
        [media] ds3000: using logical && instead of bitwise &
        [media] v4l2-ctrls: make control names consistent
        [media] DVB: dib0700, add support for Nova-TD LEDs
        [media] DVB: dib0700, add corrected Nova-TD frontend_attach
        [media] DVB: dib0700, separate stk7070pd initialization
        [media] DVB: dib0700, move Nova-TD Stick to a separate set
        [media] : add MODULE_FIRMWARE to dib0700
        [media] DVB-CORE: remove superfluous DTV_CMDs
        [media] s5p-jpeg: adapt to recent videobuf2 changes
        [media] s5p-g2d: fixed a bug in controls setting function
        [media] s5p-mfc: Fix volatile controls setup
        [media] drivers/media/video/s5p-mfc/s5p_mfc.c: adjust double test
        [media] drivers/media/video/s5p-fimc/fimc-capture.c: adjust double test
        [media] s5p-fimc: Fix incorrect control ID assignment
        [media] dvb_frontend: Don't call get_frontend() if idle
        [media] DocBook/dvbproperty.xml: Remove DTV_MODULATION from ISDB-T
        [media] DocBook/dvbproperty.xml: Fix ISDB-T delivery system parameters
        ...
      4a7c1ff2
    • Linus Torvalds's avatar
      Merge branch 'fix/asoc' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 9278e634
      Linus Torvalds authored
      * 'fix/asoc' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ASoC: Wait for WM8993 FLL to stabilise
        ASoC: core - Free platform DAPM context at platform removal.
        ASoC: dapm - Fix check for codec context in dapm_power_widgets().
        ASoC: sgtl5000: update author email address
        ASoC: Fix DMA channel leak in imx-pcm-dma-mx2 driver.
      9278e634