Re: [PATCH 4.19 34/88] bnxt_en: fix HWRM error when querying VF temperature

2020-09-08 Thread Edwin Peer
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; > > + > > +

Re: [PATCH 4.19 34/88] bnxt_en: fix HWRM error when querying VF temperature

2020-09-08 Thread Pavel Machek
Hi! > Firmware returns RESOURCE_ACCESS_DENIED for HWRM_TEMP_MONITORY_QUERY for > VFs. This produces unpleasing error messages in the log when temp1_input > is queried via the hwmon sysfs interface from a VF. > > The error is harmless and expected, so silence it and return unknown as > the value.