[U-Boot] [BUG] divide by 0 in spi flash probe

Chris Packham judge.packham at gmail.com
Mon Aug 29 07:49:11 CEST 2016


Hi,

I'm updating support for a board which uses the Armada-385 from u-boot
v2016.05 to use the latest master (v2016.09-rc2 plus a bit).

When I run "sf probe" I get a divide by 0 in mvebu_spi_set_speed
because hz has made it through as 0.

When I run saveenv (env is in SPI) I don't get the divide by 0.

I'll do some more digging tomorrow but just thought I'd get this email
off now in case it rings any bells for anyone.

Thanks,
Chris


More information about the U-Boot mailing list