[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdZCrjWhwcut6AiNdRsyJWFjaz1GgxekYXHhUpcO+iy5BQ@mail.gmail.com>
Date: Mon, 13 Mar 2023 11:32:56 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: "Delphine_CC_Chiu/WYHQ/Wiwynn" <Delphine_CC_Chiu@...ynn.com>
Cc: "patrick@...cx.xyz" <patrick@...cx.xyz>,
Derek Kiernan <derek.kiernan@...inx.com>,
Dragan Cvetic <dragan.cvetic@...inx.com>,
Arnd Bergmann <arnd@...db.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"garnermic@...com" <garnermic@...com>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Stanislav Jakubek <stano.jakubek@...il.com>,
Samuel Holland <samuel@...lland.org>,
"linux-i2c@...r.kernel.org" <linux-i2c@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Lee Jones <lee@...nel.org>, Sebastian Reichel <sre@...nel.org>
Subject: Re: [PATCH v1 3/3] misc: Add meta cld driver
On Mon, Mar 13, 2023 at 9:48 AM Delphine_CC_Chiu/WYHQ/Wiwynn
<Delphine_CC_Chiu@...ynn.com> wrote:
> > On Tue, Jan 17, 2023 at 10:46 AM Delphine CC Chiu
> > <Delphine_CC_Chiu@...ynn.com> wrote:
> > Why should this driver be in drivers/misc and not drivers/mfd?
>
> The cld device is not a physical ASIC.
Nobody cares about the difference, that is only a convention.
It has a stable hardware/software API that is all that matters.
> It's a controller based on FPGA device and the FPGA may be Altera or Lattice.
> So, we put the cld driver in misc folder. Is the cld driver suitable to put in mfd folder?
Yes.
> > MFS has support code for spawning child devices for the LED you are also
> > creating for example, so please use that.
>
> Could you please guide us which device driver we can refer?
For example drivers/mfd/stmfx.c another firmware-driven FPGA thing.
Yours,
Linus Walleij
Powered by blists - more mailing lists