Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fsi: master-ast-cf: Mask unused bits in RTAG/RCRC

Then reading the RTAG/RCRC "registers" from the coprocessor after
a command is complete, mask out the top bits, only keep the relevant
bits. Microcode v5 will leave garbage in those top bits as a
result of a performance optimization.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---

+2 -2
+2 -2
drivers/fsi/fsi-master-ast-cf.c
··· 377 377 static int read_copro_response(struct fsi_master_acf *master, uint8_t size, 378 378 uint32_t *response, u8 *tag) 379 379 { 380 - uint8_t rtag = ioread8(master->sram + STAT_RTAG); 381 - uint8_t rcrc = ioread8(master->sram + STAT_RCRC); 380 + uint8_t rtag = ioread8(master->sram + STAT_RTAG) & 0xf; 381 + uint8_t rcrc = ioread8(master->sram + STAT_RCRC) & 0xf; 382 382 uint32_t rdata = 0; 383 383 uint32_t crc; 384 384 uint8_t ack;