Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4215865pxk; Tue, 8 Sep 2020 13:52:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpKVkZ9R6gW3dm7xkzalMkMpVo8gfQV+jy9OzFPVFbjoHuiGkDcNsBSMubksnvXce1H2bP X-Received: by 2002:a17:906:660f:: with SMTP id b15mr298738ejp.333.1599598338807; Tue, 08 Sep 2020 13:52:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599598338; cv=none; d=google.com; s=arc-20160816; b=Hmc0AMy5Wj08D43o5QIhWEB4Sac+pAJY8zIwaR8MhCB4ien/N0wPHJ42atQxLAxZWD Z+ams2bm9NbAjy42cwC/EcIMFTTzDF8PdYf6x+XCWYE5hcWYyFZz5fvZ8ymBxLlIifZI epveLEsDIG13ieLlsTUTGVyO7dHHSXeuSDSHUlMiOpnrpjaffNjfGfQJ9tvnwAGJ3LmP 8dofXY0XjEIeIIvdG9Z/G+/KOOrpxunScMIN5wWRmnCCn13X2syFGtSCDisZYsL2B+vB fJipFwaoW7AuTB84VEu8yr9MO7gSRkATrpcC2QVIhvXbhHBAOfkFsBWllt4G5R9Ql5Nu SHgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=xoSQAwVM8O1hGcY9QbkiTZZ+wX5qFR4tgBBCr4zK6gc=; b=gi0Ffodnv5NorJ9sm9X0q3HPOyZS5rPBcxo0m04mpgeHGPV95MHc23TYVkDNWfjMYp CmYVP+6r+G2bsV8MzP++J0VM1bNJiKtt5pfK+/DUH04CjnVauMUCKqrCMGut/BeQaS3m Jasj/M+plrPTvcQkRpiRQpEf/zucWWjysiAYbCF0c+SCutgWzgd2thc7d7QruZQXfoGS TLPNiiH22zCywBPbE1ZVIPPS53sL5sTfGF48t9r3U6IZwSxgRd0LxDVmBNA0miXTyzZF dpP+TNUxq7OCbxIZMYpHbDvcS8jLBmR4DT952Ew+G5uXmpqd3XihaRDu5iLlmQBjd4Im n2WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=G4q9KXso; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n25si165118edt.464.2020.09.08.13.51.54; Tue, 08 Sep 2020 13:52:18 -0700 (PDT) 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=@broadcom.com header.s=google header.b=G4q9KXso; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730181AbgIHUt7 (ORCPT + 99 others); Tue, 8 Sep 2020 16:49:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730177AbgIHUt5 (ORCPT ); Tue, 8 Sep 2020 16:49:57 -0400 Received: from mail-ot1-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E5E6C061755 for ; Tue, 8 Sep 2020 13:49:57 -0700 (PDT) Received: by mail-ot1-x344.google.com with SMTP id a65so395524otc.8 for ; Tue, 08 Sep 2020 13:49:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xoSQAwVM8O1hGcY9QbkiTZZ+wX5qFR4tgBBCr4zK6gc=; b=G4q9KXsoVWjFo1yfWah0XOvDMKKhbO6/pYmh3TuTkdj2y3H0X2x9mToCv9vPUQEMzi +yX6E5wgORsLlIgUM+Hlv916qks9eP6hUwYTwsb1oyDvxDdxz1qQEcItmYY95XZkQx0Y oz91YkTKLsUW4S2+hZdvRZJqyZWtRTachOcyM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xoSQAwVM8O1hGcY9QbkiTZZ+wX5qFR4tgBBCr4zK6gc=; b=HrZ59Ixw6IkkCVDpPti00/lxlWjsT3wI1r+4bFVJH0u1Eg/ueQK9slIPB4kmlmOu97 ET5OycZyswlAGYqDexJ/dBztlpn2wMU0ZLnZHOLyAj99c3xlSUUxnP2suWohT1IMZ55T 0c41H4XIM8mux7gr7UtcsQrBAFuEjXblYa4QATFFwPYUUnyt10rvTBL9DFallJdjPHWv JnYnc0d1NZ5o0/paJxXQEjqhTuHuIM8XcNIuzce5aaXJhSvcyUjqukdRASQQQ51ZUNZA 61pinAiR53SBmUCEw0HxFOMTa+cvKy4n62cPb1UbXeS2qf1mLXJkTOcxvKQxzqz5lbOI L7tQ== X-Gm-Message-State: AOAM531VEuLgxEOC9+n+xgPHjOAjSUpBaYTGOOZNB4oRU0zlvwnGHIky del4zzhTz5p5N7whNYLXvm79PcZ+BQpZL9cZd/mkYBke5BQ= X-Received: by 2002:a9d:908:: with SMTP id 8mr671619otp.356.1599598196384; Tue, 08 Sep 2020 13:49:56 -0700 (PDT) MIME-Version: 1.0 References: <20200908152221.082184905@linuxfoundation.org> <20200908152222.792503974@linuxfoundation.org> <20200908194723.GB6758@duo.ucw.cz> In-Reply-To: <20200908194723.GB6758@duo.ucw.cz> From: Edwin Peer Date: Tue, 8 Sep 2020 13:49:20 -0700 Message-ID: Subject: Re: [PATCH 4.19 34/88] bnxt_en: fix HWRM error when querying VF temperature To: Pavel Machek Cc: Greg Kroah-Hartman , Linux Kernel Mailing List , stable@vger.kernel.org, Marc Smith , Michael Chan , "David S. Miller" , Sasha Levin Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 8, 2020 at 12:47 PM Pavel Machek wrote: > > +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c > > @@ -6836,16 +6836,19 @@ static ssize_t bnxt_show_temp(struct device *dev, > ... > > - return sprintf(buf, "%u\n", temp); > > + if (len) > > + return len; > > + > > + return sprintf(buf, "unknown\n"); > > } > > We normally just do return -EIO (or other error code) in such cases. That does seem more appropriate. I will fix it, thank you. Regards, Edwin Peer