Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1021351ybh; Tue, 21 Jul 2020 13:45:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9aVlUk5y3AMFT/XmG2QoggohzbX5ARrIw5HW9Zd4LrJat3UWgXfKPAtGZcZKtwmNunx3P X-Received: by 2002:a17:906:7d9:: with SMTP id m25mr26152855ejc.25.1595364330249; Tue, 21 Jul 2020 13:45:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595364330; cv=none; d=google.com; s=arc-20160816; b=U3li9RRESNdWNi4kVCQR07X+M171RUpDSmIsqqZRvX1gCEVVV77G6gv5EzofT1e64F tV021kucsFHkB0ioYEH6FeCTgeqp/YzraVOoEz5XaA0EIYvDMnDM2vscnsPOL0czIZwm OEFrXPJXo2HMiC6Z0jrhxWywBwOUcuOfH4AjLrlMKJoRDxoEJWEfEKb34/Yk6mAG+Llk Rjq0lHWKCF6E3h5V3HADzVast1WK8zjfUQFf3ExWoFFZqWL/AsJwjXTIuKlYzpub9dRe Cg+DCM0VtPuiyqDTtRIWUPuKvlAYLk+nXvh6vLf8L5Yfmn9+EitTV+6idqUvmE0AJDN3 H70w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=MMin6G2PoB3HLoGRmwfc9KBhnmYi72PHyPyuBl7x8Y0=; b=pNVOHkqzRs0G9j1it22CZG+sMov422ayAB7t3zAT8nJaHn7n7RJGwuZab+kiUu8bW8 23siO/ze1SmpRCuC5M/n9nDy84Fse4owPs2QMOPajut/cOsfzQFeWafHA8TjGe7057ly uktNkqJQjgMmg7bnPQSLEdopHxTeCKOC3S4K2zhEWt6LoQRFrgeN6envIMtr0gIPR/mP CMr4NhrQRVJdjBHdVkXt6QtqI3Sn/G5neWoUuu3cZKd5EyMgmVublDhlelOOH55pLx7p RPenraN6KLSelH8aZZ8gMpbLV835MY4nqX4FOLXE4RYj6nqy3pQmYTWxs1kPW+QN7vpy aI1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si13159509ejw.135.2020.07.21.13.45.07; Tue, 21 Jul 2020 13:45:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730254AbgGUUoX (ORCPT + 99 others); Tue, 21 Jul 2020 16:44:23 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:39613 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730180AbgGUUoX (ORCPT ); Tue, 21 Jul 2020 16:44:23 -0400 Received: from mail-qk1-f180.google.com ([209.85.222.180]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPSA (Nemesis) id 1MuUWi-1koIWl10WA-00rUec for ; Tue, 21 Jul 2020 22:44:21 +0200 Received: by mail-qk1-f180.google.com with SMTP id j187so1937665qke.11 for ; Tue, 21 Jul 2020 13:44:21 -0700 (PDT) X-Gm-Message-State: AOAM532zD8rhU0UwE/NlM6oUROA0gSb4KgPrktsnMb4Z47ro05idAk0T R4f9Meo2MYS+0FfsN1JDzq9Lw2CFzTf99FB6aZ8= X-Received: by 2002:a37:9004:: with SMTP id s4mr20272651qkd.286.1595364260101; Tue, 21 Jul 2020 13:44:20 -0700 (PDT) MIME-Version: 1.0 References: <20200716223627.253936-1-daniel.gutson@eclypsium.com> <20200717062841.GA3238569@kroah.com> <20200717145746.GB3008378@kroah.com> <20200721105256.GC1678476@kroah.com> <20200721182608.GB2586085@kroah.com> In-Reply-To: <20200721182608.GB2586085@kroah.com> From: Arnd Bergmann Date: Tue, 21 Jul 2020 22:44:03 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] [PATCH] Firmware security information in SYSFS To: Greg Kroah-Hartman Cc: Daniel Gutson , Derek Kiernan , Tudor Ambarus , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Mika Westerberg , Mauro Carvalho Chehab , "linux-kernel@vger.kernel.org" , Richard Hughes , Alex Bazhaniuk Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:Jr6zfP3hT7GrP10HEIb/fAcpAg6OzZ8DGQ4TwtEJEj1eZiYy/go 7LDCkIjGd/HdyIjbEChwsVlVqxeH575DaVrtn194WMYeZ69fi2xxtqehNVCh/GgUu9P9sZ8 /pb+24VDxt6+Sa4DIiFg5sBPLvIiAL77SRwq5vEFNQvTfiV1vPzpsXccFs8r66rlY/rMTPB FNRhr8vI2HUd75NXLnGSw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:rCNUwBhdnwE=:3zyWOLwfLNpNVyWjaEGTyL txDpvSU5yGOsQM8Vw76r8/sOyGEGKgXht2XUDSL68qoLHJfA7JU3GyKdVPugk8UUb4L3bANyd pv1XZ/YhU3b8hOuhZrvbZvVI14xIVsNS00kuEDStoCWSsAXIUStRrQwCqB6NQyFRQJV/ozeho ML8dW8TJsQ/wVNQLniofY7A8DBjL7pa6yJvcoRABPKXeEA0D/13x/JugLYLdfVk899lSuT2Bn 2EKuTWRjvrxEk4wlaoCAPaIiN8KO4fGpY4Kfaxl00VirFLazLKNLi4Ndwdrudzc7wcaZZdWWD 3rh3Gs1CBwa041FDM7Uk62/OKaD6P5NrtmtlVKa5Y+cHqT1g3lR11NgtkfB7bccdqq3FZd5Eq lfeBDCmv/pjBsKL7hraGKtqvRF/UF40DGOBpfLVFMqa/8j1+89ZRNZxpRMiYxoc0TFwkQLu+u 3+J7ELuXIVrwUE1iQRI7UVUHTL3kB3kNKVfj5iKl4v57FWteoDRW/fiu3XzdZHWEW2+J7vxO3 gKQcrfriBg2XsE6yrBGm/1Gi9lAdamETLL/clGd4bMkYn5D6sIyN/59kAxo6xgc+FqXKHHA0d zMF02UpsfKFf86ExBd5PaP84853vn39rkxe0xZ814QDnys6DdGEXRGL3oXPsvGF41HmNK1lSn lwQHdFNhwehKzwYTELou6TRNIdiSwz+gVMzLQLpcbHHGcXqJOTlzBQsXpeb2hwZeQd8S85QhB jHzJURXAOGoj+0KX0tlC6j/hcDtarS+5ssL3N6BfdRs33vUJwSTdqQANGQ0IaawF173jyZXOz fzEKrNDPYEehXKrhEHIMspJyJi31iyqgVyy1cQKPcQLmS/CqVt0nG153WKvqY11nXegYjet28 KYWTXA0yoKtgSdcWk7m5cKdsOOeJvLwY6674jpE1Hp2VouPgtIszebiUhEgOzt0aOKUBxpnus QmdfDlPu1FgjRFl64Z/8x3tOXD6fTmzFcmrZzOeutRPwAM38EiwFN Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 21, 2020 at 8:26 PM Greg Kroah-Hartman wrote: > On Tue, Jul 21, 2020 at 01:27:27PM -0300, Daniel Gutson wrote: > > On Tue, Jul 21, 2020 at 7:52 AM Greg Kroah-Hartman wrote: > > > > > If so, great, it should be a "class", as that way it is independent of > > > > > any hardware type, right? Classes show how devices talk to userspace > > > in > > > > > a common way (input, tty, led, block, etc.) So why is this any > > > > > different from that? > > > > > > > > > > > > > Are you suggesting to create a new class, or use an existing one? > > > > > > Probably a new one, unless you can find an existing one that would fit? > > > > > > > IIUC, Arnd Bergmann proposed that I create a class for each device driver > > (in this case, > > for the intel-spi, though I think the class would be spi-nor) and add > > attributes to it. > > In such a case, your proposal and his are different, mutually exclusive. > > Classes should be driver agnositic, and you should not have a single > class per driver, as that is pretty pointless. Yes, that was of course my suggestion as well. The class is how the interface is shown to user space, and each driver that can provide the functionality would have to register an instance of the class device per physical device. > > For me it's easier and makes more sense to have a class for, say, > > firmware-security (if I understood you correctly). > > I still think that's a horrible name, as that is not what you are > describing here, but sure, a single class is good. Right, neither the word "firmware" nor the word "security" gives it any sufficiently specific meaning. Arnd