Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp31510pxu; Sat, 21 Nov 2020 21:43:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/Dbh2Q23zYONOgLAUKz2bTPzougJnu0snOm/dLNB4xXzimgNoUpUUOxamABXvo7xsOftZ X-Received: by 2002:a17:906:3807:: with SMTP id v7mr37717758ejc.441.1606023839325; Sat, 21 Nov 2020 21:43:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606023839; cv=none; d=google.com; s=arc-20160816; b=R1H5Rja8t12RaQaQc+8eskebvZynWE59M40W41CiIfBg8XBIJIKt9xi9EOSbM0g7Xx l2P8Yh/enAlBy5LGxeaEoDOxFBw5kQzSyq0+iag2A0TN044c7p2J5wmIDcOwAV/431CN mqWIEFqnXctr0CDa0iGiiXZakqkhucswcOfLAugcU1DKlvfcmZVEWBJZAtnCTTDMtXVJ //pGo/qrSv3ZbmkCirNBVw4BdbMsDAQN2VW6VvA9fY024tsrzkmdEj1gq9CKTeT18la3 D1MUbnED10ZxHttRSdQR2kH3dffCfaiZcmoWYEH6SUkv7bpbnN3cda81/apD40DvffYs t+XQ== 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=qvpm8U35Wi5xW8cDlkOEMWm9u3v4oYij+TGxaJn+sgw=; b=uQhxtrRZi3Saeb2XBoTJ0NHoWqTmxuz/pwQfVkUfAUJIvfX9/EDvHMkMfEMYTJkGlv xOuTsbj+mcFKwzcYESO+7agdt0rNhdPRIFCJWNygyxs0DAFJYNS4NNj93aOaX26iZtMc vy3NcQne6CEvnku93oJK9YKRRaAvcLvjIGvTQalugYxCA3b8N9HVZj5axDf5DLRjvvQC UFaPjnZLkwwZ3dCTL8mAwJChkVuhJkjkIgWT06auMH9CIw+rY/AEwChqHLCPvotr7VS3 mev8PZGVnikqzU6LHM+LCl5B0f6H0FVC5THF2P4gT9Fm1/5fifvdUPhtgb+j4p+KWzNi rI+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="z0/F6IyZ"; 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 k16si4524048ejo.266.2020.11.21.21.43.37; Sat, 21 Nov 2020 21:43:59 -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="z0/F6IyZ"; 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 S1727415AbgKVFlm (ORCPT + 99 others); Sun, 22 Nov 2020 00:41:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727365AbgKVFlj (ORCPT ); Sun, 22 Nov 2020 00:41:39 -0500 Received: from mail-oi1-x242.google.com (mail-oi1-x242.google.com [IPv6:2607:f8b0:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB0EFC0613D2 for ; Sat, 21 Nov 2020 21:41:37 -0800 (PST) Received: by mail-oi1-x242.google.com with SMTP id c80so15857547oib.2 for ; Sat, 21 Nov 2020 21:41:37 -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=qvpm8U35Wi5xW8cDlkOEMWm9u3v4oYij+TGxaJn+sgw=; b=z0/F6IyZHUpoXEJ0ybXF0z+a2Xvsd86bf/HthIlSIfCqh4GOISDFivw9DlSAs43MUf KIiKAlMN1RyUIf05KNffeRroYx2MlnXI6wiQw8MoSLsIF4Vy4C8rBBmsZTyBTVpfIgrY 1Qfoko5q9gxGU0WllYgLcIiywlvSd6LHUBv2z8VfFd8NtnwI9V0ihBcRW6jSIlYsplMQ 8BHhmWltd/2s7hODDaApsQpF0l6uK4mKJKg7AY2COhy7o+orKDBnSoGDH/nlU1qMn3uT R5Xy6Ny3v4wBwutcyUM7HLDJCzXzVAni38fVw5XScvr1dca4ueAv2MG7Sz0ZxksNZZDD U9JQ== 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=qvpm8U35Wi5xW8cDlkOEMWm9u3v4oYij+TGxaJn+sgw=; b=QT1Cbu1SuvL3GReuRjsUuOZshH6G8AKsBU9foMBUZB1o8oPIS1KmCcphDBwQO7Qduv +KJHKSRFCOZ4tb8CZFq5X73Z36nN5juREUixBJci0WRnjpsSXNMaHxYSH2ql05VkmIew yG4xBPKbQxavJp0jicJB3XTo9KOXOrlwpl+B0rG1iJ3DVGLAQRgvEc0irat7hV/9/b4M 9D4lC1gtwYeLtb7dK59Mltnk1lbmlcUtVv5RuKi1xVy2NQSFz5ZI0z3w/85Xi1hScz2l JVeyujvA4AW/gm3LZkav2ou2w44MgFlrncMrnHnGXDnz1Idokeogq5HNjjiSuhusqHVG nvrQ== X-Gm-Message-State: AOAM532oE/SaJFvstNIDP1mVonHNClFdQlDOp9jOk/Qrw4PgX510Ir/D dzaXtcoJH9HKWIcFZDAomyRd1w== X-Received: by 2002:aca:a8c8:: with SMTP id r191mr11456932oie.138.1606023697312; Sat, 21 Nov 2020 21:41:37 -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 s28sm4303132otr.4.2020.11.21.21.41.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Nov 2020 21:41:36 -0800 (PST) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Ohad Ben-Cohen , Siddharth Gupta Cc: Mathieu Poirier , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Steev Klimaszewski , Rishabh Bhatnagar Subject: [PATCH v3 4/4] remoteproc: sysmon: Improve error messages Date: Sat, 21 Nov 2020 21:41:35 -0800 Message-Id: <20201122054135.802935-5-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201122054135.802935-1-bjorn.andersson@linaro.org> References: <20201122054135.802935-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. Tested-by: Steev Klimaszewski Reviewed-by: Rishabh Bhatnagar Signed-off-by: Bjorn Andersson --- Change since v2: - None 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 a428b707a6de..9fed11a2b4ba 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