+ * @mode_func_supported: indicates the following features are supported or not:mode_func_supported[b'6-0] : something like this may help to know size of this variable.
+ * bit 0-1: CPHA featureYou mean to say "chipselect active low is default supported" ?
+ * 0b00: invalid, should support as least one CPHA setting
+ * 0b01: supports CPHA=0 only
+ * 0b10: supports CPHA=1 only
+ * 0b11: supports CPHA=0 and CPHA=1.
+ * bit 2-3: CPOL feature
+ * 0b00: invalid, should support as least one CPOL setting
+ * 0b01: supports CPOL=0 only
+ * 0b10: supports CPOL=1 only
+ * 0b11: supports CPOL=0 and CPOL=1.
+ * bit 4: chipselect active high feature, 0 for unsupported and 1 for
+ * supported, chipselect active low should always be supported.
Just thinking instead of keeping always supported, can we mentione as default supported ?
+ * bit 5: LSB first feature, 0 for unsupported and 1 for supported,MSB first is default supported ?
+ * MSB first should always be supported.
+ * bit 6: loopback mode feature, 0 for unsupported and 1 for supported,we can reverse the write up for all "always be supported"
+ * normal mode should always be supported.
bit 6: if not specified, normal mode is supported by default. if set 1, specifies loopback mode.
Will update the code accordingly:+#define VIRTIO_SPI_RX_TX_SUPPORT_DUAL (1 << 0)Can use BIT(x) ?
+#define VIRTIO_SPI_RX_TX_SUPPORT_QUAD (1 << 1)
+#define VIRTIO_SPI_RX_TX_SUPPORT_OCTAL (1 << 2)