Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp68166imu; Wed, 2 Jan 2019 02:26:18 -0800 (PST) X-Google-Smtp-Source: ALg8bN7bCULS3+l51aW2kBZ+qNM0xvsthDnPzGmrecK/92zlnVbzcgSCqeAdyDIXjP2vr07AE6ak X-Received: by 2002:a62:9111:: with SMTP id l17mr43826710pfe.200.1546424778021; Wed, 02 Jan 2019 02:26:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546424777; cv=none; d=google.com; s=arc-20160816; b=HDRdzQN6sZtjRsvgbUIp2MbW4P8/UFFHQbVDoCY8cr2ZmqKlxfHJ2bXhCLkbwLVZ7k bpvpPh7fWfU+vVsU+i48EVolMlkHQdYmSkbQ6jV/RoXQt457elf2YWugt0Z7FjqfN0Sf x2tlQ0BrU0hLT9tDxqK4kgLMJ3B48DemA/ZFvfgm5gNkyzdvJa2lXq/8vigPpArw+zZB MOEB9qnpdRA4f6rR+wZwF6/wCIixyZYYB4EGJFpThR0ySiOoQsDoNO5GLk0HLoGXdGmV yTPGhqDfP6xgUGmOQmqi6BvYkCMG/CQNpUxnrXZ16MN5FvK+tlx0Cq14vuJoo23hwC6j tX6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=r13PzK6Iugu19pxBWiFYxbpGbMj+8f67/JsvevtkJAU=; b=GiSwtUbRQgr4g4iENvhawQQ57oZavTIJYoRzpnzCHVsUhK8pk6MiZODnnRWJPJlSX/ JrfIC9J4rNpnHNGP5DoN5d6NeNXG5iJ67U4KVDTHTsWy+Ruy1rGhpL/oKLb50AZwEZB/ 44Y9Uq9gdA8UjugsWymCQbGbA+GwFXVxbkQlGwppu9LCae8QUTpLGa1HmJjB/1xoS0wC IQhaktGh0cpeejGuDHhGdygxc+H1YBWP6MmpPv/L8WCs849lmkEnLxpyny3yMee0Jw7r 9dktR8VtRcGVpt3IkIaHxgYIJx6+26YtR53WyXdGP5kyK6lSJOjOShVkpN7tb6i9qcYf aJ3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17si12740665pls.380.2019.01.02.02.26.02; Wed, 02 Jan 2019 02:26:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729115AbfABJ0R (ORCPT + 99 others); Wed, 2 Jan 2019 04:26:17 -0500 Received: from dispatch1-us1.ppe-hosted.com ([67.231.154.164]:37548 "EHLO dispatch1-us1.ppe-hosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728451AbfABJ0Q (ORCPT ); Wed, 2 Jan 2019 04:26:16 -0500 X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us4.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTPS id 01833B40068; Wed, 2 Jan 2019 09:26:15 +0000 (UTC) Received: from hgk-desktop.uk.solarflarecom.com (10.17.20.82) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 2 Jan 2019 09:26:08 +0000 Subject: Re: [PATCH] net: sfc: checks status of efx_mcdi_rpc To: Kangjie Lu CC: , Solarflare linux maintainers , Edward Cree , "David S. Miller" , , References: <20181226050517.74381-1-kjlu@umn.edu> From: Bert Kenward Message-ID: <59347b7d-3b71-348a-9fba-c8a4cc73af3f@solarflare.com> Date: Wed, 2 Jan 2019 09:26:04 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20181226050517.74381-1-kjlu@umn.edu> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.17.20.82] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-24330.003 X-TM-AS-Result: No-5.956300-8.000000-10 X-TMASE-MatchedRID: pBwXUM+nCwsOwH4pD14DsPHkpkyUphL9vtVce6w5+K+pFqY8JHz7MIpb wG9fIuITrmdCENzlRmI5r9xVI8WH2z6e2U7joGs6XP5rFAucBUEF15s6prCIuwpcq1+LTpsUo8W MkQWv6iUD0yuKrQIMCBBWOoA5nlyNC24oEZ6SpSk6XEE7Yhw4Fk0eY87ooSGMUEeSIWllgkC6OR Df9cbUkpcUhpaXW2NDe5Y0uE82u9s= X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--5.956300-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24330.003 X-MDID: 1546421175-YPLAg4_GMMLT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On 26/12/18 05:05, Kangjie Lu wrote: > efx_mcdi_rpc() could fail. The fix checks its status and issues an error > message if it fails. > > Signed-off-by: Kangjie Lu > --- > drivers/net/ethernet/sfc/mcdi.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/net/ethernet/sfc/mcdi.c b/drivers/net/ethernet/sfc/mcdi.c > index dfad93fca0a6..9486e6534dea 100644 > --- a/drivers/net/ethernet/sfc/mcdi.c > +++ b/drivers/net/ethernet/sfc/mcdi.c > @@ -1819,6 +1819,9 @@ void efx_mcdi_set_id_led(struct efx_nic *efx, enum efx_led_mode mode) > > rc = efx_mcdi_rpc(efx, MC_CMD_SET_ID_LED, inbuf, sizeof(inbuf), > NULL, 0, NULL); > + if (rc) > + netif_err(efx, hw, efx->net_dev, "%s: failed rc=%d\n", > + __func__, rc); > } efx_mcdi_rpc() already issues an error message on failure, so this doesn't add anything beyond that. Are you trying to address a particular issue with this patch? Thanks, Bert.