Re: [PATCH 10/10] spi-nor: intel-spi: Fall back to use SW sequencer to erase

2017-09-01 Thread Mika Westerberg
On Fri, Sep 01, 2017 at 01:00:41AM -0700, Bin Meng wrote: > /* > + * Determine whether erase operatoin should use HW or SW sequencer. ^ Typo > + * > + * The HW sequencer has a predefined list of opcodes, with only the > + * erase

[PATCH 10/10] spi-nor: intel-spi: Fall back to use SW sequencer to erase

2017-09-01 Thread Bin Meng
According to the datasheet, the HW sequencer has a predefined list of opcodes, with only the erase opcode being programmable in LVSCC and UVSCC registers. If these registers don't contain a valid erase opcode (eg: BIOS does not program it), erase cannot be done using the HW sequencer, even though t