Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1009458rdb; Fri, 19 Jan 2024 05:43:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IH0hGxeiJMHvO6BvpKbNF1hhnBnLJ3gL3bnwiojGEul6CJRRFqmXj1xIf55gfw36zbht8T4 X-Received: by 2002:a17:902:8c95:b0:1d6:f240:87df with SMTP id t21-20020a1709028c9500b001d6f24087dfmr2700872plo.4.1705671805077; Fri, 19 Jan 2024 05:43:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705671805; cv=pass; d=google.com; s=arc-20160816; b=aINnJBeM9pKPk1CRGDAniW5KORGTP4NrUBfPyqbJYylUi+Mc/sBY/6CvXJgzd2ORz+ b3ZmGSTrpG9rWhRFfW+uTq0gvrnI6XtYx24CMx40flVGQeTCueVtt7Dgur9yuNqIYjkR LeLlYdYHQJhI6RFb/iU26pIfeneqG4r2ZG0mfHylHYxcTbsM9bDKZ6S2n7I5QMCiKp7u qOIzRiik4CV7RGVvfQ6rvPUnYQpKzVv4iITER6OZSCqK09lXXpkaORAYiz2uu2SPHFsQ KMKBAWr6NsBqO70qCqfWysrImYhHnt52qr7Bz2aKkUFY9RNaP+/fXSlmHKNqGbb7t2ru NMBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qcazD5k91TvVsRHS5wae0pStlAbdELEQKCdTVo0NwSk=; fh=0wG0OJonzF+vbyf6k+pdmS0qnztynCUqRoY5EelSTa0=; b=g6YGgqgMxD+rbU2/xEPh2XxgXgMRo2LBh53u4kgTEa8cWBlpbemLxVAlfpphRivDPp 608GYfruwCI3zg3wrDX1rcqv45rxmDozEr6pwNOSg+I3p8yzBnnp1oqABkacHUKxl52r mn7KQC19LPiEx0gNCk5NgOd1aMAT6OfosUaVcDQcP3vUqb+Okjy/zhWWqg+nsAWT7ZSa Hzs22KsMOmEu3xewf804upJ7ATfZ0kOeFEOqRWlKePc4NbeAdMGvs+u5FPiN/b1b132m UpOw4kxCEG6YhOrZqXY5vtNNuBsBlvD+Frk/edjDVx2gWlIS1m+AcgWE5tfmT5EQqRSj b79A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=judiT5ws; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-31214-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31214-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e2-20020a170902744200b001d4ca2fcc4asi3351583plt.291.2024.01.19.05.43.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 05:43:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31214-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=judiT5ws; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-31214-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31214-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8CE382872BD for ; Fri, 19 Jan 2024 13:43:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A57E52F8E; Fri, 19 Jan 2024 13:43:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="judiT5ws" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A973D524A8; Fri, 19 Jan 2024 13:43:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705671797; cv=none; b=jj6/XOvaAcGP8mnqYTnB1PDLjogJVX94jgTeDrHpz5QscrB578BEHeQ/t528PzVq2kEQ3d6ElTE2Zuja0AzpjrnZn9/lHz6KCEl/p1JiKgC2gWFJzLXWM5xab9njwVoTv5LUZ+g7FVkFd8q0soDjocAcKPK2rGys32mykm4PJCQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705671797; c=relaxed/simple; bh=fHnQTGtIou/sS3njhF57F/qobMTpJROBdNwcGqxMbA4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cSkUA5wP5FTCwuutUgavZgsZgwo2qSLBmCt3Wliz3MSOG+uta3r4RWGTE7DWD7mecvVoixzNx3ydQIDqAnm/5X6wi2vBjLr1qgHNxf9cQqGgsPbV9HHgeXHriaNEjbWH+b/F9EUBp3R0tfBtQPHugQPGWgw/I84YctGdbXqZvH8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=judiT5ws; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=qcazD5k91TvVsRHS5wae0pStlAbdELEQKCdTVo0NwSk=; b=judiT5wsjEzh6HaqJcbIiGRRI8 TdbVtvYiY7zvqew5toBvWvObp/Qy/K0hcTpc2nrPvJmIMHfeqiqflm5cSyg3PNmOICBTh4pg59Hxi 98pYraGnm8F+ItDgy0kBV5DsTs57zuMv6cHR77RLxEVj1wv+8nh5uhjnEaGeLmPckVxc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rQp9I-005Yt9-1o; Fri, 19 Jan 2024 14:43:08 +0100 Date: Fri, 19 Jan 2024 14:43:08 +0100 From: Andrew Lunn To: Bjorn Andersson Cc: Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Stephen Hemminger Subject: Re: [PATCH v3] soc: qcom: aoss: Add debugfs interface for sending messages Message-ID: References: <20240117-qcom-aoss-debugfs-v2-v3-1-1aa779124822@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240117-qcom-aoss-debugfs-v2-v3-1-1aa779124822@quicinc.com> > +static void qmp_debugfs_create(struct qmp *qmp) > +{ > + const struct qmp_debugfs_entry *entry; > + int i; > + > + qmp->debugfs_root = debugfs_create_dir("qcom_aoss", NULL); > + > + for (i = 0; i < ARRAY_SIZE(qmp->debugfs_files); i++) { > + entry = &qmp_debugfs_entries[i]; > + > + qmp->debugfs_files[i] = debugfs_create_file(entry->name, 0220, group write? Generally you only want root able to do writes. However, thanks for reworking this to just support some well defined commands, rather than binary blobs from user space. Andrew