01 May, 2016

1 commit


30 Mar, 2016

1 commit

  • remove the usage of removed irq_to_gpio() function. On pre-DB1200
    boards, pass the actual carddetect GPIO number instead of the IRQ,
    because we need the gpio to actually test card status (inserted or
    not) and can get the irq number with gpio_to_irq() instead.

    Tested on DB1300 and DB1500, this patch fixes PCMCIA on the DB1500,
    which used irq_to_gpio().

    Fixes: 832f5dacfa0b ("MIPS: Remove all the uses of custom gpio.h")
    Signed-off-by: Manuel Lauss
    Acked-by: Arnd Bergmann
    Reviewed-by: Linus Walleij
    Cc: linux-pcmcia@lists.infradead.org
    Cc: Linux-MIPS
    Cc: stable@vger.kernel.org # v4.3+
    Patchwork: https://patchwork.linux-mips.org/patch/12747/
    Signed-off-by: Ralf Baechle

    Manuel Lauss
     

16 Feb, 2016

1 commit

  • Most arches have an asm/gpio.h that merely includes linux/gpio.h. The
    others select ARCH_HAVE_CUSTOM_GPIO_H, and when that's selected,
    linux/gpio.h includes asm/gpio.h.

    Therefore, code should include linux/gpio.h instead of including asm/gpio.h
    directly.

    Remove includes of asm/gpio.h, adding an include of linux/gpio.h when
    necessary.

    This is a follow-on to 7563bbf89d06 ("gpiolib/arches: Centralise
    bolierplate asm/gpio.h").

    Signed-off-by: Bjorn Helgaas
    Acked-by: Thomas Gleixner
    Acked-by: Arnd Bergmann
    Acked-by: Alexandre Courbot
    Signed-off-by: Linus Walleij

    Bjorn Helgaas
     

05 Oct, 2015

1 commit


03 Sep, 2015

6 commits


08 Jul, 2015

2 commits


03 Jul, 2015

1 commit

  • Pull implicit module.h fixes from Paul Gortmaker:
    "Fix up implicit users that will break later.

    The files changed here are simply modular source files that are
    implicitly relying on being present. We fix them up now,
    so that we can decouple some of the module related init code from the
    core init code in the future.

    The addition of the module.h include to several files here is also a
    no-op from a code generation point of view, else there would already
    be compile issues with these files today.

    There may be lots more implicit includes of in tree, but
    these are the ones that extensive build test coverage has shown that
    must be fixed in order to avoid build breakage fallout for the pending
    module.h init.h code relocation we desire to complete"

    * tag 'module-implicit-v4.1-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux:
    frv: add module.h to mb93090-mb00/flash.c to avoid compile fail
    drivers/cpufreq: include for modular exynos-cpufreq.c code
    drivers/staging: include for modular android tegra_ion code
    crypto/asymmetric_keys: pkcs7_key_type needs module.h
    sh: mach-highlander/psw.c is tristate and should use module.h
    drivers/regulator: include for modular max77802 code
    drivers/pcmcia: include for modular xxs1500_ss code
    drivers/hsi: include for modular omap_ssi code
    drivers/gpu: include for modular rockchip code
    drivers/gpio: include for modular crystalcove code
    drivers/clk: include for clk-max77xxx modular code

    Linus Torvalds
     

27 Jun, 2015

2 commits

  • Pull char/misc driver updates from Greg KH:
    "Here's the big char/misc driver pull request for 4.2-rc1.

    Lots of mei, extcon, coresight, uio, mic, and other driver updates in
    here. Full details in the shortlog. All of these have been in
    linux-next for some time with no reported problems"

    * tag 'char-misc-4.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (176 commits)
    mei: me: wait for power gating exit confirmation
    mei: reset flow control on the last client disconnection
    MAINTAINERS: mei: add mei_cl_bus.h to maintained file list
    misc: sram: sort and clean up included headers
    misc: sram: move reserved block logic out of probe function
    misc: sram: add private struct device and virt_base members
    misc: sram: report correct SRAM pool size
    misc: sram: bump error message level on unclean driver unbinding
    misc: sram: fix device node reference leak on error
    misc: sram: fix enabled clock leak on error path
    misc: mic: Fix reported static checker warning
    misc: mic: Fix randconfig build error by including errno.h
    uio: pruss: Drop depends on ARCH_DAVINCI_DA850 from config
    uio: pruss: Add CONFIG_HAS_IOMEM dependence
    uio: pruss: Include
    extcon: Redefine the unique id of supported external connectors without 'enum extcon' type
    char:xilinx_hwicap:buffer_icap - change 1/0 to true/false for bool type variable in function buffer_icap_set_configuration().
    Drivers: hv: vmbus: Allocate ring buffer memory in NUMA aware fashion
    parport: check exclusive access before register
    w1: use correct lock on error in w1_seq_show()
    ...

    Linus Torvalds
     
  • Pull ARM SoC cleanups from Kevin Hilman:
    "A relatively small setup of cleanups this time around, and similar to
    last time the bulk of it is removal of legacy board support:

    - OMAP: removal of legacy (non-DT) booting for several platforms

    - i.MX: remove some legacy board files"

    * tag 'armsoc-cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (36 commits)
    ARM: fix EFM32 build breakage caused by cpu_resume_arm
    ARM: 8389/1: Add cpu_resume_arm() for firmwares that resume in ARM state
    ARM: v7 setup function should invalidate L1 cache
    mach-omap2: Remove use of deprecated marco, PTR_RET in devices.c
    ARM: OMAP2+: Remove calls to deprecacted marco,PTR_RET in the files,fb.c and pmu.c
    ARM: OMAP2+: Constify irq_domain_ops
    ARM: OMAP2+: use symbolic defines for console loglevels instead of numbers
    ARM: at91: remove useless Makefile.boot
    ARM: at91: remove at91rm9200_sdramc.h
    ARM: at91: remove mach/at91_ramc.h and mach/at91rm9200_mc.h
    ARM: at91/pm: use the atmel-mc syscon defines
    pcmcia: at91_cf: Use syscon to configure the MC/smc
    ARM: at91: declare the at91rm9200 memory controller as a syscon
    mfd: syscon: Add Atmel MC (Memory Controller) registers definition
    ARM: at91: drop sam9_smc.c
    ata: at91: use syscon to configure the smc
    ARM: ux500: delete static resource defines
    ARM: ux500: rename ux500_map_io
    ARM: ux500: look up PRCMU resource from DT
    ARM: ux500: kill off L2CC static map
    ...

    Linus Torvalds
     

17 Jun, 2015

1 commit


16 Jun, 2015

1 commit

  • Patch 1c6c9b1d9d25 caused a regression for rsrc_nonstatic: It relies
    on pccard_validate_cis() to determine whether an iomem resource can
    be used for PCMCIA cards. This override, however, lead invalid iomem
    resources to be accepted -- and lead to a fake CIS being used instead
    of the original CIS.

    To fix this issue, move the override for anonymous cards to the one
    place where it is needed -- when adding a PCMCIA device.

    Signed-off-by: Dominik Brodowski

    Dominik Brodowski
     

15 Jun, 2015

1 commit

  • There are some resource leaks in yenta_probe() and _close(). I fixed
    the following issues with some code cleanups. Thanks to Dominik's
    suggestions.

    On the error path in yenta_probe():
    - a requested irq is not released
    - yenta_free_resources() and pci_set_drvdata(dev, NULL) are not called

    In yenta_close():
    - kfree(sock) is not called
    - sock->base is always set to non-NULL when yenta_close() is called,
    therefore the check in yenta_close() is not necessary.

    Signed-off-by: Takeshi Yoshimura
    Signed-off-by: Dominik Brodowski

    Takeshi Yoshimura
     

14 Jun, 2015

1 commit

  • Disable write buffering on the Toshiba ToPIC95 if it is enabled by
    somebody (it is not supposed to be a power-on default according to
    the datasheet). On the ToPIC95, practically no 32-bit Cardbus card
    will work under heavy load without locking up the whole system if
    this is left enabled. I tried about a dozen. It does not affect
    16-bit cards. This is similar to the O2 bugs in early controller
    revisions it seems.

    Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=55961
    Cc:
    Signed-off-by: Ryan C. Underwood
    Signed-off-by: Dominik Brodowski

    Ryan Underwood
     

30 May, 2015

9 commits

  • Reduce object size a little by using dev_
    calls instead of dev_printk(KERN_.

    Other miscellanea:

    o Coalesce formats
    o Realign arguments
    o Use pr_cont instead of naked printk
    reorder test to use "%s\n"

    Signed-off-by: Joe Perches
    Signed-off-by: Dominik Brodowski

    Joe Perches
     
  • The Linux kernel coding style guidelines suggest not using typedefs
    for structure and enum types. This patch gets rid of the typedefs for
    vrc4171_slot_t, vrc4171_slotb_t and vrc4171_socket_t. Also, the names
    of the enums and the struct are changed to drop the _t, to make the
    name look less typedef-like.

    The following Coccinelle semantic patch detects the cases for struct type:

    @tn@
    identifier i;
    type td;
    @@

    -typedef
    struct i { ... }
    -td
    ;

    @@
    type tn.td;
    identifier tn.i;
    @@

    -td
    + struct i

    Signed-off-by: Himangi Saraogi
    Acked-by: Julia Lawall
    Signed-off-by: Dominik Brodowski

    Himangi Saraogi
     
  • The Linux kernel coding style guidelines suggest not using typedefs
    for structure and enum types. This patch gets rid of the typedefs for
    cirrus_state_t, vg46x_state_t and pcic_id. Also, the names of the structs
    are changed to drop the _t, to make the name look less typedef-like.

    The following Coccinelle semantic patch detects the cases for struct type:

    @tn@
    identifier i;
    type td;
    @@

    -typedef
    struct i { ... }
    -td
    ;

    @@
    type tn.td;
    identifier tn.i;
    @@

    -td
    + struct i

    [linux@dominikbrodowski.net: fix patch to apply cleanly after e632cd94723e
    was applied first]
    Signed-off-by: Himangi Saraogi
    Acked-by: Julia Lawall
    Signed-off-by: Dominik Brodowski

    Himangi Saraogi
     
  • The Linux kernel coding style guidelines suggest not using typedefs
    for structure types. This patch gets rid of the typedef for tuple_flags.

    The following Coccinelle semantic patch makes the transformation.

    @tn@
    identifier i;
    type td;
    @@

    -typedef
    struct i { ... }
    -td
    ;

    @@
    type tn.td;
    identifier tn.i;
    @@

    -td
    + struct i

    Signed-off-by: Himangi Saraogi
    Acked-by: Julia Lawall
    Signed-off-by: Dominik Brodowski

    Himangi Saraogi
     
  • fix these checkpatch errors and warning:
    - ERROR: "foo * bar" should be "foo *bar"
    - WARNING: please, no space before tabs
    - WARNING: sizeof *cf should be sizeof(*cf)
    - WARNING: space prohibited between function name and open parenthesis '('i

    Signed-off-by: Laurent Navet
    Signed-off-by: Dominik Brodowski

    Laurent Navet
     
  • fix these checkpatch errors :
    - ERROR: spaces required around that '
    Signed-off-by: Dominik Brodowski

    Laurent Navet
     
  • Since this routine doesn't even exist anymore, there's no point
    leaving in commented code using it.

    Signed-off-by: Robert P. J. Day
    Signed-off-by: Dominik Brodowski

    Robert P. J. Day
     
  • cf and cf->mem_base have been allocated at the point of this failure, so
    they should be freed before leaving the function.

    [linux@dominikbrodowski.net: limit call to device_init_wakeup() to the
    same error paths as before]
    Signed-off-by: Julia Lawall
    Signed-off-by: Dominik Brodowski

    Julia Lawall
     
  • Signed-off-by: Jim Cromie
    Signed-off-by: Dominik Brodowski

    Jim Cromie
     

25 May, 2015

1 commit

  • During bootup pcmcia (pccardd) code enforces the following warning
    backtrace:

    do not call blocking ops when !TASK_RUNNING; state=1 set at [] pccardd+0xb8/0x3fc
    Modules linked in:
    CPU: 0 PID: 14 Comm: pccardd Not tainted 4.0.0-rc6+ #11
    Hardware name: Sharp-Collie
    [] (unwind_backtrace) from [] (show_stack+0x10/0x14)
    [] (show_stack) from [] (warn_slowpath_common+0x74/0xac)
    [] (warn_slowpath_common) from [] (warn_slowpath_fmt+0x30/0x40)
    [] (warn_slowpath_fmt) from [] (__might_sleep+0x84/0xa0)
    [] (__might_sleep) from [] (mutex_lock_nested+0x24/0x388)
    [] (mutex_lock_nested) from [] (pccardd+0xf8/0x3fc)
    [] (pccardd) from [] (kthread+0xdc/0xfc)
    [] (kthread) from [] (ret_from_fork+0x14/0x2c)
    ---[ end trace fd94911637eed4ba ]---

    This happens due to kthread trying to lock mutex in a TASK_INTERRUPTIBLE
    state. Limit TASK_INTERRUPTIBLE task state to the schedule() call only,
    so that the rest of the code runs in TASK_RUNNING state.

    Signed-off-by: Dmitry Eremin-Solenikov
    Signed-off-by: Greg Kroah-Hartman

    Dmitry Eremin-Solenikov
     

20 May, 2015

1 commit


23 Apr, 2015

1 commit

  • Pull ARM SoC cleanups from Olof Johansson:
    "We've got a fairly large cleanup branch this time. The bulk of this
    is removal of non-DT platforms of several flavors:

    - Atmel at91 platforms go full-DT, with removal of remaining
    board-file based support

    - OMAP removes legacy board files for three more platforms

    - removal of non-DT mach-msm, newer Qualcomm platforms now live in
    mach-qcom

    - Freescale i.MX25 also removes non-DT platform support"

    Most of the rest of the changes here are fallout from the above, i.e. for
    example removal of drivers that now lack platforms, etc.

    * tag 'armsoc-cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (58 commits)
    mmc: Remove msm_sdcc driver
    gpio: Remove gpio-msm-v1 driver
    ARM: Remove mach-msm and associated ARM architecture code
    ARM: shmobile: cpuidle: Remove the pointless default driver
    ARM: davinci: dm646x: Add interrupt resource for McASPs
    ARM: davinci: irqs: Correct McASP1 TX interrupt definition for DM646x
    ARM: davinci: dm646x: Clean up the McASP DMA resources
    ARM: davinci: devices-da8xx: Add support for McASP2 on da830
    ARM: davinci: devices-da8xx: Clean up and correct the McASP device creation
    ARM: davinci: devices-da8xx: Add interrupt resource to McASP structs
    ARM: davinci: devices-da8xx: Add resource name for the McASP DMA request
    ARM: OMAP2+: Remove legacy support for omap3 TouchBook
    ARM: OMAP3: Remove legacy support for devkit8000
    ARM: OMAP3: Remove legacy support for EMA-Tech Stalker board
    ARM: shmobile: Consolidate the pm code for R-Car Gen2
    ARM: shmobile: r8a7791: Correct SYSCIER value
    ARM: shmobile: r8a7790: Correct SYSCIER value
    ARM: at91: remove old setup
    ARM: at91: sama5d4: remove useless map_io
    ARM: at91: sama5 use SoC detection infrastructure
    ...

    Linus Torvalds
     

25 Mar, 2015

1 commit


17 Mar, 2015

2 commits

  • This patch introduces the use of functions setup_timer
    and mod_timer.

    This is done using Coccinelle and semantic patch used
    for this as follows:

    //
    @@
    expression x,y,z,a,b;
    @@

    -init_timer (&x);
    +setup_timer (&x, y, z);
    +mod_timer (&a, b);
    -x.function = y;
    -x.data = z;
    -x.expires = b;
    -add_timer(&a);

    //

    Signed-off-by: Vaishali Thakkar
    Signed-off-by: Greg Kroah-Hartman

    Vaishali Thakkar
     
  • This patch introduces the use of function setup_timer.

    This is done using Coccinelle and semantic patch used is
    as follows:

    @@
    expression x,y,z;
    @@

    - init_timer (&x);
    + setup_timer (&x, y, z);
    - x.function = y;
    - x.data = z;

    Signed-off-by: Vaishali Thakkar
    Signed-off-by: Greg Kroah-Hartman

    Vaishali Thakkar
     

13 Mar, 2015

1 commit

  • The mach/io.h header on at91 is used to support a nonstandard I/O space
    window for the cf card driver. This changes the driver to use pci_ioremap_io
    in order to have the standard location, and then removes the custom
    mach/io.h.

    [alexandre.belloni@free-electrons.com: Added PCI dependency]
    Signed-off-by: Alexandre Belloni
    Signed-off-by: Arnd Bergmann
    Signed-off-by: Nicolas Ferre

    Arnd Bergmann
     

11 Mar, 2015

3 commits


18 Feb, 2015

1 commit

  • Pull ARM SoC driver updates from Olof Johansson:
    "These are changes for drivers that are intimately tied to some SoC and
    for some reason could not get merged through the respective subsystem
    maintainer tree.

    This time around, much of this is for at91, with the bulk of it being
    syscon and udc drivers.

    Also, there's:
    - coupled cpuidle support for Samsung Exynos4210
    - Renesas 73A0 common-clk work
    - of/platform changes to tear down DMA mappings on device destruction
    - a few updates to the TI Keystone knav code"

    * tag 'drivers-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (26 commits)
    cpuidle: exynos: add coupled cpuidle support for exynos4210
    ARM: EXYNOS: apply S5P_CENTRAL_SEQ_OPTION fix only when necessary
    soc: ti: knav_qmss_queue: change knav_range_setup_acc_irq to static
    soc: ti: knav_qmss_queue: makefile tweak to build as dynamic module
    pcmcia: at91_cf: depend on !ARCH_MULTIPLATFORM
    soc: ti: knav_qmss_queue: export API calls for use by user driver
    of/platform: teardown DMA mappings on device destruction
    usb: gadget: at91_udc: Allocate udc instance
    usb: gadget: at91_udc: Update DT binding documentation
    usb: gadget: at91_udc: Rework for multi-platform kernel support
    usb: gadget: at91_udc: Simplify probe and remove functions
    usb: gadget: at91_udc: Remove non-DT handling code
    usb: gadget: at91_udc: Document DT clocks and clock-names property
    usb: gadget: at91_udc: Drop uclk clock
    usb: gadget: at91_udc: Fix clock names
    mfd: syscon: Add Atmel SMC binding doc
    mfd: syscon: Add atmel-smc registers definition
    mfd: syscon: Add Atmel Matrix bus DT binding documentation
    mfd: syscon: Add atmel-matrix registers definition
    clk: shmobile: fix sparse NULL pointer warning
    ...

    Linus Torvalds
     

30 Jan, 2015

1 commit