On Mon, Jan 9, 2023 at 2:41 PM Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> wrote: > On Mon, Jan 9, 2023 at 2:16 PM Linus Walleij <linus.walleij@xxxxxxxxxx> wrote: > > On Tue, Jan 3, 2023 at 10:01 AM Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> wrote: > > > > If this should go into sysfs we should probably create something > > > > generic, such as a list of stuff to be exported as sysfs switches. > > > > > > > > It generally also looks really dangerous, which is another reason > > > > for keeping it in debugfs. It's the big hammer to hurt yourself with, > > > > more or less. > > > > > > Yes, generic would be nice. Anyone familiar with other hardware > > > that could make use of this? > > > > Drew was using this for Beagle Bone IIRC, Drew? > > Yes, that's what I remember, too. And I tested it on Koelsch. > > But again, that's for debugging purposes. For non-debugging > operation, we need something different. Actually Drew's usecase wasn't for debugging. It was kind-of production, but it was for "one-offs" such as factory lines and other very specific-purpose embedded. The placement in debugfs was mostly because it is fragile and dangerous. Yours, Linus Walleij