Re: [PATCH 1/2] ethtool: transceiver reset and presence pin control
From: Andrew Lunn
Date: Mon Apr 07 2025 - 16:39:31 EST
On Mon, Apr 07, 2025 at 12:35:37PM +0000, Marek Pazdan wrote:
> Signal Definition section (Other signals) of SFF-8636 Spec mentions that
> additional signals like reset and module present may be implemented for
> a specific hardware. There is currently no user space API for control of
> those signals so user space management applications have no chance to
> perform some diagnostic or configuration operations.
How do you tell the kernel to stop managing the SFP? If you hit the
module with a reset from user space, the kernel is going to get
confused. And how are you talking to the module? Are you going to
hijack the i2c device via i2-dev? Again, you need to stop the kernel
from using the device.
Before you go any further, i think you need to zoom out and tell us
the big picture....
Andrew