31 May, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 3029 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190527070032.746973796@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

11 Sep, 2018

1 commit


12 Oct, 2017

4 commits


08 Nov, 2015

1 commit

  • The IRQF_NO_SUSPEND flag is used to identify the interrupts that should
    be left enabled so as to allow them to work as expected during the
    suspend-resume cycle, but doesn't guarantee that it will wake the system
    from a suspended state, enable_irq_wake is recommended to be used for
    the wakeup.

    This patch removes the use of IRQF_NO_SUSPEND flags and uses newly
    introduce PM wakeup APIs dev_pm_{set,clear}_wake_irq.

    Cc: Linus Walleij
    Cc: Alessandro Zummo
    Cc: Alexandre Belloni
    Cc: rtc-linux@googlegroups.com
    Signed-off-by: Sudeep Holla
    Acked-by: Linus Walleij
    Signed-off-by: Alexandre Belloni

    Sudeep Holla
     

05 Sep, 2015

1 commit


13 Nov, 2013

1 commit

  • Driver core clears the driver data to NULL after device_release or on
    probe failure, so just remove it from here.

    The relevant driver core change was commit 0998d0631001 ("device-core:
    Ensure drvdata = NULL when no driver is bound").

    Signed-off-by: Michal Simek
    Cc: Linus Walleij
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michal Simek
     

19 Sep, 2013

1 commit

  • In some recent testing, I noticed the CLOCK_REALTIME_ALARM clockid
    wasn't functioning on my vexpress qemu environment. Looking into it
    I noticed the pl031 rtc driver doesn't set the wakeup flag on the
    device until after registering the device with the RTC subsystem.

    This causes the alarmtimer subsystem to not see the pl031 driver
    as a valid backing device, and that resuls in alarm clockids
    getting ENOTSUPP errors.

    Thus be sure to set the wakeup flag on the device prior to
    registering the rtcdev so the pl031 rtc driver can be used as
    the backing alarmtimer device.

    Cc: Linus Walleij
    Cc: Alessandro Zummo
    Cc: "Jon Medhurst (Tixy)"
    Cc: linux-arm-kernel@lists.infradead.org
    Acked-by: Linus Walleij
    Signed-off-by: John Stultz

    John Stultz
     

25 May, 2013

1 commit

  • free_irq() expects the same pointer that was passed to request_irq(),
    otherwise the IRQ is not freed.

    The issue was found using the following coccinelle script:


    @r1@
    type T;
    T devid;
    @@
    request_irq(..., devid)

    @r2@
    type r1.T;
    T devid;
    position p;
    @@
    free_irq@p(..., devid)

    @@
    position p != r2.p;
    @@
    *free_irq@p(...)

    Signed-off-by: Lars-Peter Clausen
    Cc: Srinidhi Kasagar
    Cc: Linus Walleij
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Lars-Peter Clausen
     

22 Feb, 2013

1 commit


13 Feb, 2013

1 commit

  • Commit e7e034e18a0a ("drivers/rtc/rtc-pl031.c: fix the missing operation
    on enable") accidentally broke the ST variants of PL031.

    The bit that is being poked as "clockwatch" enable bit for the ST
    variants does the work of bit 0 on this variant. Bit 0 is used for a
    clock divider on the ST variants, and setting it to 1 will affect
    timekeeping in a very bad way.

    Signed-off-by: Linus Walleij
    Acked-by: Haojian Zhuang
    Cc: Mian Yousaf KAUKAB
    Cc: Srinidhi Kasagar
    Cc: Alessandro Zummo
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Linus Walleij
     

05 Feb, 2013

1 commit

  • The RTC control register should be enabled in the process of
    initializing.

    Without this patch, I failed to enable RTC in Hisilicon Hi3620 SoC. The
    register mapping section in RTC is always read as zero. So I doubt that
    ST guys may already enable this register in bootloader. So they won't
    meet this issue.

    Signed-off-by: Haojian Zhuang
    Cc: Srinidhi Kasagar
    Cc: Linus Walleij
    Cc: Alessandro Zummo
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Haojian Zhuang
     

31 Jul, 2012

3 commits

  • The pl031 interrupt is shared between the timer part and the clockwatch
    part of the same HW block on the ux500, so mark it IRQF_SHARED on this
    variant.

    This patch also adds the IRQF_NO_SUSPEND flag to the rtc irq on all
    variants as we don't want this pretty important IRQ to be disabled in
    suspend.

    Signed-off-by: Mattias Wallin
    Signed-off-by: Linus Walleij
    Reviewed-by: Rickard Andersson
    Reviewed-by: Jonas Aberg
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mattias Wallin
     
  • Instead of hard-checking for certain vendor codes, follow the pattern of
    other AMBA (PrimeCell) drivers and use variables in the vendor data.
    Get rid of the locally cached vendor and hardware revision since we
    already have the nice vendor data variable in the state.

    Signed-off-by: Linus Walleij
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Linus Walleij
     
  • Move the per-vendor operations for this RTC into a encapsulating struct so
    we can have more per-vendor variables than just the ops.

    Signed-off-by: Linus Walleij
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Linus Walleij
     

30 May, 2012

1 commit

  • Remove RTT interrupt handling, since PIE mode interrupts are now better
    emulated in generic code via an hrtimer we have no need for this, and
    there is no codepath in the driver that enables these periodic interrupts
    anyway.

    Signed-off-by: Rajkumar Kasirajan
    Signed-off-by: Linus Walleij
    Cc: Mattias Wallin
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rajkumar Kasirajan
     

18 May, 2012

1 commit

  • The reset date of the ST Micro version of PL031 is 2000-01-01. The
    correct weekday for 2000-01-01 is saturday, but pl031 is initialized to
    sunday. This may lead to alarm malfunction, so configure the correct
    wday if RTC_DR indicates reset.

    Signed-off-by: Rajkumar Kasirajan
    Signed-off-by: Linus Walleij
    Cc: Mattias Wallin
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rajkumar Kasirajan
     

13 Apr, 2012

1 commit

  • The ST variants of the PL031 all require bit 26 in the control register
    to be set before they work properly. Discovered this when testing on
    the Nomadik board where it would suprisingly just stand still.

    Signed-off-by: Linus Walleij
    Cc: Mian Yousaf Kaukab
    Cc: Alessandro Rubini
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Linus Walleij
     

24 Mar, 2012

2 commits

  • Pull #2 ARM updates from Russell King:
    "Further ARM AMBA primecell updates which aren't included directly in
    the previous commit. I wanted to keep these separate as they're
    touching stuff outside arch/arm/."

    * 'amba' of git://git.linaro.org/people/rmk/linux-arm:
    ARM: 7362/1: AMBA: Add module_amba_driver() helper macro for amba_driver
    ARM: 7335/1: mach-u300: do away with MMC config files
    ARM: 7280/1: mmc: mmci: Cache MMCICLOCK and MMCIPOWER register
    ARM: 7309/1: realview: fix unconnected interrupts on EB11MP
    ARM: 7230/1: mmc: mmci: Fix PIO read for small SDIO packets
    ARM: 7227/1: mmc: mmci: Prepare for SDIO before setting up DMA job
    ARM: 7223/1: mmc: mmci: Fixup use of runtime PM and use autosuspend
    ARM: 7221/1: mmc: mmci: Change from using legacy suspend
    ARM: 7219/1: mmc: mmci: Change vdd_handler to a generic ios_handler
    ARM: 7218/1: mmc: mmci: Provide option to configure bus signal direction
    ARM: 7217/1: mmc: mmci: Put power register deviations in variant data
    ARM: 7216/1: mmc: mmci: Do not release spinlock in request_end
    ARM: 7215/1: mmc: mmci: Increase max_segs from 16 to 128

    Linus Torvalds
     
  • Since commit e58aa3d2d0cc ("genirq: run irq handlers with interrupts
    disabled") we run all interrupt handlers with interrupts disabled and we
    even check and yell when an interrupt handler returns with interrupts
    enabled - see commit b738a50a2026 ("genirq: warn when handler enables
    interrupts").

    So now this flag is a NOOP and can be removed.

    Signed-off-by: Yong Zhang
    Acked-by: Linus Walleij
    Acked-by: Wan ZongShun
    Cc: Alessandro Zummo
    Cc: Thomas Gleixner
    Cc: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yong Zhang
     

17 Mar, 2012

1 commit


22 Nov, 2011

1 commit


18 Mar, 2011

1 commit

  • * 'defcfg' of master.kernel.org:/home/rmk/linux-2.6-arm:
    ARM: 6647/1: add Versatile Express defconfig
    ARM: 6644/1: mach-ux500: update the U8500 defconfig

    * 'drivers' of master.kernel.org:/home/rmk/linux-2.6-arm:
    ARM: 6764/1: pl011: factor out FIFO to TTY code
    ARM: 6763/1: pl011: add optional RX DMA to PL011 v2
    ARM: 6758/1: amba: support pm ops
    ARM: amba: make amba_driver id_table const
    ARM: amba: make internal ID table handling const
    ARM: amba: make probe() functions take const id tables
    ARM: 6662/1: amba: make amba_bustype non-static
    ARM: mmci: add dmaengine-based DMA support
    ARM: mmci: no need for separate host->data_xfered
    ARM: mmci: avoid unnecessary switch to data available PIO interrupts
    ARM: mmci: no need to call flush_dcache_page() with sg_miter API
    ARM: mmci: avoid reporting too many completed bytes on fifo overrun
    ALSA: AACI: make fifo variables more explanitory
    ALSA: AACI: no need to call snd_pcm_period_elapsed() for each period
    ALSA: AACI: use snd_pcm_lib_period_bytes()
    ALSA: AACI: clean up AACI announcement printk
    ALSA: AACI: fix channel mask selection
    ALSA: AACI: fix number of channels for record
    ALSA: AACI: fix multiple IRQ claiming

    * 'cyberpro-next' of master.kernel.org:/home/rmk/linux-2.6-arm:
    VIDEO: cyberpro: remove unused cyber2000fb_get_fb_var()
    VIDEO: cyberpro: remove useless function extreg pointers
    VIDEO: cyberpro: update handling of device structures
    VIDEO: cyberpro: add support for video capture I2C
    VIDEO: cyberpro: make 'reg_b0_lock' always present
    VIDEO: cyberpro: add I2C support
    VIDEO: cyberpro: select lowest multipler/divisor for PLL

    Linus Torvalds
     

10 Mar, 2011

2 commits

  • With the generic rtc code now emulating PIE mode irqs via an
    hrtimer, no one calls the rtc_class_ops->irq_set_freq call.

    This patch removes the hook and deletes the driver functions
    if no one else calls them.

    CC: Thomas Gleixner
    CC: Alessandro Zummo
    CC: Marcelo Roberto Jimenez
    CC: rtc-linux@googlegroups.com
    Signed-off-by: John Stultz

    John Stultz
     
  • With PIE mode interrupts now emulated in generic code via an hrtimer,
    no one calls rtc_class_ops->irq_set_state(), so this patch removes it
    along with driver implementations.

    CC: Thomas Gleixner
    CC: Alessandro Zummo
    CC: Marcelo Roberto Jimenez
    CC: rtc-linux@googlegroups.com
    Signed-off-by: John Stultz

    John Stultz
     

24 Feb, 2011

1 commit


10 Sep, 2010

1 commit


11 Aug, 2010

1 commit


27 Jul, 2010

1 commit

  • Found in the Versatile build:

    WARNING: drivers/built-in.o(.data+0x14c): Section mismatch in reference from the variable pl061_gpio_driver to the (unknown reference) .init.data:(unknown)
    The variable pl061_gpio_driver references
    the (unknown reference) __initdata (unknown)

    WARNING: drivers/built-in.o(.data+0x40f8): Section mismatch in reference from the variable pl011_driver to the (unknown reference) .init.data:(unknown)
    The variable pl011_driver references
    the (unknown reference) __initdata (unknown)

    WARNING: drivers/built-in.o(.data+0x5ab4): Section mismatch in reference from the variable pl031_driver to the (unknown reference) .init.data:(unknown)
    The variable pl031_driver references
    the (unknown reference) __initdata (unknown)

    Basically, amba_id structures must not be __initdata. Also fix:

    WARNING: drivers/built-in.o(.data+0x138): Section mismatch in reference from the variable pl061_gpio_driver to the function .init.text:pl061_probe()
    The variable pl061_gpio_driver references
    the function __init pl061_probe()

    which is an incorrectly annotated probe function. Fix it to reflect
    the other AMBA bus probe functions by removing the __init attributation.

    Signed-off-by: Russell King

    Russell King
     

30 Mar, 2010

1 commit

  • …it slab.h inclusion from percpu.h

    percpu.h is included by sched.h and module.h and thus ends up being
    included when building most .c files. percpu.h includes slab.h which
    in turn includes gfp.h making everything defined by the two files
    universally available and complicating inclusion dependencies.

    percpu.h -> slab.h dependency is about to be removed. Prepare for
    this change by updating users of gfp and slab facilities include those
    headers directly instead of assuming availability. As this conversion
    needs to touch large number of source files, the following script is
    used as the basis of conversion.

    http://userweb.kernel.org/~tj/misc/slabh-sweep.py

    The script does the followings.

    * Scan files for gfp and slab usages and update includes such that
    only the necessary includes are there. ie. if only gfp is used,
    gfp.h, if slab is used, slab.h.

    * When the script inserts a new include, it looks at the include
    blocks and try to put the new include such that its order conforms
    to its surrounding. It's put in the include block which contains
    core kernel includes, in the same order that the rest are ordered -
    alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
    doesn't seem to be any matching order.

    * If the script can't find a place to put a new include (mostly
    because the file doesn't have fitting include block), it prints out
    an error message indicating which .h file needs to be added to the
    file.

    The conversion was done in the following steps.

    1. The initial automatic conversion of all .c files updated slightly
    over 4000 files, deleting around 700 includes and adding ~480 gfp.h
    and ~3000 slab.h inclusions. The script emitted errors for ~400
    files.

    2. Each error was manually checked. Some didn't need the inclusion,
    some needed manual addition while adding it to implementation .h or
    embedding .c file was more appropriate for others. This step added
    inclusions to around 150 files.

    3. The script was run again and the output was compared to the edits
    from #2 to make sure no file was left behind.

    4. Several build tests were done and a couple of problems were fixed.
    e.g. lib/decompress_*.c used malloc/free() wrappers around slab
    APIs requiring slab.h to be added manually.

    5. The script was run on all .h files but without automatically
    editing them as sprinkling gfp.h and slab.h inclusions around .h
    files could easily lead to inclusion dependency hell. Most gfp.h
    inclusion directives were ignored as stuff from gfp.h was usually
    wildly available and often used in preprocessor macros. Each
    slab.h inclusion directive was examined and added manually as
    necessary.

    6. percpu.h was updated not to include slab.h.

    7. Build test were done on the following configurations and failures
    were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
    distributed build env didn't work with gcov compiles) and a few
    more options had to be turned off depending on archs to make things
    build (like ipr on powerpc/64 which failed due to missing writeq).

    * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
    * powerpc and powerpc64 SMP allmodconfig
    * sparc and sparc64 SMP allmodconfig
    * ia64 SMP allmodconfig
    * s390 SMP allmodconfig
    * alpha SMP allmodconfig
    * um on x86_64 SMP allmodconfig

    8. percpu.h modifications were reverted so that it could be applied as
    a separate patch and serve as bisection point.

    Given the fact that I had only a couple of failures from tests on step
    6, I'm fairly confident about the coverage of this conversion patch.
    If there is a breakage, it's likely to be something in one of the arch
    headers which should be easily discoverable easily on most builds of
    the specific arch.

    Signed-off-by: Tejun Heo <tj@kernel.org>
    Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>

    Tejun Heo
     

05 Feb, 2010

1 commit

  • This extends the existing PrimeCell PL031 driver with support for
    the ST Microelectronics and ST-Ericsson derivatives, in a first
    and second version as used on the Nomadik and U8500 platforms.
    It also rids the old ioctl() alarm on/off functions in favor of
    the new .alarm_irq_enable field of the RTC class ops.

    Signed-off-by: Linus Walleij
    Signed-off-by: Russell King

    Linus Walleij
     

16 Dec, 2009

1 commit

  • This switches __raw_[read|write]l() for plain [read|write]l in the PL031
    RTC driver. The sister driver for PL030 use the simple accessors as most
    PrimeCell drivers.

    Signed-off-by: Linus Walleij
    Signed-off-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Linus Walleij
     

11 Jun, 2009

1 commit

  • I found the PrimeCell/AMBA Bus drivers distrusting the resource
    passed in as part of the struct amba_device abstraction. This
    patch removes all hard coded resource sizes found in the PrimeCell
    drivers and move the responsibility of this definition back to
    the platform/board device definition, which already exist and
    appear to be correct for all in-tree users of these drivers.
    We do this using the resource_size() inline function which was
    also replicated in the only driver using the resource size, so
    that has been changed too. The KMI_SIZE was left in kmi.h in case
    someone likes it. Test-compiled against Versatile and Integrator
    defconfigs, seems to work but I don't posess these boards and
    cannot test them.

    Signed-off-by: Linus Walleij
    Signed-off-by: Russell King

    Linus Walleij
     

21 May, 2009

1 commit


17 Oct, 2008

1 commit


22 May, 2008

1 commit


20 Oct, 2007

1 commit

  • remove asm/bitops.h includes

    including asm/bitops directly may cause compile errors. don't include it
    and include linux/bitops instead. next patch will deny including asm header
    directly.

    Cc: Adrian Bunk
    Signed-off-by: Jiri Slaby
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     

09 May, 2007

1 commit

  • This patch removes class_device from the programming interface that the RTC
    framework exposes to the rest of the kernel. Now an rtc_device is passed,
    which is more type-safe and streamlines all the relevant code.

    Signed-off-by: David Brownell
    Acked-by: Greg Kroah-Hartman
    Acked-By: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell