Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp87275ybk; Tue, 12 May 2020 16:14:00 -0700 (PDT) X-Google-Smtp-Source: APiQypJ/RZ1E1vc01ayFUP+wcv7W4xOGQr/llD5BtX2+qVFXMiOlzoZTjTa7eEkonHMyFpWZ6aI4 X-Received: by 2002:a17:906:4111:: with SMTP id j17mr20630188ejk.242.1589325240550; Tue, 12 May 2020 16:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589325240; cv=none; d=google.com; s=arc-20160816; b=a6hKoFWsHiemkSA6DfTc/cV5bMhWxNThlex1uIVk0O3F8mGi9Vr2VbkXOwRmgGxwUl R54KZ3fxp8cr0QS+6h3zNkVuqEH4bG1wZAdCdhA9ulW7A4xHBKGn/usTVmnX0jVj9saU GlQfDGwunAGF38xNbWV9cLnuCzFZvIrGE0faPV84A4veT8yHt+GKGOnCS/IM/S0eXX6J 4KzKNYkn5kdpyULkcXh7qVnKKd+mEBaQ8E/HkHqvRukVYr83+YtLQ1LpCdKCmN/vFf7w Fd7PFazRpHw272oNAu6wxe6aQbLx61hCeroYpkv/zvt4aMmpi15lo6YJk4RqNyU1Dxgj FuCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=TjYd3leSKKn51ZfY7qRcr7llrPytDm0GdCIEZD2j8C0=; b=dqwb2xqoHAwmzBBU4z6E95mvJdS/bQWpv49xyuSqKZigB3GIKEuAesVPebpR1kepUD ZWhh2Q7bpogatwATNRzr+c0tqOeNn3qApOB0FSTxYacC6NXhN02syOt1jfcgWDn5RzyI aH69+qh23IeXQHjqftNvCnV0MyjFEwi1n+QD8pTUY5jv/88GkRz+Ur4AOfcFkT0SKA4g 79/0Q4TCGdYAN1+hdH3Q/GBq1XiKf8fd1Z65kTGpNDTOenmh7akd8RVhD0iM1o2EjC0v +vlqa6OG3PMM1x5thCKH8G0wG/YpH+ddE/ivCZdPH84dsJ6fanMZ76zxM3Ehr52YDcXt iXGA== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w15si8209556edi.597.2020.05.12.16.13.36; Tue, 12 May 2020 16:14: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; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731604AbgELXJ6 (ORCPT + 99 others); Tue, 12 May 2020 19:09:58 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:40806 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725938AbgELXJ6 (ORCPT ); Tue, 12 May 2020 19:09:58 -0400 Received: by mail-oi1-f195.google.com with SMTP id v128so2972117oia.7; Tue, 12 May 2020 16:09:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=TjYd3leSKKn51ZfY7qRcr7llrPytDm0GdCIEZD2j8C0=; b=YOcW1N/aZdkNavfBhDLaPPKkCJpdD0SC0EMMo/CW1nENoZkg5aEIo6bYvKbmffD4X1 CpySzjC7Hel/chlTNGwzBwd7jlrviOHs7IsRRZO05yzYV5/la3SjrgUdraxs2srAo0JN k+fvGe+iAMogHhPoKpduAbzlJVIYQdSLVCbNf683JQIUWbE9bexnLH4MAn2E05/CUW5Z WvJ/umlU21AIS6KAs4eT3QmxF8ZZgsatauhezwgjsy1wlsKSQey3AtK7KYSIs40HEJP+ lkl0WK8ajuJ6QWWvGUjAxrsWCd2OY/kzjyTDj/YfbbsCBKdjhLxQLjeM/JPSw/QRdS8u v5CQ== X-Gm-Message-State: AGi0PuZAWZFjJXhhxZ3Q5uBdtblrrex3FIgWhfSO8TgzGargqS/EtK9X JamKUDjbk+VJpRBS8NVx560jTW2OnA== X-Received: by 2002:aca:c68b:: with SMTP id w133mr23020989oif.27.1589324996924; Tue, 12 May 2020 16:09:56 -0700 (PDT) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id 34sm385316otq.67.2020.05.12.16.09.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2020 16:09:56 -0700 (PDT) Received: (nullmailer pid 16218 invoked by uid 1000); Tue, 12 May 2020 23:09:54 -0000 Date: Tue, 12 May 2020 18:09:54 -0500 From: Rob Herring To: Prakhar Srivastava Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, devicetree@vger.kernel.org, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org, mpe@ellerman.id.au, benh@kernel.crashing.org, paulus@samba.org, frowand.list@gmail.com, zohar@linux.ibm.com, dmitry.kasatkin@gmail.com, jmorris@namei.org, serge@hallyn.com, pasha.tatashin@soleen.com, allison@lohutok.net, kstewart@linuxfoundation.org, takahiro.akashi@linaro.org, tglx@linutronix.de, vincenzo.frascino@arm.com, mark.rutland@arm.com, masahiroy@kernel.org, james.morse@arm.com, bhsharma@redhat.com, mbrugger@suse.com, hsinyi@chromium.org, tao.li@vivo.com, christophe.leroy@c-s.fr, gregkh@linuxfoundation.org, nramas@linux.microsoft.com, tusharsu@linux.microsoft.com, balajib@linux.microsoft.com Subject: Re: [RFC][PATCH 1/2] Add a layer of abstraction to use the memory reserved by device tree for ima buffer pass. Message-ID: <20200512230954.GB2654@bogus> References: <20200504203829.6330-1-prsriva@linux.microsoft.com> <20200504203829.6330-2-prsriva@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200504203829.6330-2-prsriva@linux.microsoft.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 04, 2020 at 01:38:28PM -0700, Prakhar Srivastava wrote: > Introduce a device tree layer for to read and store ima buffer > from the reserved memory section of a device tree. But why do I need 'a layer of abstraction'? I don't like them. > Signed-off-by: Prakhar Srivastava > --- > drivers/of/Kconfig | 6 ++ > drivers/of/Makefile | 1 + > drivers/of/of_ima.c | 165 ++++++++++++++++++++++++++++++++++++++++++++ Who are the users of this code and why does it need to be here? Most code for specific bindings are not in drivers/of/ but with the user. It doesn't sound like there's more than 1 user. > include/linux/of.h | 34 +++++++++ > 4 files changed, 206 insertions(+) > create mode 100644 drivers/of/of_ima.c