From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6F3F9C4167B for ; Tue, 27 Dec 2022 17:10:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NuOLU75h5bY3LYGmhLdVkgutK+S1ZnlvTz9tiDH0s4Q=; b=YtRiaT5GtF+YQV JdXZLyBip8WQpSaBXI/MyF/1iObcOiquuvevGsOGu1fW53HNZARD0cdD1ccYWFnY2vEQ7FoksaSrx W+SJN/507j+Ap3Pa07AKClxQ8ly+u4a1apXHsSIc+FuZPW/dRKMq4douIwEs1P/k/kKNFjaFrYQdJ TPFdbRAWjNlU+rbF6+1MVUFyWFcEuQuJgKISmrBv2OLIS9Xh8H26Fc6ttf119w/H/4dpIIdpi3O8Y pAeeVeKQ8llEOLvHRWESstiQ5ZiIuj+twDInYsPBgLg1rhrTaaIVGcpkPOw6bgOzLxMsJ7rbymK3I rh4m1pSaJuLuNTV3s8lw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pADSS-00Emw6-DA; Tue, 27 Dec 2022 17:09:44 +0000 Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pADSQ-00EmvA-6V; Tue, 27 Dec 2022 17:09:42 +0000 Date: Tue, 27 Dec 2022 09:09:42 -0800 From: Christoph Hellwig To: Mike Leach Cc: linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, linux-kernel@vger.kernel.org, mathieu.poirier@linaro.org, suzuki.poulose@arm.com, acme@kernel.org, james.clark@arm.com Subject: Re: [PATCH v5 3/6] coresight: configfs: Add in binary attributes to load files Message-ID: References: <20221219234638.3661-1-mike.leach@linaro.org> <20221219234638.3661-4-mike.leach@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221219234638.3661-4-mike.leach@linaro.org> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Dec 19, 2022 at 11:46:35PM +0000, Mike Leach wrote: > Add in functionality and binary attribute to load and unload > configurations as binary data. > > Files are loaded via the 'load' binary attribute. System reads the incoming > file, which must be formatted correctly as defined in the file reader code. > This will create configuration(s) and/or feature(s) and load them > into the system. Binary attributes are intended to pass things such as firmware through. Defining your own structured file format seems like a major abuse of the configfs design. What's the advantage of this over simply using an ioctl? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel