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

mtd: cfi_cmdset_0001: use defined value of P_ID_INTEL_PERFORMANCE instead of hardcoded one

Signed-off-by: Guillaume LECERF <glecerf@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

authored by

Guillaume LECERF and committed by
David Woodhouse
b5d194ce 89a82280

+2 -2
+2 -2
drivers/mtd/chips/cfi_cmdset_0001.c
··· 1496 1496 1497 1497 switch (mode) { 1498 1498 case FL_WRITING: 1499 - write_cmd = (cfi->cfiq->P_ID != 0x0200) ? CMD(0x40) : CMD(0x41); 1499 + write_cmd = (cfi->cfiq->P_ID != P_ID_INTEL_PERFORMANCE) ? CMD(0x40) : CMD(0x41); 1500 1500 break; 1501 1501 case FL_OTP_WRITE: 1502 1502 write_cmd = CMD(0xc0); ··· 1661 1661 cmd_adr = adr & ~(wbufsize-1); 1662 1662 1663 1663 /* Let's determine this according to the interleave only once */ 1664 - write_cmd = (cfi->cfiq->P_ID != 0x0200) ? CMD(0xe8) : CMD(0xe9); 1664 + write_cmd = (cfi->cfiq->P_ID != P_ID_INTEL_PERFORMANCE) ? CMD(0xe8) : CMD(0xe9); 1665 1665 1666 1666 mutex_lock(&chip->mutex); 1667 1667 ret = get_chip(map, chip, cmd_adr, FL_WRITING);