Skip to content

QSPIFBlockDevice: SFDP bus mode parser uses wrong mask values #10163

@cy-vaira

Description

@cy-vaira

Description

_sfdp_detect_best_bus_read_mode() parses the basic param table to find out the bus mode. It uses wrong mask values while parsing DWORD-1, byte-2.

e.g. Bit-7 of byte-2 is 'unused'. But mask value 0x80 is used to find out if 1-1-4 is supported or not.

 if (examined_byte & 0x80) {
            //  Fast Read 1-1-4 Supported
Bus mode Mask used Correct Mask
1-4-4 0x40 0x20
1-1-4 0x80 0x40
1-2-2 0x20 0x10

Issue request type

[ ] Question
[ ] Enhancement
[X] Bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions