Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp258171rdb; Thu, 2 Nov 2023 02:56:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFIKgbSYB6BURmWJ/s//Lqt9AkbFTKfmjsZgM5iwx+aokAvz+fcVTlgeYmc8XCgVjWrEhV9 X-Received: by 2002:a17:902:d2c1:b0:1cc:5ac3:853f with SMTP id n1-20020a170902d2c100b001cc5ac3853fmr11310486plc.23.1698918979522; Thu, 02 Nov 2023 02:56:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698918979; cv=none; d=google.com; s=arc-20160816; b=JUZhTf2jRx+TYRBl2sqB/f0NDMW4qykrIRo9iQ6K3amzKLRDfsL6c2HbNKoUunZZKI VpqKzc07iUKxG5a5DYr97HvTkvJTia43Fv7U90taJSw/xUHOiZpbH7iKGmVZ2A0lZRXu jHCHPdqN/wFEOM/BVrogIfUmbfNzvAZ5ehgx7gZk8js1fVtfFavhBD4vzbythDLm8750 TQrG0bYrUFCI26VnXj5tfPVwvWF8xLmw/UFZEahWEHXA1e9jIkT2Wr1ZbjwbO3FfjpJF lfcHlpbR+tWQLj2dcqNcTWPO27+wTONCphRshxA689/UR/qafV7LwYaTTVg0kfYoEI6G LtWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:cc:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=KD1LP756xWcLmOGue5zN8DFu0Ql7ryK355DrzfRDjH4=; fh=1Sa58lrhjndThH9PWswHZRzicawM1bb1M0ERMIA4OUI=; b=qfi1vgum3pQbwT3j3bxXXzU6pHqPBva9AB+uAt/h1Mjg118rvoM0tNBz2yXAX/vha8 P5fHfp5lwjKwN0LzAKr6mwAiuiygM8sMZh7Jx72QSLlfrPhb3vVW2mBnvHHFc/OdC4L/ /mbIon5b0i30F7qCLjcufkarX2lL+Lu5STrDv3F21yPuz/Fs7o14JYmEzlhyxLM1y/33 ejhNTausS3EUzmJt17H5H8kO5n6lmAgpevbjryN9bBzrA/Km86Jnu32qGGnvH9XTOzk+ +D1VseQ6/FnvHRdiHaPJYG+9wJ2TTQAW8aQsoB3DW2Ela5gxCJ6IRgD8Vi99GhyTCx9a rGNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20230601 header.b=L4o0JABn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id b17-20020a170902d51100b001c3845d008csi5087234plg.424.2023.11.02.02.56.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 02:56:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20230601 header.b=L4o0JABn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 7709F809715D; Thu, 2 Nov 2023 02:56:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345713AbjKBJz4 (ORCPT + 99 others); Thu, 2 Nov 2023 05:55:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345500AbjKBJzz (ORCPT ); Thu, 2 Nov 2023 05:55:55 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE31913A for ; Thu, 2 Nov 2023 02:55:50 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-53de8fc1ad8so1172358a12.0 for ; Thu, 02 Nov 2023 02:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698918949; x=1699523749; darn=vger.kernel.org; h=content-transfer-encoding:cc:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=KD1LP756xWcLmOGue5zN8DFu0Ql7ryK355DrzfRDjH4=; b=L4o0JABnVMIR5pc56fo8/YAJEFHy1LhmDz1H20X6Tz2omqDFRsgkBVLrJ3xyq3q0Cp RHcm81LB7+Tt8wx5xOnsl0pCTN+fXbJet4LUwIv6x/IAdwTFqEWvahuUbWmq1yMWOD6u lzlXgjL9kD2yZMLNHbNSiZLFYwNW8in6yfwpXYfFbNJNhbnxU3kJdeZJOwOxnW1XhVOH i4ef7DsUWcXJkE5hIC82LaCPGMB8HpLml2neGZ8+/p3VdMOgxNCeGufuDIUPtdf0yY1T csHCJOnDAaov0X2qdrLr2nC5Fark6jFc17LxBed2zPetVnGFxBeTzHCA++H9FfPG7qqP HzwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698918949; x=1699523749; h=content-transfer-encoding:cc:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KD1LP756xWcLmOGue5zN8DFu0Ql7ryK355DrzfRDjH4=; b=RSCNRHG22psGYarLQQp5d1wk4vNf/FrqN38dK5bmlVfLAAIs1PxvL8u91IUzENiVLD v7S/3NvwVDk2YeCUEgrxuQYya5boPf9PXXPhFNADqcgDeya6+Dhgd/O5A2sepyJ1eely NCy4iR9Dg7jYHlePaVPRPOAX+bIyFWcoLNOCAIxYUzK8BSvPOLmn8C3d+vS6jAijKRfL 7bmV9WRp1hmsKAkMXd2dN2TQTf+f49DCNHAISng2b9xN1b3UYL9HNtYqnhtORM6z3rIk TRShYQwoUhf15Pi4R6QD5cIY4/WrgRyikKEn6IanG6r7Zi+C7329BPthp6RNgl9SH5DU 8kug== X-Gm-Message-State: AOJu0YxNztW9UW3czWzp+FNTiSV/I99+65pp07Sxqurl4Ze19GJomAo+ Z6uBKtZEkJLi16/+HhGeDjG9SOXvAcWcemkBd9H9i4T2 X-Received: by 2002:a17:907:6d27:b0:9ba:2fe3:c97e with SMTP id sa39-20020a1709076d2700b009ba2fe3c97emt3051134ejc.11.1698918948114; Thu, 02 Nov 2023 02:55:48 -0700 (PDT) MIME-Version: 1.0 References: <20231101081726.1163042-1-xinglong.yang@cixtech.com> In-Reply-To: <20231101081726.1163042-1-xinglong.yang@cixtech.com> From: sean yang Date: Thu, 2 Nov 2023 17:55:37 +0800 Message-ID: Subject: Fwd: [PATCH] firmware: arm_scmi: Remove inappropriate error log. Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.3 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 02 Nov 2023 02:56:04 -0700 (PDT) ---------- Forwarded message --------- =E5=8F=91=E4=BB=B6=E4=BA=BA=EF=BC=9A xinglong.yang Date: 2023=E5=B9=B411=E6=9C=881=E6=97=A5=E5=91=A8=E4=B8=89 16:17 Subject: [PATCH] firmware: arm_scmi: Remove inappropriate error log. To: , , Cc: The platform may not support fastchannel, but this is a legal operation. -Before this patch, when the platform not support fastchannel, goto err_xfer will print "Failed to ...". This log is misleading. -With this patch, when the fastchannel is not been supported, the "Failed to ..." log will be skipped. Signed-off-by: xinglong.yang --- drivers/firmware/arm_scmi/driver.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/firmware/arm_scmi/driver.c b/drivers/firmware/arm_scmi/driver.c index b5957cc12fee..2b990e50c8a5 100644 --- a/drivers/firmware/arm_scmi/driver.c +++ b/drivers/firmware/arm_scmi/driver.c @@ -1642,7 +1642,10 @@ scmi_common_fastchannel_init(const struct scmi_protocol_handle *ph, * fastchannels at all. */ ret =3D ph->xops->do_xfer(ph, t); - if (ret) + if (ret =3D=3D -EOPNOTSUPP) { + ph->xops->xfer_put(ph, t); + goto return_normal; + } else if (ret) goto err_xfer; resp =3D t->rx.buf; @@ -1695,6 +1698,7 @@ scmi_common_fastchannel_init(const struct scmi_protocol_handle *ph, "Using valid FC for protocol %X [MSG_ID:%u / RES_ID:%u]\n", pi->proto->id, message_id, domain); +return_normal: return; err_db_mem: -- 2.42.0