16MP camera *** no cameras available ***

I’m having the same problem as described at No Autofocus working IMX519 - #14 by jhcl21

I can successfully preview and take pictures but the autofocus is not working reliably. (I have seen it working once or twice, I think, but unsure of the pattern of behavior.)

Details:
Raspberry Pi Zero 2 W,
iMX519 16MP camera,
Linux version 6.1.21-v7+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1642 SMP Mon Apr 3 17:20:52 BST 2023

Any idea what I can do?

Here is some sample output:

dean@picam:~ $ libcamera-still -t 5000
Made DRM preview window
[0:20:00.224362387] [792]  INFO Camera camera_manager.cpp:299 libcamera v0.0.0+4226-8689dd6b
[0:20:00.250655841] [794] ERROR V4L2 v4l2_device.cpp:92 'ak7375 10-000c': Failed to open V4L2 device '/dev/v4l-subdev1': Invalid argument
[0:20:00.250759696] [794] ERROR CameraSensor camera_sensor.cpp:517 'imx519 10-001a': Lens initialisation failed, lens disabled
[0:20:00.293155463] [794]  INFO RPI raspberrypi.cpp:1485 Registered camera /base/soc/i2c0mux/i2c@1/imx519@1a to Unicam device /dev/media3 and ISP device /dev/media0
[0:20:00.294684116] [792]  INFO Camera camera.cpp:1028 configuring streams: (0) 2048x1536-YUV420
[0:20:00.295281306] [794]  INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx519@1a - Selected sensor format: 2328x1748-SRGGB10_1X10 - Selected unicam format: 2328x1748-pRAA

Also:

dmesg | grep 519
[    0.056658] platform 3f801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/imx519@1a
[   11.261793] imx519 10-001a: Device found is imx519
[   11.262087] imx519 10-001a: Consider updating driver imx519 to match on endpoints