aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@linux-m68k.org>2014-02-21 11:29:18 -0500
committerMark Brown <broonie@linaro.org>2014-02-22 22:27:03 -0500
commitba824d4971691a7f1f66429e378a08a95fbb5b79 (patch)
tree24c54aa3d39da05a294e9a54044683d84631f771 /net/switchdev/switchdev.c
parentab98fcba962a57cee9fdb97aff2b25248c93cea5 (diff)
spi: rspi: Fix loopback mode for Dual/Quad SPI Transfers
While normal Dual and Quad SPI Transfers are unidirectional, we must do a bidirectional transfer if loopback mode is enabled, else rx_buf is not filled. With spidev it seemed to work, as spidev uses the same buffer for tranmission and reception. Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
* * combines Sx info from FADT and FACS tables per ACPI 2.0+ spec * (http://www.acpi.info/) */ struct tboot_acpi_sleep_info { struct tboot_acpi_generic_address pm1a_cnt_blk; struct tboot_acpi_generic_address pm1b_cnt_blk; struct tboot_acpi_generic_address pm1a_evt_blk; struct tboot_acpi_generic_address pm1b_evt_blk; u16 pm1a_cnt_val; u16 pm1b_cnt_val; u64 wakeup_vector; u32 vector_width; u64 kernel_s3_resume_vector; } __packed; /* * shared memory page used for communication between tboot and kernel */ struct tboot { /* * version 3+ fields: */ /* TBOOT_UUID */ u8 uuid[16]; /* version number: 5 is current */ u32 version; /* physical addr of tb_log_t log */ u32 log_addr; /* * physical addr of entry point for tboot shutdown and * type of shutdown (TB_SHUTDOWN_*) being requested */ u32 shutdown_entry; u32 shutdown_type; /* kernel-specified ACPI info for Sx shutdown */ struct tboot_acpi_sleep_info acpi_sinfo; /* tboot location in memory (physical) */ u32 tboot_base; u32 tboot_size; /* memory regions (phys addrs) for tboot to MAC on S3 */ u8 num_mac_regions; struct tboot_mac_region mac_regions[MAX_TB_MAC_REGIONS]; /* * version 4+ fields: */ /* symmetric key for use by kernel; will be encrypted on S3 */ u8 s3_key[TB_KEY_SIZE]; /* * version 5+ fields: */ /* used to 4byte-align num_in_wfs */ u8 reserved_align[3]; /* number of processors in wait-for-SIPI */ u32 num_in_wfs; } __packed; /* * UUID for tboot data struct to facilitate matching * defined as {663C8DFF-E8B3-4b82-AABF-19EA4D057A08} by tboot, which is * represented as {} in the char array used here */ #define TBOOT_UUID {0xff, 0x8d, 0x3c, 0x66, 0xb3, 0xe8, 0x82, 0x4b, 0xbf,\ 0xaa, 0x19, 0xea, 0x4d, 0x5, 0x7a, 0x8} extern struct tboot *tboot; static inline int tboot_enabled(void) { return tboot != NULL; } extern void tboot_probe(void); extern void tboot_shutdown(u32 shutdown_type); extern void tboot_sleep(u8 sleep_state, u32 pm1a_control, u32 pm1b_control); extern struct acpi_table_header *tboot_get_dmar_table( struct acpi_table_header *dmar_tbl); extern int tboot_force_iommu(void); #else #define tboot_probe() do { } while (0) #define tboot_shutdown(shutdown_type) do { } while (0) #define tboot_sleep(sleep_state, pm1a_control, pm1b_control) \ do { } while (0) #define tboot_get_dmar_table(dmar_tbl) (dmar_tbl) #define tboot_force_iommu() 0 #endif /* !CONFIG_INTEL_TXT */ #endif /* _LINUX_TBOOT_H */