Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4442408pxb; Tue, 10 Nov 2020 17:07:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+Hdw6AgqTd04t5vQ+ivu9Z3KbpCEtpCMAVfJp6ctyJeCUM9xCpzUCXqfcb8yGlzVqx9Q4 X-Received: by 2002:a50:e61a:: with SMTP id y26mr24384902edm.71.1605056847500; Tue, 10 Nov 2020 17:07:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605056847; cv=none; d=google.com; s=arc-20160816; b=E2/B4XKuKmiYpx46LDBxjO2GgNyFSJ/7/5xQLZbROAc0lP/ynUqLaBHaDeesbVBcyg /aZl2CMyR3ytUfB33jlRIfJtI/7sLOswWYOo+Wr/anbu3d6+O0RHjXeb1hzYJ6/DD4aK liFkAT2mNQKZ5MFft514LYqqrL1BmovXHuWehpk+9qImaSUhTxpL7DUBDT2upGd8fHXm IAFMocW1kIaVe+3A5ZS4esGI4o7vtwu3RUIZjOnxOvB4fmMS0wHX7loCe9tAOyhlzRC3 0xCXqVWXRLuP2COrXkEu4nTxSTUmBYJMIR01xW90m6uDaIYNx4AF2WE+EC58THlOUCIB 0Fjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=G4FZ8gmhmVNCMNey8HG1PJzz0ZnJLvtQudj18MvCfxc=; b=DEjRZOUnWB7nsjO7kh/Lrc+AK/br74f6a/lWsI5A+kFO7vwAnvMhnHM345jz7M6F27 QD3uMqCnZbLYpQflkKXGmRErjV80lvB/Kmv7qNHT6TuplAV8RiMwlw30CyxyoNxXha3G 4MH34E7kRPi7R9vkazmNpD0DQMIRBQO5FiPncCSfPXSVerldE+4Hho7qCeBxBHduDGUS D2JRlGBdcIxtwjtqM8D5f/jqc68wgFY7LFEVnRFlZeV0MMNL8yprq24COSCV4FdHx1H8 ZWEqWQHIrc2snuA0DJ5ULWoWdIhFXgzuMtD7QaseY65/yFHHVBQ7cg6b/gTlBdbnZmjT qfeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="XQ1BUhO/"; 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 qq25si211617ejb.546.2020.11.10.17.06.53; Tue, 10 Nov 2020 17:07:27 -0800 (PST) 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=@mg.codeaurora.org header.s=smtp header.b="XQ1BUhO/"; 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 S1732174AbgKKBEk (ORCPT + 99 others); Tue, 10 Nov 2020 20:04:40 -0500 Received: from z5.mailgun.us ([104.130.96.5]:62356 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731982AbgKKBEk (ORCPT ); Tue, 10 Nov 2020 20:04:40 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1605056680; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=G4FZ8gmhmVNCMNey8HG1PJzz0ZnJLvtQudj18MvCfxc=; b=XQ1BUhO/DwksmP4KP3fkhE+9HMQiSIXHJTqcyfzR3FrR1V/imx0B7GJMZvXBa15VnSvduOy9 8xfKKP4ALTu68OBVYfLjj2rfxZICBh17kOZr/LDI5M6Jou11MIp8vWCkHerkWAML2IG5fkWc MvN8N0OkcvFb7kb4NPgVfnIH2qU= X-Mailgun-Sending-Ip: 104.130.96.5 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n01.prod.us-east-1.postgun.com with SMTP id 5fab38a4b8c6a84a5c46c861 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 11 Nov 2020 01:04:35 GMT Sender: rishabhb=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 478E6C433C9; Wed, 11 Nov 2020 01:04:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: rishabhb) by smtp.codeaurora.org (Postfix) with ESMTPSA id D975AC433C8; Wed, 11 Nov 2020 01:04:34 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 10 Nov 2020 17:04:34 -0800 From: rishabhb@codeaurora.org To: Bjorn Andersson Cc: Andy Gross , Ohad Ben-Cohen , Siddharth Gupta , Sibi Sankar , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 4/4] remoteproc: sysmon: Improve error messages In-Reply-To: <20201105045051.1365780-5-bjorn.andersson@linaro.org> References: <20201105045051.1365780-1-bjorn.andersson@linaro.org> <20201105045051.1365780-5-bjorn.andersson@linaro.org> Message-ID: X-Sender: rishabhb@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-11-04 20:50, Bjorn Andersson wrote: > Improve the style of a few of the error messages printed by the sysmon > implementation and fix the copy-pasted shutdown error in the send-event > function. > > Signed-off-by: Bjorn Andersson > --- > > Changes since v1: > - New patch > > drivers/remoteproc/qcom_sysmon.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/remoteproc/qcom_sysmon.c > b/drivers/remoteproc/qcom_sysmon.c > index 1c42f00010d3..47683932512a 100644 > --- a/drivers/remoteproc/qcom_sysmon.c > +++ b/drivers/remoteproc/qcom_sysmon.c > @@ -352,9 +352,9 @@ static bool ssctl_request_shutdown(struct > qcom_sysmon *sysmon) > > ret = qmi_txn_wait(&txn, 5 * HZ); > if (ret < 0) { > - dev_err(sysmon->dev, "failed receiving QMI response\n"); > + dev_err(sysmon->dev, "timeout waiting for shutdown response\n"); > } else if (resp.resp.result) { > - dev_err(sysmon->dev, "shutdown request failed\n"); > + dev_err(sysmon->dev, "shutdown request rejected\n"); > } else { > dev_dbg(sysmon->dev, "shutdown request completed\n"); > acked = true; > @@ -397,18 +397,18 @@ static void ssctl_send_event(struct qcom_sysmon > *sysmon, > SSCTL_SUBSYS_EVENT_REQ, 40, > ssctl_subsys_event_req_ei, &req); > if (ret < 0) { > - dev_err(sysmon->dev, "failed to send shutdown request\n"); > + dev_err(sysmon->dev, "failed to send subsystem event\n"); > qmi_txn_cancel(&txn); > return; > } > > ret = qmi_txn_wait(&txn, 5 * HZ); > if (ret < 0) > - dev_err(sysmon->dev, "failed receiving QMI response\n"); > + dev_err(sysmon->dev, "timeout waiting for subsystem event > response\n"); > else if (resp.resp.result) > - dev_err(sysmon->dev, "ssr event send failed\n"); > + dev_err(sysmon->dev, "subsystem event rejected\n"); > else > - dev_dbg(sysmon->dev, "ssr event send completed\n"); > + dev_dbg(sysmon->dev, "subsystem event accepted\n"); > } > > /** Reviewed-by: Rishabh Bhatnagar