28 Jan, 2011

9 commits


21 Jan, 2011

1 commit

  • The meaning of CONFIG_EMBEDDED has long since been obsoleted; the option
    is used to configure any non-standard kernel with a much larger scope than
    only small devices.

    This patch renames the option to CONFIG_EXPERT in init/Kconfig and fixes
    references to the option throughout the kernel. A new CONFIG_EMBEDDED
    option is added that automatically selects CONFIG_EXPERT when enabled and
    can be used in the future to isolate options that should only be
    considered for embedded systems (RISC architectures, SLOB, etc).

    Calling the option "EXPERT" more accurately represents its intention: only
    expert users who understand the impact of the configuration changes they
    are making should enable it.

    Reviewed-by: Ingo Molnar
    Acked-by: David Woodhouse
    Signed-off-by: David Rientjes
    Cc: Greg KH
    Cc: "David S. Miller"
    Cc: Jens Axboe
    Cc: Arnd Bergmann
    Cc: Robin Holt
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Rientjes
     

14 Jan, 2011

1 commit

  • * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (43 commits)
    Documentation/trace/events.txt: Remove obsolete sched_signal_send.
    writeback: fix global_dirty_limits comment runtime -> real-time
    ppc: fix comment typo singal -> signal
    drivers: fix comment typo diable -> disable.
    m68k: fix comment typo diable -> disable.
    wireless: comment typo fix diable -> disable.
    media: comment typo fix diable -> disable.
    remove doc for obsolete dynamic-printk kernel-parameter
    remove extraneous 'is' from Documentation/iostats.txt
    Fix spelling milisec -> ms in snd_ps3 module parameter description
    Fix spelling mistakes in comments
    Revert conflicting V4L changes
    i7core_edac: fix typos in comments
    mm/rmap.c: fix comment
    sound, ca0106: Fix assignment to 'channel'.
    hrtimer: fix a typo in comment
    init/Kconfig: fix typo
    anon_inodes: fix wrong function name in comment
    fix comment typos concerning "consistent"
    poll: fix a typo in comment
    ...

    Fix up trivial conflicts in:
    - drivers/net/wireless/iwlwifi/iwl-core.c (moved to iwl-legacy.c)
    - fs/ext4/ext4.h

    Also fix missed 'diabled' typo in drivers/net/bnx2x/bnx2x.h while at it.

    Linus Torvalds
     

11 Jan, 2011

1 commit

  • * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev:
    pata_platform: Remove CONFIG_HAVE_PATA_PLATFORM's dependencies.
    pata_hpt37x: actually limit HPT370 to UltraDMA/66
    pata_hpt3x2n: coding style cleanup
    pata_hpt37x: coding style cleanup
    pata_hpt366: coding style cleanup
    pata_hpt3x2n: calculate average f_CNT
    pata_hpt3x2n: clarify about HPT371N support
    pata_hpt{37x|3x2n}: SATA mode filtering
    [libata] avoid needlessly passing around ptr to SCSI completion func
    [libata] new driver acard_ahci, for ATP8620 host controller

    Linus Torvalds
     

08 Jan, 2011

9 commits

  • CONFIG_HAVE_PATA_PLATFORM, by virtue of where its defined, has a
    dependency on CONFG_ATA and CONFIG_ATA_SFF. This causes Kconfig
    warnings when it is selected by various architectures, such as

    warning: (ARCH_VEXPRESS && || ARCH_RPC && || MACH_VPAC270 && ARCH_PXA || MACH_REALVIEW_PB11MP && ARCH_REALVIEW || MACH_REALVIEW_PBA8 && ARCH_REALVIEW || MACH_REALVIEW_PBX && ARCH_REALVIEW || MACH_BAST_IDE && ARCH_S3C2410 || MACH_ANUBIS && ARCH_S3C2410) selects HAVE_PATA_PLATFORM which has unmet direct dependencies (ATA && ATA_SFF)

    Since this option is only used to control visibility of the
    CONFIG_PATA_PLATFORM option and isn't itself visible in the menu,
    it is straightforward to simply remove these dependencies rather
    than adjust all the architectures.

    Signed-off-by: Nick Bowler
    Signed-off-by: Jeff Garzik

    Nick Bowler
     
  • The driver clearly tries to limit HPT370[A] to UltraDMA/66 if the PCI clock is
    less than 50 MHz but due to cut&paste type mistake this code has no effect...

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: Jeff Garzik

    Sergei Shtylyov
     
  • Fix 8 errors and 3 warnings given by checkpatch.pl:

    - *switch* and *case* not on the same indentation level;

    - no space between *for*/*switch*/*while* and open parenthesis;

    - space between an unary operator and its operand;

    - spaces before tabs;

    - lines over 80 characters.

    In addition to these changes, also do the following:

    - add new line after variable definitions;

    - fix the style of some multi-line comments.

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: Jeff Garzik

    Sergei Shtylyov
     
  • Fix 12 errors and 15 warnings given by checkpatch.pl:

    - *switch* and *case* not on the same indentation level;

    - no space between *for*/*switch*/*while* and open parenthesis;

    - space between an unary operator and its operand;

    - drive blacklist arrays not being *const*;

    - spaces before tabs;

    - lines over 80 characters.

    In addition to these changes, also do the following:

    - add new line after variable definitions;

    - fix the style of some multi-line comments.

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: Jeff Garzik

    Sergei Shtylyov
     
  • Fix 2 errors and 11 warnings given by checkpatch.pl:

    - *switch* and *case* not on the same indentation level;

    - no space between *switch* and open parenthesis;

    - drive blacklist arrays not being *const*;

    - spaces before tabs;

    - lines over 80 characters.

    In addition to these changes, also add new line after variable definition in
    hpt36x_init_chipset()...

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: Jeff Garzik

    Sergei Shtylyov
     
  • Allow hpt3x2n_pci_clock() to calculate the average f_CNT register value iff
    HighPoint BIOS hasn't saved one, just like the 'pata_hpt37x' driver (reading
    the full 16-bit register, unlike what that driver does), so that this driver
    would work correctly on e.g. non-x86 machine with 66 MHz PCI.

    I'm not sure why Alan has only done this in one driver and not the other...

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: Jeff Garzik

    Sergei Shtylyov
     
  • Commit 28e21c8c0d44cd63bad4c62f94ef0c5a1cb8402c (pata_hpt3x2n: Add HPT371N
    support and other bits) forgot to update the driver's Kconfig entry, heading
    comment, and module description (that also wrongly claims support of HPT302)
    which may confuse users...

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: Jeff Garzik

    Sergei Shtylyov
     
  • The Marvell bridge chips used on HighPoint SATA cards do not seem to support
    the UltraDMA modes 1, 2, and 3 as well as any MWDMA modes; these cards are
    based on HPT372/372A/372N/374 chips (judging from the vendor drivers), so
    the Linux drivers need to have a mode_filter() method for these chips...

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: Jeff Garzik

    Sergei Shtylyov
     
  • * 'for-2.6.38' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq: (33 commits)
    usb: don't use flush_scheduled_work()
    speedtch: don't abuse struct delayed_work
    media/video: don't use flush_scheduled_work()
    media/video: explicitly flush request_module work
    ioc4: use static work_struct for ioc4_load_modules()
    init: don't call flush_scheduled_work() from do_initcalls()
    s390: don't use flush_scheduled_work()
    rtc: don't use flush_scheduled_work()
    mmc: update workqueue usages
    mfd: update workqueue usages
    dvb: don't use flush_scheduled_work()
    leds-wm8350: don't use flush_scheduled_work()
    mISDN: don't use flush_scheduled_work()
    macintosh/ams: don't use flush_scheduled_work()
    vmwgfx: don't use flush_scheduled_work()
    tpm: don't use flush_scheduled_work()
    sonypi: don't use flush_scheduled_work()
    hvsi: don't use flush_scheduled_work()
    xen: don't use flush_scheduled_work()
    gdrom: don't use flush_scheduled_work()
    ...

    Fixed up trivial conflict in drivers/media/video/bt8xx/bttv-input.c
    as per Tejun.

    Linus Torvalds
     

06 Jan, 2011

2 commits


27 Dec, 2010

1 commit

  • We don't need or want MSR usage here, on x86-64.
    x86-64 was disabled intentionally in Kconfig, but commit
    9272dcc232b84ccb027d6861077934055d42764d changed that.

    drivers/ata/pata_cs5536.c:47:1: warning: "rdmsr" redefined
    In file included from arch/x86/include/asm/irqflags.h:60,
    from include/linux/irqflags.h:15,
    from arch/x86/include/asm/system.h:11,
    from arch/x86/include/asm/processor.h:17,
    from include/linux/prefetch.h:14,
    from include/linux/list.h:7,
    from include/linux/module.h:9,
    from drivers/ata/pata_cs5536.c:33:
    arch/x86/include/asm/paravirt.h:146:1: warning: this is the location of the previous definition
    drivers/ata/pata_cs5536.c:48:1: warning: "wrmsr" redefined
    arch/x86/include/asm/paravirt.h:154:1: warning: this is the location of the previous definition

    Reported-by: Stephen Rothwell
    Signed-off-by: Jeff Garzik

    Jeff Garzik
     

25 Dec, 2010

5 commits

  • Low level drivers may behave differently depending on the current
    link->lpm_policy. During ata_eh_set_lpm(), DIPM enable commands are
    issued after the successful completion of ap->ops->set_lpm(), which
    means that the controller is already in the target state. This causes
    DIPM enable commands to be processed with mismatching controller power
    state and link->lpm_policy value.

    In ahci, link->lpm_policy is used to ignore certain PHY events if LPM
    is enabled; however, as DIPM commands are issued with stale
    link->lpm_policy, they sometimes end up triggering these conditions
    and get aborted leading to LPM configuration failure.

    Fix it by updating link->lpm_policy before issuing DIPM enable
    commands.

    Signed-off-by: Tejun Heo
    Reported-by: Kyle McMartin
    Cc: stable@kernel.org
    Signed-off-by: Jeff Garzik

    Tejun Heo
     
  • ata_qc_complete() contains special handling for certain commands. For
    example, it schedules EH for device revalidation after certain
    configurations are changed. These shouldn't be applied to EH
    commands but they were.

    In most cases, it doesn't cause an actual problem because EH doesn't
    issue any command which would trigger special handling; however, ACPI
    can issue such commands via _GTF which can cause weird interactions.

    Restructure ata_qc_complete() such that EH commands are always passed
    on to __ata_qc_complete().

    stable: Please apply to -stable only after 2.6.38 is released.

    Signed-off-by: Tejun Heo
    Reported-by: Kyle McMartin
    Cc: stable@kernel.org
    Signed-off-by: Jeff Garzik

    Tejun Heo
     
  • Found by this build-error if BMDMA is disabled:

    drivers/ata/pata_mpc52xx.c: In function 'mpc52xx_ata_init_one':
    drivers/ata/pata_mpc52xx.c:662: error: 'ata_bmdma_interrupt' undeclared (first use in this function)
    ...

    Move the Kconfig entry to the proper location as needed since
    9a7780c9acb821fe1c2b6fc53f74cc2556ff5364 (libata-sff: make BMDMA optional)

    Signed-off-by: Wolfram Sang
    Signed-off-by: Jeff Garzik

    Wolfram Sang
     
  • pata_cs5536 does work on the other platforms(e.g. Loongson, a MIPS
    variant), so, remove the dependency of X86_32 and fix the building
    errors under the other platforms via only reserving the X86_32 specific
    parts for X86_32.

    pata_amd also supports cs5536 IDE controller, but this one saves about
    33k for the compressed kernel image(vmlinuz for MIPS).

    Signed-off-by: Zhang Le
    Signed-off-by: Chen Jie
    Signed-off-by: Wu Zhangjin
    Signed-off-by: Jeff Garzik

    Wu Zhangjin
     
  • While separating out BMDMA irq handler from SFF, commit c3b28894
    (libata-sff: separate out BMDMA irq handler) incorrectly made
    __ata_sff_port_intr() consider an IRQ to be an idle one if the host
    state was transitioned to HSM_ST_ERR by ata_bmdma_port_intr().

    This makes BMDMA drivers ignore IRQs reporting host bus error which
    leads to timeouts instead of triggering EH immediately. Fix it by
    making __ata_sff_port_intr() consider the IRQ to be an idle one iff
    the state is HSM_ST_IDLE. This is equivalent to adding HSM_ST_ERR to
    the "break"ing case but less error-prone.

    Signed-off-by: Tejun Heo
    Reported-by: Antonio Toma
    Cc: stable@kernel.org
    Signed-off-by: Jeff Garzik

    Tejun Heo
     

23 Dec, 2010

1 commit


15 Dec, 2010

1 commit

  • cancel_rearming_delayed_work[queue]() has been superceded by
    cancel_delayed_work_sync() quite some time ago. Convert all the
    in-kernel users. The conversions are completely equivalent and
    trivial.

    Signed-off-by: Tejun Heo
    Acked-by: "David S. Miller"
    Acked-by: Greg Kroah-Hartman
    Acked-by: Evgeniy Polyakov
    Cc: Jeff Garzik
    Cc: Benjamin Herrenschmidt
    Cc: Mauro Carvalho Chehab
    Cc: netdev@vger.kernel.org
    Cc: Anton Vorontsov
    Cc: David Woodhouse
    Cc: "J. Bruce Fields"
    Cc: Neil Brown
    Cc: Alex Elder
    Cc: xfs-masters@oss.sgi.com
    Cc: Christoph Lameter
    Cc: Pekka Enberg
    Cc: Andrew Morton
    Cc: netfilter-devel@vger.kernel.org
    Cc: Trond Myklebust
    Cc: linux-nfs@vger.kernel.org

    Tejun Heo
     

20 Nov, 2010

1 commit

  • vt6420 has the same FIFO overflow problem as vt6421 when combined with
    certain devices. This patch applies the magic fix to vt6420 too.

    Signed-off-by: Tejun Heo
    Reported-by: Martin Qvist
    Reported-by: Peter Zijlstra
    Cc: Joseph Chan
    Cc: stable@kernel.org
    Signed-off-by: Jeff Garzik

    Tejun Heo
     

18 Nov, 2010

1 commit


17 Nov, 2010

1 commit

  • Move the mid-layer's ->queuecommand() invocation from being locked
    with the host lock to being unlocked to facilitate speeding up the
    critical path for drivers who don't need this lock taken anyway.

    The patch below presents a simple SCSI host lock push-down as an
    equivalent transformation. No locking or other behavior should change
    with this patch. All existing bugs and locking orders are preserved.

    Additionally, add one parameter to queuecommand,
    struct Scsi_Host *
    and remove one parameter from queuecommand,
    void (*done)(struct scsi_cmnd *)

    Scsi_Host* is a convenient pointer that most host drivers need anyway,
    and 'done' is redundant to struct scsi_cmnd->scsi_done.

    Minimal code disturbance was attempted with this change. Most drivers
    needed only two one-line modifications for their host lock push-down.

    Signed-off-by: Jeff Garzik
    Acked-by: James Bottomley
    Signed-off-by: Linus Torvalds

    Jeff Garzik
     

13 Nov, 2010

3 commits


02 Nov, 2010

1 commit

  • "gadget", "through", "command", "maintain", "maintain", "controller", "address",
    "between", "initiali[zs]e", "instead", "function", "select", "already",
    "equal", "access", "management", "hierarchy", "registration", "interest",
    "relative", "memory", "offset", "already",

    Signed-off-by: Uwe Kleine-König
    Signed-off-by: Jiri Kosina

    Uwe Kleine-König
     

30 Oct, 2010

1 commit

  • The creation of the I/O clock domain requires some adjustments. Since the
    CF bus timing logic is clocked by the I/O clock, use its rate for delay
    calculations.

    Signed-off-by: David Daney
    Cc: Jeff Garzik
    Cc: linux-ide@vger.kernel.org
    Patchwork: http://patchwork.linux-mips.org/patch/1660/
    Acked-by: Jeff Garzik
    Signed-off-by: Ralf Baechle

    David Daney
     

25 Oct, 2010

1 commit

  • * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (39 commits)
    Update broken web addresses in arch directory.
    Update broken web addresses in the kernel.
    Revert "drivers/usb: Remove unnecessary return's from void functions" for musb gadget
    Revert "Fix typo: configuation => configuration" partially
    ida: document IDA_BITMAP_LONGS calculation
    ext2: fix a typo on comment in ext2/inode.c
    drivers/scsi: Remove unnecessary casts of private_data
    drivers/s390: Remove unnecessary casts of private_data
    net/sunrpc/rpc_pipe.c: Remove unnecessary casts of private_data
    drivers/infiniband: Remove unnecessary casts of private_data
    drivers/gpu/drm: Remove unnecessary casts of private_data
    kernel/pm_qos_params.c: Remove unnecessary casts of private_data
    fs/ecryptfs: Remove unnecessary casts of private_data
    fs/seq_file.c: Remove unnecessary casts of private_data
    arm: uengine.c: remove C99 comments
    arm: scoop.c: remove C99 comments
    Fix typo configue => configure in comments
    Fix typo: configuation => configuration
    Fix typo interrest[ing|ed] => interest[ing|ed]
    Fix various typos of valid in comments
    ...

    Fix up trivial conflicts in:
    drivers/char/ipmi/ipmi_si_intf.c
    drivers/usb/gadget/rndis.c
    net/irda/irnet/irnet_ppp.c

    Linus Torvalds