Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp666769rdb; Tue, 23 Jan 2024 10:51:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCIh0hrCEMmAENjetw0HHoYL8QKFJwjQS64KxJ4Xvl+uPebzf2Y3RG4bCy+krq6baSi7yx X-Received: by 2002:a05:6a21:151b:b0:19a:f0fe:6557 with SMTP id nq27-20020a056a21151b00b0019af0fe6557mr8170795pzb.80.1706035864929; Tue, 23 Jan 2024 10:51:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706035864; cv=pass; d=google.com; s=arc-20160816; b=CwkJDAb5/YlLJP+XcYaoPN/rCZI+jX2nPo895rPUwN3pBCFCjSppxZEw7eTC92t9KX MR/HI8x5LPfuOrNPk6ipo4f6lsOJnWY/2xqIL7P6MxlycI/qdmlzWcdEnrSpNCyPgd1q Trztl3qw6uRajpTdhKSHtfqUY2GRPjQnYixrqBI1PPy8/8pi1/WKkqkbqfPJ25fk8lFj eIIZ4RR4Yxuh804mePauGBFpZ6OMwZZ3i5mENw9QjLcdaCq2lNyK/6sGyKDog6+oqUqE 893a57SzC3ZVfHO1NGuq9OEqSdeNVCB1iku8jJGtdYp69TD5JBD67wjb4IyPlTveXz+3 BDlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=LN9h9o0TvW1Z8h064Gtg6LetJEg8QEPXg0Gw2KimOwA=; fh=SQ/rZTRPmKbRDM3rZygmscMoi8wpy5hlb3M3sjydR5c=; b=ibYIYCEKEoAAQDGHcQTjMW9kGcfB0mXBj2tebAAPE9G66MNnQN/FdMNNBa5yKumKHD guu2Y6nCZ5cmwpjc2DvM2EJ1E6OCK9djw2qtYF7VDouKCugivJcv0T7lJfBOArzfpa1b C1Gby3t+MG+zpS4mUKEt8lg5hGYb3HKzFyA8ii+ehPxY/UHfqDLfXeyq9biJOCYjkQei xtv7qVG/J2ueMS1Sebs3JJwfeo3jRdF6vMJMqK3+1Ia5oWcUGvBe2HKk2tBi2+YDrlKe S8o3XOZoaoCB3yzR16/xFfYKtKmjPiFdHlhc+Y7KS2wvDMV1gtctkDvI0+5oFL7BMR1Q roQg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SYBw+EGz; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-35872-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35872-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id x19-20020a63db53000000b005cfbe79e04csi6362038pgi.288.2024.01.23.10.51.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 10:51:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35872-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SYBw+EGz; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-35872-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35872-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3B890B286E3 for ; Tue, 23 Jan 2024 18:37:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 38707823B1; Tue, 23 Jan 2024 18:37:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="SYBw+EGz" Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F33081AB7 for ; Tue, 23 Jan 2024 18:37:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706035049; cv=none; b=qJEpprCk20nAn2vugTpo5jspx40tdx78cL6TNHb8QwOWK+W9EDfgE3sieleapJJKIgDTEhgVaul80m0fpDXmy4djlsGWjzkpfOy4ZwagE/IyYhtzsXrRVUiZmSPAkz/iH7AQsN9mXOxO4K4D8palcMWCEb7v1CT5fIlsKyFK0gw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706035049; c=relaxed/simple; bh=Ws0qJ7T6hmIJBBtfjJFD9PXXxGcginQP0/lng4q35BY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Vmq/vIARUa4CfsOW4+92eV3FGS7fSsiXir342EZ682yORmUMPeX7aUNLXHuymc4Rtcf3Q4M6EYuK+am8BhBkL+z4f5OWa/c0+EMD0eAUUgTUx9t7Kj79N9Wg5RyabgTIfOzb4eeCjUp4e9Qk6WZB5s6wOgy9Z6c3PxbowsLk6Zs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=SYBw+EGz; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-5100c2f7a16so595820e87.1 for ; Tue, 23 Jan 2024 10:37:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706035046; x=1706639846; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=LN9h9o0TvW1Z8h064Gtg6LetJEg8QEPXg0Gw2KimOwA=; b=SYBw+EGzdDL7n2x3ElGBThcY+ooGcXCpPJ8eUwVWSBbnhKkQ9KEr4LAGNn3uUXQy/w jeNUA+XJeu8vVpmd1Dh8Dyb2iyYR7rPdo1o8QhgWJekTqur4ysoy7yXXsduoZHx+r+hz jVYkQ0Bv9zXFD+jHFV07tMzE2LcSqOYIGEqBx2ESC16kWJ8QUs/MnIVgX7RcOOXWFUzC 7ljtH9Mjp1cWAJz7LVVYiCtxPB8cpC8Z5mmb0kWTCLosfScJOdRyMtdv7oiqQpDSz27t HRJWSYN06twDExHVd6rL6d/FYf2p6Pf/xeVVTZ+pKOZZYRN+UHSfElyvjiUbaNB3voUj QyrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706035046; x=1706639846; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LN9h9o0TvW1Z8h064Gtg6LetJEg8QEPXg0Gw2KimOwA=; b=DvuJEzCI1t2gLq2J2cWj8xxInRRO+KF5llzRFWrmF/dGxdhx58iT7SdcNqGb6O3ulX 6qg5m/+TpAYRA2fKwYnjbaGDe2Vim4UHLC2MnS9SOXllKgHZV1OhtA8uBz5VIGPipAva AtFLNRqJNnS1mBBayTXXvJUQTldiJOdiTJmA+QAppBFB6oH+kNNozJJw71oXSe75HiN/ gJZhrI9/vq5Ew7iOuhGzpmPhTzZJ30diVdePM6dH+ofRqTPEtJOclx8PdOUeKleyPvU5 IySW6TxWydOg71yragryOgXC5aHfl6dN4eXZ4y+X6VOtmIOyUcKxpfhwJqIABTMOdv3h QxwQ== X-Gm-Message-State: AOJu0YwfnzuleQiK2A3/RLmzGa8AT7hpmCSOwAB+xOpm9ZAUYhMegPPH KFn5P5/DRd8sHwZbcxXw38YTc9FH46RtwylrAg6c1pSGwcI7PRcg37OYg00X82w= X-Received: by 2002:ac2:5b92:0:b0:50e:7fb1:6433 with SMTP id o18-20020ac25b92000000b0050e7fb16433mr4738283lfn.28.1706035045728; Tue, 23 Jan 2024 10:37:25 -0800 (PST) Received: from [172.30.205.123] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id c26-20020a19761a000000b0051009ef42a7sm199123lff.287.2024.01.23.10.37.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Jan 2024 10:37:25 -0800 (PST) Message-ID: Date: Tue, 23 Jan 2024 19:37:24 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] soc: qcom: aoss: Add debugfs interface for sending messages Content-Language: en-US To: Bjorn Andersson Cc: Bjorn Andersson , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn , Stephen Hemminger References: <20240117-qcom-aoss-debugfs-v2-v3-1-1aa779124822@quicinc.com> <2b43e7f9-9394-4ed2-b6d7-46fdc1e515c5@linaro.org> <20240123002932.GC2936378@hu-bjorande-lv.qualcomm.com> From: Konrad Dybcio In-Reply-To: <20240123002932.GC2936378@hu-bjorande-lv.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/23/24 01:29, Bjorn Andersson wrote: > On Mon, Jan 22, 2024 at 11:44:30AM +0100, Konrad Dybcio wrote: >> On 18.01.2024 03:31, Bjorn Andersson wrote: >>> In addition to the normal runtime commands, the Always On Processor >>> (AOP) provides a number of debug commands which can be used during >>> system debugging for things such as preventing power collapse or placing >>> floor votes for certain resources. Some of these are documented in the >>> Robotics RB5 "Debug AOP ADB" linked below. >>> >>> Provide a debugfs interface for the developer/tester to send some of >>> these commands to the AOP, which allow the user to override the DDR >>> frequency, preventing power collapse of cx and ddr, and prevent AOSS >>> from going to sleep. >>> >>> Link: https://docs.qualcomm.com/bundle/publicresource/topics/80-88500-3/85_Debugging_AOP_ADB.html >>> Signed-off-by: Bjorn Andersson >>> --- >> >> [...] >> >>> >>> +struct qmp_debugfs_entry { >>> + const char *name; >>> + const char *fmt; >>> + bool is_bool; >> >> This can also be const >> >>> + const char *true_val; >>> + const char *false_val; >> >> All of these strings can be const ptrs to const data >> > > These are all const data now, but what would the reason for enforcing it > in the struct definition be? I've just written too much rust lately and I'm simply paranoid about mutability, it seems ;) Konrad