Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3411949ybt; Tue, 30 Jun 2020 02:02:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVz1Qhj63WeTGf/yW2Dj8271GHuMWuxqy1nrJHEntVW9MdH/gTlBStsh/7ragX3NLYZjIn X-Received: by 2002:a50:fb93:: with SMTP id e19mr16844498edq.106.1593507720359; Tue, 30 Jun 2020 02:02:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593507720; cv=none; d=google.com; s=arc-20160816; b=XY6yhYNHG5aRD5xs6DnwxgJBP831QI8K9nJOWeGTCle7ALFmBypPNyW2JOjV6dqt3q AC1FIwJjQ+hQsS2d5oNeccrm5YxWjiZQAYpkSRfl8QPCs8NyzaIpEfgJMRBdRLDsJeGm JphT/eLtnUbyAAwFQ5mNP3ITKdsTUFtRxJOtqMGWOE824jArostLEFGnCj7lMSrvWZWK KCTORqi5S6D2Med0V9QqkwvhN+MXoJLkj6lxhejI6b7EAoyqsUogz4kgwLPUZqHQU01Q of/xTQ4Wz7sWnWmisqoYBkvndapHuZNYX/KQ18lPCb3tuHeWxLpnOHk9xEtSYQ3IFMDs 79Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/+Rrah56nIKAyllz8/no6F371/UP686TyD7FGTpNFK8=; b=06baiy3b9qRuOt3TzXekKl9X4fos+y2oBR9xBM4ZAszLr+ULcHHT53BZzuXTzQU+94 FToSVD4kYQluNt1ST6rMcDLTASui79Ensfxli2c0TVN+liUHQc5tYtes8I+03Eqf7uj6 F01a0v1Im5YT5eLpatvkoHDtklUf8B32jN5CMc7xA6nUloRbepGka+NPwLi4Heryksj9 fZ+lP7+wGn0iQV6hlduSXrkYOCuNJqRta/4OfpAsSEOurf/FpI/AfKrei8eTN82kzwPz GPEp0khEeAqMGALWe8ZhmPyuEFjBS9QGagyhbugxgBsG5YKIsVEjRl4jyJEFmCLQihbK k2RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TVXEpJbv; 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 a3si1393658ejd.741.2020.06.30.02.01.37; Tue, 30 Jun 2020 02:02:00 -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; dkim=pass header.i=@kernel.org header.s=default header.b=TVXEpJbv; 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 S1731813AbgF3I6p (ORCPT + 99 others); Tue, 30 Jun 2020 04:58:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:57196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731810AbgF3I6o (ORCPT ); Tue, 30 Jun 2020 04:58:44 -0400 Received: from localhost (unknown [84.241.197.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1D70D206BE; Tue, 30 Jun 2020 08:58:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593507522; bh=dO/4Dals1e24Wdm4wJvVv8JziMJlFugbaMPs/6clEpc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TVXEpJbvQeie03eAJcshyULh0sFvGwWEV+S52zdtC6OzS80mPh2GRx8mWn/o9DmdR e6MtlWRYwwmqoHPBNah3Y471sIOAOFhIaLbJvOPjcJl6ZDs2jTRLLMQSxU1w+OhPYM 5MqaHSXNB1xjFpEwQebO/y8AYZUl6nSdRrvgeOqA= Date: Tue, 30 Jun 2020 10:58:39 +0200 From: Greg Kroah-Hartman To: Daniel Gutson Cc: Derek Kiernan , Arnd Bergmann , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Richard Hughes , Alex Bazhaniuk Subject: Re: [PATCH] SPI LPC information kernel module Message-ID: <20200630085839.GE637809@kroah.com> References: <20200629225932.5036-1-daniel.gutson@eclypsium.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200629225932.5036-1-daniel.gutson@eclypsium.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 29, 2020 at 07:59:32PM -0300, Daniel Gutson wrote: > --- /dev/null > +++ b/drivers/misc/spi_lpc/bios_data_access.h > @@ -0,0 +1,181 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * SPI LPC flash platform security driver > + * > + * Copyright 2020 (c) Daniel Gutson (daniel.gutson@eclypsium.com) > + * > + */ > +#ifndef BIOS_DATA_ACCESS_H > +#define BIOS_DATA_ACCESS_H What BIOS? Is this a UEFI thing? ACPI? Uboot? Fastboot? > + > +#include > + > +enum PCH_Arch { Why the upper-case name? > + pch_none, > + pch_6_c200, > + pch_7_c210, > + pch_c60x_x79, > + pch_communications_89xx, > + pch_8_c220, > + pch_c61x_x99, > + pch_5_mobile, > + pch_6_mobile, > + pch_7_8_mobile, > + pch_1xx, > + pch_c620, > + pch_2xx, > + pch_3xx, > + pch_4xx, > + pch_495, > + pch_5xx, > + PCH_Archs_count Do these have real values that the hardware expects? If so, you need to assign them numbers, right? If not, what do all of these mean? > +}; > + > +enum CPU_Arch { > + cpu_none, > + cpu_bdw, > + cpu_bdx, > + cpu_hsw, > + cpu_hsx, > + cpu_ivt, > + cpu_jkt, > + cpu_kbl, > + cpu_skl, > + cpu_ivb, > + cpu_snb, > + cpu_avn, > + cpu_cfl, > + cpu_byt, > + cpu_whl, > + cpu_cml, > + cpu_icl, > + cpu_apl, > + cpu_glk, > + cpu_tgl, > + cpu_amd, > + CPU_Archs_count > +}; > + > +enum RegisterSource { RegSource_PCH, RegSource_CPU }; Again all of the Caps, please don't use, that's not Linux styles (and checkpatch.pl should have warned you about this, did you run it on your patch?) thanks, greg k-h