Repository navigation
hi3519dv500: bsp-sfc: do not use quad - #172
Conversation
Quad gives more problems than benefits on these cameras, and this is the same bsp-sfc code that hi3516cv6xx dropped quad from: the OpenIPC config leaves CLOSE_SPI_8PIN_4IO unset, so quad is on. Take the quad modes out of bsp-sfc, at probe and at resume. spi_nor_quad_enable() then returns early and SR is not written for it. CLOSE_SPI_8PIN_4IO no longer has any effect here. With no quad in hwcaps, spi_nor_dtrclear_pinreset() now reaches spi_nor_sr3_to_reset() on Winbond and GigaDevice parts. That writes SR3 with no WREN before it, so it should do nothing with WEL clear. Build-tested only: drivers/mtd/spi-nor with the hi3519dv500 config from OpenIPC/firmware.
PR Summary by Qodohi3519dv500: Disable BSP SFC quad modes at probe and resume
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1. Reset pins stay disabled on some flashes
|
Same change as #171, for
hi3519dv500.Change
Quad gives more problems than benefits on these cameras. The OpenIPC config leaves
CLOSE_SPI_8PIN_4IOunset, sobsp-sfcoffers quad here. This removes the quad modes at probe and at resume.spi_nor_quad_enable()then returns early, so SR is not written for it.CLOSE_SPI_8PIN_4IOno longer has any effect on this branch.Testing
Build-tested only:
drivers/mtd/spi-norwith thehi3519dv500config from OpenIPC/firmware. Please check on hardware:md5sumwithout quad.spi_nor_dtrclear_pinreset()now reachesspi_nor_sr3_to_reset()there. It writes SR3 with no WREN first, so it should do nothing with WEL clear.