Changes in 4.9.261 btrfs: raid56: simplify tracking of Q stripe presence btrfs: fix raid6 qstripe kmap usbip: tools: fix build error for multiple definition ALSA: ctxfi: cthw20k2: fix mask on conf to allow 4 bits rsxx: Return -EFAULT if copy_to_user() fails dm table: fix iterate_devices based device capability checks dm table: fix DAX iterate_devices based device capability checks iommu/amd: Fix sleeping in atomic in increase_address_space() platform/x86: acer-wmi: Add new force_caps module parameter PCI: Add function 1 DMA alias quirk for Marvell 9215 SATA controller misc: eeprom_93xx46: Add quirk to support Microchip 93LC46B eeprom Linux 4.9.261 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I1a6e472d8fffbfeee6b81830daa88d2446878b44
30 lines
826 B
C
30 lines
826 B
C
/*
|
|
* Module: eeprom_93xx46
|
|
* platform description for 93xx46 EEPROMs.
|
|
*/
|
|
|
|
struct gpio_desc;
|
|
|
|
struct eeprom_93xx46_platform_data {
|
|
unsigned char flags;
|
|
#define EE_ADDR8 0x01 /* 8 bit addr. cfg */
|
|
#define EE_ADDR16 0x02 /* 16 bit addr. cfg */
|
|
#define EE_READONLY 0x08 /* forbid writing */
|
|
|
|
unsigned int quirks;
|
|
/* Single word read transfers only; no sequential read. */
|
|
#define EEPROM_93XX46_QUIRK_SINGLE_WORD_READ (1 << 0)
|
|
/* Instructions such as EWEN are (addrlen + 2) in length. */
|
|
#define EEPROM_93XX46_QUIRK_INSTRUCTION_LENGTH (1 << 1)
|
|
/* Add extra cycle after address during a read */
|
|
#define EEPROM_93XX46_QUIRK_EXTRA_READ_CYCLE BIT(2)
|
|
|
|
/*
|
|
* optional hooks to control additional logic
|
|
* before and after spi transfer.
|
|
*/
|
|
void (*prepare)(void *);
|
|
void (*finish)(void *);
|
|
struct gpio_desc *select;
|
|
};
|