summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-mvebu.c
diff options
context:
space:
mode:
authorEdwin Peer <edwin.peer@broadcom.com>2020-08-26 08:08:37 +0300
committerDavid S. Miller <davem@davemloft.net>2020-08-26 17:19:03 +0300
commit12cce90b934bf2b0ed9c339b4d5503e69954351a (patch)
tree46eaf5d8c81cc4ec274b7a7a2edfc99871ea31ad /drivers/gpio/gpio-mvebu.c
parentb148bb238c02f0c7797efed026e9bba5892d2172 (diff)
downloadlinux-12cce90b934bf2b0ed9c339b4d5503e69954351a.tar.xz
bnxt_en: fix HWRM error when querying VF temperature
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. Since the device temperature is not particularly sensitive information, provide flexibility to change this policy in future by silencing the error rather than avoiding the HWRM call entirely for VFs. Fixes: cde49a42a9bb ("bnxt_en: Add hwmon sysfs support to read temperature") Cc: Marc Smith <msmith626@gmail.com> Reported-by: Marc Smith <msmith626@gmail.com> Signed-off-by: Edwin Peer <edwin.peer@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/gpio/gpio-mvebu.c')
0 files changed, 0 insertions, 0 deletions