lists.openwall.net   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  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMRc=Mft8R9RjZhy39G60b2VRi7F2so-iUaARTj+MCgNx+qAqQ@mail.gmail.com>
Date: Thu, 20 Nov 2025 13:33:14 +0100
From: Bartosz Golaszewski <brgl@...ev.pl>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: Andy Shevchenko <andy.shevchenko@...il.com>, 
	Charles Keepax <ckeepax@...nsource.cirrus.com>, David Rhodes <david.rhodes@...rus.com>, 
	Richard Fitzgerald <rf@...nsource.cirrus.com>, Lee Jones <lee@...nel.org>, 
	Mark Brown <broonie@...nel.org>, Philipp Zabel <p.zabel@...gutronix.de>, 
	Linus Walleij <linus.walleij@...aro.org>, Maciej Strozek <mstrozek@...nsource.cirrus.com>, 
	Andy Shevchenko <andy@...nel.org>, linux-sound@...r.kernel.org, 
	patches@...nsource.cirrus.com, linux-kernel@...r.kernel.org, 
	linux-spi@...r.kernel.org, 
	Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
Subject: Re: [PATCH RFT/RFC] mfd: cs42l43: setup true links with software nodes

On Thu, Nov 20, 2025 at 10:56 AM Andy Shevchenko
<andriy.shevchenko@...ux.intel.com> wrote:
>
> > Look at all the find_device_by_fwnode() functions we have everywhere.
>
> What do you mean, please?
>
> $ git grep -n -w find_device_by_fwnode | wc -l
> 0
>

I made up a placeholder name for all different variants of functions
finding devices of different types by fwnode.

> Even if you refer to *_find_device_by_fwnode(), still it's not everywhere,
> just in a dozen of modules.
>
> > The crux of the problem Charles identified is the fact that the
> > secondary fwnode is a field of struct fwnode_handle and not of a
> > struct device. This really doesn't make sense as we see where multiple
> > devices use a single "real" fwnode but want to have different
> > secondary software nodes.
> >
> > Moving the secondary fwnode to struct device would already help a lot
> > but if we're doing that then we may as well switch to a list of
> > fwnodes.
>
> They all should be an independent entity that can be part of the struct device
> but it's not obligatory relation ship.
>
> Again, device may have a backing fwnode, while fwnode might not have a struct
> device consumer.
>

I never said it must have one. Just that it's common and we do use this fact.

Bart

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ