lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 13 Jan 2022 14:45:30 +0000
From:   Mark Brown <>
To:     Uwe Kleine-König 
Cc:     Andrew Lunn <>, Ulf Hansson <>,
        Vignesh Raghavendra <>,
        KVM list <>,
        "Rafael J. Wysocki" <>,,
        Linus Walleij <>,
        Amit Kucheria <>,
        ALSA Development Mailing List <>,
        Jaroslav Kysela <>,
        Guenter Roeck <>,
        Thierry Reding <>,
        MTD Maling List <>,
        Linux I2C <>,
        Miquel Raynal <>,, Jiri Slaby <>,
        Linux Kernel Mailing List <>,
        Khuong Dinh <>,
        Florian Fainelli <>,
        Matthias Schiffer <>,
        Kamal Dasu <>,
        Greg Kroah-Hartman <>,
        Lee Jones <>,
        Bartosz Golaszewski <>,
        Daniel Lezcano <>,
        Kishon Vijay Abraham I <>,
        Geert Uytterhoeven <>,
        "open list:SERIAL DRIVERS" <>,
        bcm-kernel-feedback-list <>,
        Zhang Rui <>,,
        Linux PWM List <>,
        Robert Richter <>,
        Saravanan Sekar <>,
        Corey Minyard <>,
        Linux PM list <>,
        Liam Girdwood <>,
        Mauro Carvalho Chehab <>,
        John Garry <>,
        Takashi Iwai <>,
        Peter Korsgaard <>,
        William Breathitt Gray <>,
        Mark Gross <>,
        Hans de Goede <>,
        Alex Williamson <>,
        Sergey Shtylyov <>,
        Borislav Petkov <>,
        Eric Auger <>,
        Jakub Kicinski <>,
        Matthias Brugger <>,,
        Andy Shevchenko <>,
        Benson Leung <>,
        Pengutronix Kernel Team <>,
        Linux ARM <>,, Tony Luck <>,
        Richard Weinberger <>,
        Mun Yew Tham <>,
        "open list:GPIO SUBSYSTEM" <>,,
        Yoshihiro Shimoda <>,
        Cornelia Huck <>,
        Linux MMC List <>,
        Joakim Zhang <>,
        linux-spi <>,
        Linux-Renesas <>,
        Vinod Koul <>,
        James Morse <>,
        Zha Qipeng <>,
        Sebastian Reichel <>,
        Niklas Söderlund 
        Brian Norris <>,
        "David S. Miller" <>
Subject: Re: [PATCH 1/2] platform: make platform_get_irq_optional() optional

On Thu, Jan 13, 2022 at 12:08:31PM +0100, Uwe Kleine-König wrote:

> This is all very unfortunate. In my eyes b) is the most sensible
> sense, but the past showed that we don't agree here. (The most annoying
> part of regulator_get is the warning that is emitted that regularily
> makes customers ask what happens here and if this is fixable.)

Fortunately it can be fixed, and it's safer to clearly specify things.
The prints are there because when the description is wrong enough to
cause things to blow up we can fail to boot or run messily and
forgetting to describe some supplies (or typoing so they haven't done
that) and people were having a hard time figuring out what might've

> I think at least c) is easy to resolve because
> platform_get_irq_optional() isn't that old yet and mechanically
> replacing it by platform_get_irq_silent() should be easy and safe.
> And this is orthogonal to the discussion if -ENOXIO is a sensible return
> value and if it's as easy as it could be to work with errors on irq
> lookups.

It'd certainly be good to name anything that doesn't correspond to one
of the existing semantics for the API (!) something different rather
than adding yet another potentially overloaded meaning.

Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)

Powered by blists - more mailing lists