25 Sep, 2020

1 commit


06 May, 2020

1 commit


24 Mar, 2020

2 commits

  • redefined readx_poll_timeout macro by read_poll_timeout to
    simplify the code.

    Signed-off-by: Dejin Zheng
    Signed-off-by: David S. Miller

    Dejin Zheng
     
  • this macro is an extension of readx_poll_timeout macro. the accessor
    function op just supports only one parameter in the readx_poll_timeout
    macro, but this macro can supports multiple variable parameters for
    it. so functions like phy_read(struct phy_device *phydev, u32 regnum)
    and phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum) can
    also use this poll timeout core. and also expand it can sleep some time
    before read operation.

    Signed-off-by: Dejin Zheng
    Signed-off-by: David S. Miller

    Dejin Zheng
     

15 Jun, 2019

1 commit

  • The conversion here is really trivial: just a bunch of title
    markups and very few puntual changes is enough to make it to
    be parsed by Sphinx and generate a nice html.

    The conversion is actually:
    - add blank lines and identation in order to identify paragraphs;
    - fix tables markups;
    - add some lists markups;
    - mark literal blocks;
    - adjust title markups.

    At its new index.rst, let's add a :orphan: while this is not linked to
    the main index.rst file, in order to avoid build warnings.

    Signed-off-by: Mauro Carvalho Chehab
    Acked-by: Mark Brown
    Signed-off-by: Jonathan Corbet

    Mauro Carvalho Chehab
     

05 Jun, 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 version 2 and
    only version 2 as published by the free software foundation 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 294 file(s).

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

    Thomas Gleixner
     

18 Nov, 2017

1 commit

  • When we pass the result of a multiplication as the timeout or the delay,
    we can get a warning from gcc-7:

    drivers/mmc/host/bcm2835.c:596:149: error: '*' in boolean context, suggest '&&' instead [-Werror=int-in-bool-context]
    drivers/mfd/arizona-core.c:247:195: error: '*' in boolean context, suggest '&&' instead [-Werror=int-in-bool-context]
    drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c:49:27: error: '*' in boolean context, suggest '&&' instead [-Werror=int-in-bool-context]

    The warning is a bit questionable inside of a macro, but this is
    intentional on the side of the gcc developers. It is also an indication
    of another problem: we evaluate the timeout and sleep arguments multiple
    times, which can have undesired side-effects when those are complex
    expressions.

    This changes the two iopoll variants to use local variables for storing
    copies of the timeouts. This adds some more type safety, and avoids
    both the double-evaluation and the gcc warning.

    Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81484
    Link: http://lkml.kernel.org/r/20170726133756.2161367-1-arnd@arndb.de
    Link: http://lkml.kernel.org/r/20171102114048.1526955-1-arnd@arndb.de
    Signed-off-by: Arnd Bergmann
    Reviewed-by: Mark Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arnd Bergmann
     

25 Feb, 2017

1 commit


20 Jan, 2015

1 commit

  • It is sometimes necessary to poll a memory-mapped register until its value
    satisfies some condition. Introduce a family of convenience macros that do
    this. Tight-looping, sleeping, and timing out can all be accomplished using
    these macros.

    Cc: Thierry Reding
    Cc: Andrew Morton
    Cc: Robert Elliott
    Acked-by: Arnd Bergmann
    Acked-by: Will Deacon
    Signed-off-by: Matt Wagantall
    Signed-off-by: Mitchel Humpherys
    Signed-off-by: Will Deacon

    Matt Wagantall