Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp249142pxb; Wed, 4 Nov 2020 21:40:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzuszJjDMCydavZOO4EU28OcmlZjZcl0+2+IW8Wa6kNjdR8c5q0pPIBboUzHAf8XjAJ6uFm X-Received: by 2002:a17:906:a988:: with SMTP id jr8mr678985ejb.508.1604554830465; Wed, 04 Nov 2020 21:40:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604554830; cv=none; d=google.com; s=arc-20160816; b=08hiqEfoiuC2/SgXHOJm9j4MVrxVXnxhE/+Zx8uNa0X40N7tc0/jtqfRulNJGAUghq s4mZtQDGhkAwp1FahGArcKkf2sus3Rk1lUoKCo0TQAy+RPifVqEqaDY1aip5D1P/JH+h W5V/isqDAwlfxZ4v6bOv7gniWSAlivL+gZ4g7IIDI0rHvGnbcKeRMcc/WuMwWCvzUhqL qhCwYgA0aKx9mqk+nl9gUqw51onH3tI9Y1S+CUcnVwTxkNJqXvh+FJcdwcowsMKOS8/H rB9qOk0uXrOyPKDNIUSIXx3rjTF8b9UaKdYWny9/bTXKoyKJW4kT9a9lIkexxkqkYqe0 qRww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rkVPfPXhshaukUCMauMgnylUImITZ+1YVILqFo4Qmt8=; b=N6URpUrOhun38CghRZC+djlcy+2u7+r0qOghyrU8pfkL5O/JLLWaGc5bcILnvbui7Q /xma7uyJdoH5eo19qGHBJ+bxfb5gyB/sHooSZaY7TqKahJG4ODPLjKN9MlzWMfoUP4M+ 7HEFmcdElgGJf1p3qrxT810lRpUvsRpRfOa9nY71AeKyPG/QRF4mJNGFIL1scSA7hL6M /wshiqrRLmf92kNNm0/IzyPmGEGBc8O6OH7dcFgiSQwwncm3pdHhPDUL/LBX7YMVMERN ATWD1Mh6tsyvrcy3Z2c7gHTHCSXftojlNhRhZXXikTxTirPJ650ByiC+RSHNpPg396b+ yOsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qCL6DA3P; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 33si428306edq.238.2020.11.04.21.40.08; Wed, 04 Nov 2020 21:40:30 -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=@linaro.org header.s=google header.b=qCL6DA3P; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731260AbgKEEul (ORCPT + 99 others); Wed, 4 Nov 2020 23:50:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731018AbgKEEuf (ORCPT ); Wed, 4 Nov 2020 23:50:35 -0500 Received: from mail-oo1-xc44.google.com (mail-oo1-xc44.google.com [IPv6:2607:f8b0:4864:20::c44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7561C0613D2 for ; Wed, 4 Nov 2020 20:50:35 -0800 (PST) Received: by mail-oo1-xc44.google.com with SMTP id f1so129845oov.1 for ; Wed, 04 Nov 2020 20:50:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rkVPfPXhshaukUCMauMgnylUImITZ+1YVILqFo4Qmt8=; b=qCL6DA3P2yHRwk3ltNkvjsvo01LdCn/n8WIEQp1D2XSx3n7ejscKF7XVTDSbGRL8Yw pv9p3TxfK1aeisN4bJOHu5prWSC4G25cR18n5cvHQIeAbSAJuDrELKNuaUYnHpX9WPPI Hb5j4E5XisP8RgNvSCAoZaf69DCpmdZN/19DlyNMaVoWOduMqzJSqgeArp3ecOOpHrEE PrCdUsV9+K1+wPQUlKaA95b7yC4mP724i2NUY5W/JEgQUb+/RUKc/Ryr/OEInsDyQeML /SCVv9veXdrIOIiMIcy9uIPgJPQhnGVObv0gCUifMNge7+FlaIbRooi1xBkOxj1hWchN Uvug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rkVPfPXhshaukUCMauMgnylUImITZ+1YVILqFo4Qmt8=; b=KM5MbyweEMRKQTEu9hg3/rrVQuOdWO2tS4ZHs3V+eQXjiqQm4oWXuFwbM97Z52ryj5 K6+F42pcOT/e0vEAUxUCTB/XNlVIRxooKo1NO0K8qKzEvOIVIwkvd1EwSoobhD7GrP+c HGUrHsm1IHJz7cCIDhxBdV/XBFI2/JxDnmQAcBIp86rJLSjdCKqWlbAog0mRZpXw1vgf HdB/1rIZoabHXC+naFVJg+PoxKPXf5r5LzRqdLXaVAwjLkFKNLFzBF5cOIb4tMR87woD uozTbk9fWh7rtL40JQLbmn4gXzLvpSor4v4R0zDRHVDo3DT5aviViF6DYItvqT66BIOq Q9eg== X-Gm-Message-State: AOAM533FuJUriQ9uPirpPoyK1pFUCPOg0/b1kM85oSjsef1n1sOlphn/ Y1Zwtpyx0iDz2KafodsLZYfNFQ== X-Received: by 2002:a4a:1d03:: with SMTP id 3mr534295oog.19.1604551835201; Wed, 04 Nov 2020 20:50:35 -0800 (PST) Received: from localhost.localdomain (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id k13sm100553ooi.41.2020.11.04.20.50.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 20:50:34 -0800 (PST) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Ohad Ben-Cohen , Siddharth Gupta , Sibi Sankar Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/4] remoteproc: sysmon: Improve error messages Date: Wed, 4 Nov 2020 20:50:51 -0800 Message-Id: <20201105045051.1365780-5-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201105045051.1365780-1-bjorn.andersson@linaro.org> References: <20201105045051.1365780-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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"); } /** -- 2.28.0