spi_master: Introduce SPI_MASTER_4BA feature flag

Backport upstream `commit 1cf407b4f8`.

Add a feature flag SPI_MASTER_4BA to `struct spi_master` that advertises
programmer-side support for 4-byte addresses in generic commands (and
read/write commands if the master uses the default implementations). Set
it for all masters that handle commands address-agnostic.

Don't prefer native 4BA instructions if the master doesn't support them.

BUG=chromium:478356
BRANCH=none
TEST=still builds

Change-Id: I3ee46ae7502e2f0d986a2f101a1e7135fb5c54df
Signed-off-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/1710339
Reviewed-by: Sam McNally <sammc@chromium.org>
diff --git a/linux_spi.c b/linux_spi.c
index 83b8831..d551b00 100644
--- a/linux_spi.c
+++ b/linux_spi.c
@@ -55,6 +55,7 @@
 
 static const struct spi_master spi_master_linux = {
 	.type		= SPI_CONTROLLER_LINUX,
+	.features	= SPI_MASTER_4BA,
 	.max_data_read	= MAX_DATA_UNSPECIFIED, /* TODO? */
 	.max_data_write	= MAX_DATA_UNSPECIFIED, /* TODO? */
 	.command	= linux_spi_send_command,