19 Jan, 2012

8 commits

  • This patch fixes an (ACPI S3) suspend regression introduced in commit
    68d6e6713fcb ("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: Stefan Berger
    Tested-by: Rafael J. Wysocki
    Acked-by: Rajiv Andrade
    Signed-off-by: Linus Torvalds

    Stefan Berger
     
  • The type of 'make_request_fn' changed in 5a7bbad27a4 ("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: Stephen Rothwell
    Cc: Matthew Wilcox
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • 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: Stephen Rothwell
    Signed-off-by: Linus Torvalds

    Stephen Rothwell
     
  • * '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

    Linus Torvalds
     
  • * '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
    ...

    Linus Torvalds
     
  • * '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.

    Linus Torvalds
     
  • SCSI updates on 20120118

    * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (49 commits)
    [SCSI] libfc: remove redundant timer init for fcp
    [SCSI] fcoe: Move fcoe_debug_logging from fcoe.h to fcoe.c
    [SCSI] libfc: Declare local functions static
    [SCSI] fcoe: fix regression on offload em matching function for initiator/target
    [SCSI] qla4xxx: Update driver version to 5.02.00-k12
    [SCSI] qla4xxx: Cleanup modinfo display
    [SCSI] qla4xxx: Update license
    [SCSI] qla4xxx: Clear the RISC interrupt bit during FW init
    [SCSI] qla4xxx: Added error logging for firmware abort
    [SCSI] qla4xxx: Disable generating pause frames in case of FW hung
    [SCSI] qla4xxx: Temperature monitoring for ISP82XX core.
    [SCSI] megaraid: fix sparse warnings
    [SCSI] sg: convert to kstrtoul_from_user()
    [SCSI] don't change sdev starvation list order without request dispatched
    [SCSI] isci: fix, prevent port from getting stuck in the 'configuring' state
    [SCSI] isci: fix start OOB
    [SCSI] isci: fix io failures while wide port links are coming up
    [SCSI] isci: allow more time for wide port targets
    [SCSI] isci: enable wide port targets
    [SCSI] isci: Fix IO fails when pull cable from phy in x4 wideport in MPC mode.
    ...

    Linus Torvalds
     
  • * git://git.infradead.org/users/willy/linux-nvme: (105 commits)
    NVMe: Set number of queues correctly
    NVMe: Version 0.8
    NVMe: Set queue flags correctly
    NVMe: Simplify nvme_unmap_user_pages
    NVMe: Mark the end of the sg list
    NVMe: Fix DMA mapping for admin commands
    NVMe: Rename IO_TIMEOUT to NVME_IO_TIMEOUT
    NVMe: Merge the nvme_bio and nvme_prp data structures
    NVMe: Change nvme_completion_fn to take a dev
    NVMe: Change get_nvmeq to take a dev instead of a namespace
    NVMe: Simplify completion handling
    NVMe: Update Identify Controller data structure
    NVMe: Implement doorbell stride capability
    NVMe: Version 0.7
    NVMe: Don't probe namespace 0
    Fix calculation of number of pages in a PRP List
    NVMe: Create nvme_identify and nvme_get_features functions
    NVMe: Fix memory leak in nvme_dev_add()
    NVMe: Fix calls to dma_unmap_sg
    NVMe: Correct sg list setup in nvme_map_user_pages
    ...

    Linus Torvalds
     

18 Jan, 2012

32 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (47 commits)
    tg3: Fix single-vector MSI-X code
    openvswitch: Fix multipart datapath dumps.
    ipv6: fix per device IP snmp counters
    inetpeer: initialize ->redirect_genid in inet_getpeer()
    net: fix NULL-deref in WARN() in skb_gso_segment()
    net: WARN if skb_checksum_help() is called on skb requiring segmentation
    caif: Remove bad WARN_ON in caif_dev
    caif: Fix typo in Vendor/Product-ID for CAIF modems
    bnx2x: Disable AN KR work-around for BCM57810
    bnx2x: Remove AutoGrEEEn for BCM84833
    bnx2x: Remove 100Mb force speed for BCM84833
    bnx2x: Fix PFC setting on BCM57840
    bnx2x: Fix Super-Isolate mode for BCM84833
    net: fix some sparse errors
    net: kill duplicate included header
    net: sh-eth: Fix build error by the value which is not defined
    net: Use device model to get driver name in skb_gso_segment()
    bridge: BH already disabled in br_fdb_cleanup()
    net: move sock_update_memcg outside of CONFIG_INET
    mwl8k: Fixing Sparse ENDIAN CHECK warning
    ...

    Linus Torvalds
     
  • Kdump kernels leave MSI-X interrupts (as setup by the crashed kernel)
    enabled. However, kdump only enables one CPU in the new environment,
    thus causing tg3 to abort MSI-X setup. When the driver attempts to
    enable INTA or MSI interrupt modes on a kdump kernel, interrupt
    delivery fails.

    This patch attempts to workaround the problem by forcing the driver
    to enable a single MSI-X interrupt. In such a configuration, the
    device's multivector interrupt mode must be disabled.

    Signed-off-by: Matt Carlson
    Signed-off-by: David S. Miller

    Matt Carlson
     
  • The logic to split up the list of datapaths into multiple Netlink messages
    was simply wrong, causing the list to be terminated after the first part.
    Only about the first 50 datapaths would be dumped. This fixes the
    problem.

    Reported-by: Paul Ingram
    Signed-off-by: Ben Pfaff
    Signed-off-by: Jesse Gross
    Signed-off-by: David S. Miller

    Ben Pfaff
     
  • In commit 4ce3c183fca (snmp: 64bit ipstats_mib for all arches), I forgot
    to change the /proc/net/dev_snmp6/xxx output for IP counters.

    percpu array is 64bit per counter but the folding still used the 'long'
    variant, and output garbage on 32bit arches.

    Signed-off-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Eric Dumazet
     
  • ARM: fixes for ARM platforms

    Some fallout from the 3.3. merge window as well as a couple bug fixes
    for older preexisting bugs that seem valid to include at this time:

    * sched_clock changes broke picoxcell, fix included
    * BSYM bugs causing issues with thumb2-built kernels on SMP
    * Missing module.h include on msm.
    * A collection of bugfixes for samsung platforms that didn't make it into
    the first pull requests.

    * tag 'arm-soc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
    ARM: make BSYM macro assembly only
    ARM: highbank: remove incorrect BSYM usage
    ARM: imx: remove incorrect BSYM usage
    ARM: exynos: remove incorrect BSYM usage
    ARM: ux500: add missing ENDPROC to headsmp.S
    ARM: msm: Add missing ENDPROC to headsmp.S
    ARM: versatile: Add missing ENDPROC to headsmp.S
    ARM: EXYNOS: Invert VCLK polarity for framebuffer on ORIGEN
    ARM: S3C64XX: Fix interrupt configuration for PCA935x on Cragganmore
    ARM: S3C64XX: Fix the memory mapped GPIOs on Cragganmore
    ARM: S3C64XX: Remove hsmmc1 from Cragganmore
    ARM: S3C64XX: Remove unconditional power domain disables
    ARM: SAMSUNG: Declare struct platform_device in plat/s3c64xx-spi.h
    ARM: SAMSUNG: dma-ops.h needs mach/dma.h
    ARM: SAMSUNG: Guard against multiple inclusion of plat/dma.h
    ARM: picoxcell: fix sched_clock() cleanup fallout
    ARM: msm: vreg is a module and so needs module.h

    Linus Torvalds
     
  • * 'next' of git://git.infradead.org/users/vkoul/slave-dma: (53 commits)
    ARM: mach-shmobile: specify CHCLR registers on SH7372
    dma: shdma: fix runtime PM: clear channel buffers on reset
    dma/imx-sdma: save irq flags when use spin_lock in sdma_tx_submit
    dmaengine/ste_dma40: clear LNK on channel startup
    dmaengine: intel_mid_dma: remove legacy pm interface
    ASoC: mxs: correct 'direction' of device_prep_dma_cyclic
    dmaengine: intel_mid_dma: error path fix
    dmaengine: intel_mid_dma: locking and freeing fixes
    mtd: gpmi-nand: move to dma_transfer_direction
    mtd: fix compile error for gpmi-nand
    mmc: mxs-mmc: fix the dma_transfer_direction migration
    dmaengine: add DMA_TRANS_NONE to dma_transfer_direction
    dma: mxs-dma: Don't use CLKGATE bits in CTRL0 to disable DMA channels
    dma: mxs-dma: make mxs_dma_prep_slave_sg() multi user safe
    dma: mxs-dma: Always leave mxs_dma_init() with the clock disabled.
    dma: mxs-dma: fix a typo in comment
    DMA: PL330: Remove pm_runtime_xxx calls from pl330 probe/remove
    video i.MX IPU: Fix display connections
    i.MX IPU DMA: Fix wrong burstsize settings
    dmaengine/ste_dma40: allow fixed physical channel
    ...

    Fix up conflicts in drivers/dma/{Kconfig,mxs-dma.c,pl330.c}

    The conflicts looked pretty trivial, but I'll ask people to verify them.

    Linus Torvalds
     
  • * 'upstream-linus' of git://github.com/jgarzik/libata-dev:
    [libata] ata_piix: Add Toshiba Satellite Pro A120 to the quirks list due to broken suspend functionality.
    [libata] add DVRTD08A and DVR-215 to NOSETXFER device quirk list
    [libata] pata_bf54x: Support sg list in bmdma transfer.
    [libata] sata_fsl: fix the controller operating mode
    [libata] enable ata port async suspend

    Linus Torvalds
     
  • JONGMAN HEO reports:

    With current linus git (commit a25a2b84), I got following build error,

    arch/x86/kernel/vm86_32.c: In function 'do_sys_vm86':
    arch/x86/kernel/vm86_32.c:340: error: implicit declaration of function '__audit_syscall_exit'
    make[3]: *** [arch/x86/kernel/vm86_32.o] Error 1

    OK, I can reproduce it (32bit allmodconfig with AUDIT=y, AUDITSYSCALL=n)

    It's due to commit d7e7528bcd45: "Audit: push audit success and retcode
    into arch ptrace.h".

    Reported-by: JONGMAN HEO
    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • due to broken suspend functionality.

    Signed-off-by: Benjamin Larsson
    Signed-off-by: Jeff Garzik

    Benjamin Larsson
     
  • Signed-off-by: Jeff Garzik

    Vladimir LAVALLADE
     
  • BF54x on-chip ATAPI controller allows maximum 0x1fffe bytes to be transfered
    in one ATAPI transfer. So, set the max sg_tablesize to 4.

    Signed-off-by: Sonic Zhang
    Signed-off-by: Jeff Garzik

    Sonic Zhang
     
  • Configure the FSL SATA controller to the preferred, enterprise mode.

    Signed-off-by: Yutaka Ando
    Signed-off-by: Jerry Huang
    CC: Jeff Garzik
    Signed-off-by: Jeff Garzik

    Jerry Huang
     
  • This saves devices suspend/resume time.

    Tested system suspend/resume with SATA IDE/AHCI mode 3 times.
    Below is the time took for devices suspend/resume.

    SATA mode vanilla-kernel patched-kernel
    --------- --------------------- ---------------------
    IDE suspend: 0.744 suspend: 0.432
    (0.716, 0.768, 0.748) (0.440, 0.428, 0.428)

    resume: 5.084 resume: 2.209
    (5.100, 5.064, 5.088) (2.168, 2.232, 2.228)

    AHCI: suspend: 0.725 suspend: 0.449
    (0.740, 0.708, 0.728) (0.456, 0.448, 0.444)

    resume: 2.556 resume: 1.896
    (2.604, 2.492, 2.572) (1.932, 1.872, 1.884)

    Signed-off-by: Lin Ming
    Signed-off-by: Jeff Garzik

    Lin Ming
     
  • The as3645a driver calls kzalloc(). Include slab.h.

    Reported-by: Fredrik Lingvall
    Signed-off-by: Laurent Pinchart
    Acked-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Laurent Pinchart
     
  • Signed-off-by: Sachin Kamat
    Signed-off-by: Mauro Carvalho Chehab

    Sachin Kamat
     
  • Signed-off-by: Sachin Kamat
    Signed-off-by: Mauro Carvalho Chehab

    Sachin Kamat
     
  • The intent here was to test if the FE_HAS_LOCK was set. The current
    test is equivalent to "if (status) { ..."

    Signed-off-by: Dan Carpenter
    Signed-off-by: Mauro Carvalho Chehab

    Dan Carpenter
     
  • Several control names used inconsistent capitalization or were inconsistent
    in other ways. I also corrected a spelling mistake and fixed four strings
    that were too long (>31 characters). Harmless, but the string is cut off when
    it is returned with QUERYCTRL.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • Add an override of read_status to intercept lock status. This allows
    us to switch LEDs appropriately on and off with signal un/locked.

    The second phase is to override sleep to properly turn off both.

    This is a hackish way to achieve that.

    Thanks to Mike Krufky for his help.

    Signed-off-by: Jiri Slaby
    Acked-by: Michael Krufky
    Signed-off-by: Patrick Boettcher
    Signed-off-by: Mauro Carvalho Chehab

    Jiri Slaby
     
  • This means cut & paste from the former f. attach. But while at it write
    to the right GPIO to turn on the right LED. Also turn the other two
    off jsut for sure.

    Signed-off-by: Jiri Slaby
    Acked-by: Michael Krufky
    Signed-off-by: Patrick Boettcher
    Signed-off-by: Mauro Carvalho Chehab

    Jiri Slaby
     
  • The start is common for both stk7070pd and novatd specific routine.
    This is just a preparation for the next patch.

    Signed-off-by: Jiri Slaby
    Acked-by: Michael Krufky
    Signed-off-by: Patrick Boettcher
    Signed-off-by: Mauro Carvalho Chehab

    Jiri Slaby
     
  • To properly support the three LEDs which are on the stick, we need
    a special handling in the ->frontend_attach function. Thus let's have
    a separate ->frontend_attach instead of ifs in the common one.

    The hadnling itself will be added in further patches.

    Signed-off-by: Jiri Slaby
    Acked-by: Michael Krufky
    Signed-off-by: Patrick Boettcher
    Signed-off-by: Mauro Carvalho Chehab

    Jiri Slaby
     
  • The dib0700 needs a binary firmware file. This patch added the MODULE_FIRMWARE-macro.

    Signed-off-by: Christoph Anton Mitterer
    Signed-off-by: Patrick Boettcher
    Signed-off-by: Mauro Carvalho Chehab

    Patrick Boettcher
     
  • This small patch removes superfluous DTV_CMDs from dvb_frontend.c which were added in the initially when ISBD-T support was added.
    They were there unnoticed even though compilers should have warning about those duplicates. Finally they did and now we can remove them.

    Thanks to Dan Carpenter for pointing that out.

    Signed-off-by: Patrick Boettcher
    Signed-off-by: Mauro Carvalho Chehab

    Patrick Boettcher
     
  • queue_setup callback has been extended with struct v4l2_format *fmt
    parameter in 2d86401c2c commit. This patch adds this parameter to
    s5p-jpeg driver.

    Signed-off-by: Marek Szyprowski
    Signed-off-by: Mauro Carvalho Chehab

    Marek Szyprowski
     
  • Signed-off-by: Kamil Debski
    Signed-off-by: Kyungmin Park
    Signed-off-by: Marek Szyprowski
    Signed-off-by: Mauro Carvalho Chehab

    Kamil Debski
     
  • Signed-off-by: Kamil Debski
    Signed-off-by: Kyungmin Park
    Signed-off-by: Marek Szyprowski
    Signed-off-by: Mauro Carvalho Chehab

    Kamil Debski
     
  • Rewrite a duplicated test to test the correct value

    The semantic match that finds this problem is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @@
    expression E;
    @@

    (
    * E
    || ... || E
    |
    * E
    && ... && E
    )
    //

    Signed-off-by: Julia Lawall
    Acked-by: Kyungmin Park
    Signed-off-by: Marek Szyprowski
    Signed-off-by: Mauro Carvalho Chehab

    Julia Lawall
     
  • Rewrite a duplicated test to test the correct value

    The semantic match that finds this problem is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @@
    expression E;
    @@

    (
    * E
    || ... || E
    |
    * E
    && ... && E
    )
    //

    Signed-off-by: Julia Lawall
    Acked-by: Kyungmin Park
    Signed-off-by: Marek Szyprowski
    Signed-off-by: Mauro Carvalho Chehab

    Julia Lawall
     
  • This patch fixes the mismatch between control IDs (CID) and controls
    for hflip, vflip and rotate.

    Signed-off-by: Sachin Kamat
    Acked-by: Kyungmin Park
    Signed-off-by: Marek Szyprowski
    Signed-off-by: Mauro Carvalho Chehab

    Sachin Kamat
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security:
    integrity: digital signature config option name change
    lib: Removed MPILIB, MPILIB_EXTRA, and SIGNATURE prompts
    lib: MPILIB Kconfig description update
    lib: digital signature dependency fix
    lib: digital signature config option name change
    encrypted-keys: fix rcu and sparse messages
    keys: fix trusted/encrypted keys sparse rcu_assign_pointer messages
    KEYS: Add missing smp_rmb() primitives to the keyring search code
    TOMOYO: Accept \000 as a valid character.
    security: update MAINTAINERS file with new git repo

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/audit: (29 commits)
    audit: no leading space in audit_log_d_path prefix
    audit: treat s_id as an untrusted string
    audit: fix signedness bug in audit_log_execve_info()
    audit: comparison on interprocess fields
    audit: implement all object interfield comparisons
    audit: allow interfield comparison between gid and ogid
    audit: complex interfield comparison helper
    audit: allow interfield comparison in audit rules
    Kernel: Audit Support For The ARM Platform
    audit: do not call audit_getname on error
    audit: only allow tasks to set their loginuid if it is -1
    audit: remove task argument to audit_set_loginuid
    audit: allow audit matching on inode gid
    audit: allow matching on obj_uid
    audit: remove audit_finish_fork as it can't be called
    audit: reject entry,always rules
    audit: inline audit_free to simplify the look of generic code
    audit: drop audit_set_macxattr as it doesn't do anything
    audit: inline checks for not needing to collect aux records
    audit: drop some potentially inadvisable likely notations
    ...

    Use evil merge to fix up grammar mistakes in Kconfig file.

    Bad speling and horrible grammar (and copious swearing) is to be
    expected, but let's keep it to commit messages and comments, rather than
    expose it to users in config help texts or printouts.

    Linus Torvalds