]> git.ipfire.org Git - thirdparty/linux.git/commit
gve: fix probe failure if clock read fails
authorJordan Rhee <jordanrhee@google.com>
Tue, 27 Jan 2026 01:02:10 +0000 (01:02 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 28 Jan 2026 02:33:27 +0000 (18:33 -0800)
commita040afa3bca415019d96a586b96b5f17b1f55a90
treed2623d7e888e0d0c1a94df466316429aba6484d1
parentd32ba904a450633429eff08046a7a8e258b85add
gve: fix probe failure if clock read fails

If timestamping is supported, GVE reads the clock during probe,
which can fail for various reasons. Previously, this failure would
abort the driver probe, rendering the device unusable. This behavior
has been observed on production GCP VMs, causing driver initialization
to fail completely.

This patch allows the driver to degrade gracefully. If gve_init_clock()
fails, it logs a warning and continues loading the driver without PTP
support.

Cc: stable@vger.kernel.org
Fixes: a479a27f4da4 ("gve: Move gve_init_clock to after AQ CONFIGURE_DEVICE_RESOURCES call")
Signed-off-by: Jordan Rhee <jordanrhee@google.com>
Reviewed-by: Shachar Raindel <shacharr@google.com>
Signed-off-by: Harshitha Ramamurthy <hramamurthy@google.com>
Link: https://patch.msgid.link/20260127010210.969823-1-hramamurthy@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/google/gve/gve.h
drivers/net/ethernet/google/gve/gve_ethtool.c
drivers/net/ethernet/google/gve/gve_main.c
drivers/net/ethernet/google/gve/gve_ptp.c
drivers/net/ethernet/google/gve/gve_rx_dqo.c