lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110209100713.555.65955.stgit@bob.linux.org.uk>
Date:	Wed, 09 Feb 2011 10:07:30 +0000
From:	Alan Cox <alan@...rguk.ukuu.org.uk>
To:	spi-devel-general@...ts.sourceforge.net, russ.gorby@...el.com,
	grant.likely@...retlab.ca, linux-kernel@...r.kernel.org
Subject: [PATCH 2/8] intel_mid_ssp_spi: Re-introduce quirks fields

From: Alan Cox <alan@...ux.intel.com>

This adds the quirks field to the driver and the flags. We don't yet
implement any of them so we don't confuse the driver.

Signed-off-by: Alan Cox <alan@...ux.intel.com>
---

 drivers/spi/intel_mid_ssp_spi.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)


diff --git a/drivers/spi/intel_mid_ssp_spi.c b/drivers/spi/intel_mid_ssp_spi.c
index 19c62bc..f201edd 100644
--- a/drivers/spi/intel_mid_ssp_spi.c
+++ b/drivers/spi/intel_mid_ssp_spi.c
@@ -125,6 +125,15 @@ struct driver_data {
 	/* SPI framework hookup */
 	struct spi_master *master;
 
+	/* Chip specific quirks */
+	int quirks;
+#define QUIRKS_PLATFORM_MRST		1
+#define QUIRKS_SRAM_ADDITIONAL_CPY	2
+#define QUIRKS_USE_PM_QOS		4
+#define QUIRKS_BIT_BANGING		8
+#define QUIRKS_SPI_SLAVE_CLOCK_MODE	16
+#define QUIRKS_PLATFORM_MDFL		32
+
 	/* SSP register addresses */
 	unsigned long paddr;
 	void __iomem *ioaddr;
@@ -137,7 +146,6 @@ struct driver_data {
 	u32 clear_sr;
 	u32 mask_sr;
 
-
 	/* Current message transfer state info */
 	struct tasklet_struct poll_transfer;
 	struct spi_message *cur_msg;
@@ -1163,6 +1171,7 @@ static int intel_mid_ssp_spi_probe(struct pci_dev *pdev,
 	}
 
 	drv_data = spi_master_get_devdata(master);
+	drv_data->quirks = ent->driver_data;
 	drv_data->master = master;
 	drv_data->pdev = pdev;
 	drv_data->pwrstate = PWRSTATE_ON;

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ