Re: [PATCH net-next v2 4/9] dt-bindings: net: add OPEN Alliance 10BASE-T1x MAC-PHY Serial Interface

From: Andrew Lunn
Date: Mon Oct 23 2023 - 20:37:42 EST


> + oa-cps:
> + maxItems: 1
> + description:
> + Chunk Payload Size. Configures the data chunk payload size to 2^N,
> + where N is the value of this bitfield. The minimum possible data
> + chunk payload size is 8 bytes or N = 3. The default data chunk
> + payload size is 64 bytes, or N = 6. The minimum supported data chunk
> + payload size for this MAC-PHY device is indicated in the CPSMIN
> + field of the CAPABILITY register. Valid values for this parameter
> + are 8, 16, 32 and 64. All other values are reserved.
> +
> + oa-txcte:
> + maxItems: 1
> + description:
> + Transmit Cut-Through Enable. When supported by this MAC-PHY device,
> + this bit enables the cut-through mode of frame transfer through the
> + MAC-PHY device from the SPI host to the network.
> +
> + oa-rxcte:
> + maxItems: 1
> + description:
> + Receive Cut-Through Enable. When supported by this MAC-PHY device,
> + this bit enables the cut-through mode of frame transfer through the
> + MAC-PHY device from the network to the SPI host.
> +
> + oa-prote:
> + maxItems: 1
> + description:
> + Control data read/write Protection Enable. When set, all control
> + data written to and read from the MAC-PHY will be transferred with
> + its complement for detection of bit errors.

Device tree described hardware. Its not supposed to be used to
describe configuration. So it is not clear to me if any of these are
valid in DT.

It seems to me, the amount of control transfers should be very small
compared to data transfers. So why not just set protection enable to
be true?

What is the effect of chunk payload size ? Is there a reason to use a
lower value than the default 64? I assume smaller sizes make data
transfer more expensive, since you need more DMA setup and completion
handing etc.

An Ethernet driver is allowed to have driver specific private
flags. See ethtool(1) --show-priv-flags and --set-priv-flags You could
maybe use these to configure cut through?

Andrew