16 Jun, 2020

1 commit

  • There is a regular need in the kernel to provide a way to declare having a
    dynamically sized set of trailing elements in a structure. Kernel code should
    always use “flexible array members”[1] for these cases. The older style of
    one-element or zero-length arrays should no longer be used[2].

    [1] https://en.wikipedia.org/wiki/Flexible_array_member
    [2] https://github.com/KSPP/linux/issues/21

    Signed-off-by: Gustavo A. R. Silva

    Gustavo A. R. Silva
     

30 Jul, 2019

1 commit

  • Introduce wrappers for {bus/driver/class}_find_device() to
    locate devices by its of_node.

    Cc: Maarten Lankhorst
    Cc: Maxime Ripard
    Cc: dri-devel@lists.freedesktop.org
    Cc: David Airlie
    Cc: Daniel Vetter
    Cc: devicetree@vger.kernel.org
    Cc: Florian Fainelli
    Cc: Frank Rowand
    Cc: Heiko Stuebner
    Cc: Liam Girdwood
    Cc: linux-i2c@vger.kernel.org
    Cc: linux-rockchip@lists.infradead.org
    Cc: linux-spi@vger.kernel.org
    Cc: Mathieu Poirier
    Cc: Rob Herring
    Cc: Srinivas Kandagatla
    Cc: Takashi Iwai
    Cc: Alan Tull
    Cc: linux-fpga@vger.kernel.org
    Cc: Peter Rosin
    Cc: Florian Fainelli
    Cc: Heiner Kallweit
    Cc: "David S. Miller"
    Cc: Andrew Lunn
    Cc: Liam Girdwood
    Cc: "Rafael J. Wysocki"
    Cc: Thor Thayer
    Cc: Jiri Slaby
    Cc: Andrew Lunn
    Cc: Peter Rosin
    Signed-off-by: Suzuki K Poulose
    Acked-by: Lee Jones
    Acked-by: Wolfram Sang # I2C part
    Acked-by: Moritz Fischer # For FPGA part
    Acked-by: Mark Brown
    Link: https://lore.kernel.org/r/20190723221838.12024-3-suzuki.poulose@arm.com
    Signed-off-by: Greg Kroah-Hartman

    Suzuki K Poulose
     

13 Jul, 2019

1 commit

  • Pull driver core and debugfs updates from Greg KH:
    "Here is the "big" driver core and debugfs changes for 5.3-rc1

    It's a lot of different patches, all across the tree due to some api
    changes and lots of debugfs cleanups.

    Other than the debugfs cleanups, in this set of changes we have:

    - bus iteration function cleanups

    - scripts/get_abi.pl tool to display and parse Documentation/ABI
    entries in a simple way

    - cleanups to Documenatation/ABI/ entries to make them parse easier
    due to typos and other minor things

    - default_attrs use for some ktype users

    - driver model documentation file conversions to .rst

    - compressed firmware file loading

    - deferred probe fixes

    All of these have been in linux-next for a while, with a bunch of
    merge issues that Stephen has been patient with me for"

    * tag 'driver-core-5.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (102 commits)
    debugfs: make error message a bit more verbose
    orangefs: fix build warning from debugfs cleanup patch
    ubifs: fix build warning after debugfs cleanup patch
    driver: core: Allow subsystems to continue deferring probe
    drivers: base: cacheinfo: Ensure cpu hotplug work is done before Intel RDT
    arch_topology: Remove error messages on out-of-memory conditions
    lib: notifier-error-inject: no need to check return value of debugfs_create functions
    swiotlb: no need to check return value of debugfs_create functions
    ceph: no need to check return value of debugfs_create functions
    sunrpc: no need to check return value of debugfs_create functions
    ubifs: no need to check return value of debugfs_create functions
    orangefs: no need to check return value of debugfs_create functions
    nfsd: no need to check return value of debugfs_create functions
    lib: 842: no need to check return value of debugfs_create functions
    debugfs: provide pr_fmt() macro
    debugfs: log errors when something goes wrong
    drivers: s390/cio: Fix compilation warning about const qualifiers
    drivers: Add generic helper to match by of_node
    driver_find_device: Unify the match function with class_find_device()
    bus_find_device: Unify the match callback with class_find_device
    ...

    Linus Torvalds
     

24 Jun, 2019

1 commit

  • The driver_find_device() accepts a match function pointer to
    filter the devices for lookup, similar to bus/class_find_device().
    However, there is a minor difference in the prototype for the
    match parameter for driver_find_device() with the now unified
    version accepted by {bus/class}_find_device(), where it doesn't
    accept a "const" qualifier for the data argument. This prevents
    us from reusing the generic match functions for driver_find_device().

    For this reason, change the prototype of the driver_find_device() to
    make the "match" parameter in line with {bus/class}_find_device()
    and adjust its callers to use the const qualifier. Also, we could
    now promote the "data" parameter to const as we pass it down
    as a const parameter to the match functions.

    Cc: Corey Minyard
    Cc: Russell King
    Cc: Thierry Reding
    Cc: Greg Kroah-Hartman
    Cc: "Rafael J. Wysocki"
    Cc: Will Deacon
    Cc: Joerg Roedel
    Cc: Peter Oberparleiter
    Cc: Sebastian Ott
    Cc: David Airlie
    Cc: Daniel Vetter
    Cc: Nehal Shah
    Cc: Shyam Sundar S K
    Cc: Lee Jones
    Cc: Christian Borntraeger
    Signed-off-by: Suzuki K Poulose
    Signed-off-by: Greg Kroah-Hartman

    Suzuki K Poulose
     

05 Jun, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this software is licensed under the terms of the gnu general public
    license version 2 as published by the free software foundation and
    may be copied distributed and modified under those terms this
    program is distributed in the hope that it will be useful but
    without any warranty without even the implied warranty of
    merchantability or fitness for a particular purpose see the gnu
    general public license for more details

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

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

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

    Thomas Gleixner
     

08 May, 2019

1 commit

  • clang warns about an unused variable when CONFIG_PM is disabled, since
    it is only referenced from an #ifdef:

    drivers/amba/tegra-ahb.c:97:18: error: variable 'tegra_ahb_gizmo' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration]

    Rather than trying to get the #ifdef right, remove it and use
    __maybe_unused here, which is less error prone.

    Signed-off-by: Arnd Bergmann
    Signed-off-by: Thierry Reding

    Arnd Bergmann
     

02 Apr, 2015

2 commits

  • amba: tegra-ahb: detect and correct bogus base address

    From a hardware SoC integration point of view, the starting address of
    this IP block in the existing Tegra SoC DT files is off by 4 bytes
    from the actual base address. Since we attempt to make old DT files
    forward-compatible with newer kernels, we cannot fix the IP block base
    address in old DT data. This patch works around the problem by
    detecting the four byte base address offset in the driver code, and
    correcting it if it's detected. (In general, IP block base addresses
    almost always have a null low byte.)

    Future SoC DT data for Tegra AHB should use the correct Tegra AHB base
    address, in cases where there is no DT data backward compatibility
    requirement.

    This patch is a revision of the patch originally titled
    "amba: tegra-ahb: use correct base address for future chip support".
    This revision implements changes requested by Russell King:

    http://marc.info/?l=linux-tegra&m=142658851825062&w=2
    http://marc.info/?l=linux-tegra&m=142658873925178&w=2

    Signed-off-by: Paul Walmsley
    Cc: Paul Walmsley
    Cc: Alexandre Courbot
    Cc: Hiroshi DOYU
    Cc: Stephen Warren
    Cc: Thierry Reding
    Cc: linux-kernel@vger.kernel.org
    Acked-by: Stephen Warren
    Signed-off-by: Russell King

    Paul Walmsley
     
  • amba: tegra-ahb: fix register offsets in the macros

    From a hardware SoC integration point of view, the offsets of the
    Tegra AHB registers that are currently defined in tegra-ahb.c macros
    are all off by four bytes. Similarly, the starting address of this IP
    block in our existing DT files is also off by four bytes. Since we
    attempt to make old DT files forward-compatible with newer kernels, we
    cannot fix the IP block base address in old DT data. However, we can
    fix the offsets in the driver so that they are correct with respect to
    the hardware, which is what this patch does. And a subsequent patch
    will allow the offset to be removed for DT 'compatible' strings used
    in future DT files for newer Tegra chips that the kernel does not yet
    support.

    Signed-off-by: Paul Walmsley
    Cc: Paul Walmsley
    Cc: Alexandre Courbot
    Cc: Hiroshi DOYU
    Cc: Stephen Warren
    Cc: Thierry Reding
    Cc: linux-kernel@vger.kernel.org
    Acked-by: Stephen Warren
    Signed-off-by: Russell King

    Paul Walmsley
     

20 Oct, 2014

1 commit


17 Jul, 2014

1 commit


06 Feb, 2014

1 commit


16 Mar, 2013

1 commit


04 Mar, 2013

1 commit

  • Pull late ARM updates from Russell King:
    "Here is the late set of ARM updates for this merge window; in here is:

    - The ARM parts of the broadcast timer support, core parts merged
    through tglx's tree. This was left over from the previous merge to
    allow the dependency on tglx's tree to be resolved.

    - A fix to the VFP code which shows up on Raspberry Pi's, as well as
    fixing the fallout from a previous commit in this area.

    - A number of smaller fixes scattered throughout the ARM tree"

    * 'for-linus' of git://git.linaro.org/people/rmk/linux-arm:
    ARM: Fix broken commit 0cc41e4a21d43 corrupting kernel messages
    ARM: fix scheduling while atomic warning in alignment handling code
    ARM: VFP: fix emulation of second VFP instruction
    ARM: 7656/1: uImage: Error out on build of multiplatform without LOADADDR
    ARM: 7640/1: memory: tegra_ahb_enable_smmu() depends on TEGRA_IOMMU_SMMU
    ARM: 7654/1: Preserve L_PTE_VALID in pte_modify()
    ARM: 7653/2: do not scale loops_per_jiffy when using a constant delay clock
    ARM: 7651/1: remove unused smp_timer_broadcast #define

    Linus Torvalds
     

21 Feb, 2013

1 commit

  • New SoC, Tegra114 also uses SMMU. Change tegra_ahb_enable_smmu()'s
    dependency from ARCH_TEGRA_3x_SOC to TEGRA_IOMMU_SMMU. No need to edit
    whenever a new Tegra SoC comes.

    The following combination caused build error, which this patch fixes.

    CONFIG_ARCH_TEGRA_2x_SOC=y
    CONFIG_ARCH_TEGRA_114_SOC=y

    drivers/iommu/tegra-smmu.c:485: undefined reference to gra_ahb_enable_smmu'

    Signed-off-by: Hiroshi Doyu
    Tested-by: Stephen Warren
    Signed-off-by: Russell King

    Hiroshi Doyu
     

26 Jan, 2013

1 commit

  • Convert all uses of devm_request_and_ioremap() to the newly introduced
    devm_ioremap_resource() which provides more consistent error handling.

    devm_ioremap_resource() provides its own error messages so all explicit
    error messages can be removed from the failure code paths.

    Signed-off-by: Thierry Reding
    Cc: Russell King
    Signed-off-by: Greg Kroah-Hartman

    Thierry Reding
     

04 Jan, 2013

1 commit

  • CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
    markings need to be removed, as well as the use of CONFIG_HOTPLUG.

    This patch does both, removing the use of CONFIG_HOTPLUG in the
    amba/bus.c file, and __devinit and __devinitconst in the tegra-ahb.c
    driver.

    Cc: Bill Pemberton
    Cc: Russell King
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

18 Dec, 2012

1 commit

  • …rnel/git/swarren/linux-tegra into fixes

    ARM: tegra: fixes for 3.8

    This branch contains a few miscellaneous fixes that have shown up in the
    last few weeks.

    By Sivaram Nair (2) and Hiroshi Doyu (1)
    via Stephen Warren
    * tag 'tegra-for-3.8-fixes-for-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-tegra:
    amba: tegra-ahb: Fix warning w/o PM_SLEEP
    ARM: tegra: fix comment in dsib clk set_parent
    ARM: tegra: select correct parent clk for pll_p

    Signed-off-by: Olof Johansson <olof@lixom.net>

    Olof Johansson
     

27 Nov, 2012

1 commit


06 Nov, 2012

1 commit


12 Jun, 2012

1 commit


09 May, 2012

2 commits

  • Add extern func, "tegra_ahb_enable_smmu()" to inform AHB that SMMU is
    ready.

    Signed-off-by: Hiroshi DOYU
    Cc: Felipe Balbi
    Signed-off-by: Stephen Warren

    Hiroshi DOYU
     
  • Tegra AHB Bus conforms to the AMBA Specification (Rev 2.0) Advanced
    High-performance Bus (AHB) architecture.

    The AHB Arbiter controls AHB bus master arbitration. This effectively
    forms a second level of arbitration for access to the memory
    controller through the AHB Slave Memory device. The AHB pre-fetch
    logic can be configured to enhance performance for devices doing
    sequential access. Each AHB master is assigned to either the high or
    low priority bin. Both Tegra20/30 have this AHB bus.

    Some of configuration params could be passed from DT too if needed.

    Signed-off-by: Hiroshi DOYU
    Acked-by: Arnd Bergmann
    Cc: Felipe Balbi
    Signed-off-by: Stephen Warren

    Hiroshi DOYU