jerpelea opened a new pull request, #21174: URL: https://github.com/apache/nuttx/pull/21174
## Summary arch/mips/pic32mz: do not exceed the requested SPI frequency. spi_setfrequency() rounded the baud rate divisor down, so the SCK frequency could be higher than the one requested by the device driver (e.g. 20 MHz requested with a 100 MHz PBCLK2 gave 25 MHz). A request above PBCLK/2 gave a zero divisor and a division by zero when computing the actual frequency; the SST26 driver's default of 64 MHz does that with any peripheral bus clock below 128 MHz. The divisor is now rounded up. arch/mips/pic32mz: fix nxstyle issues in pic32mz_i2c.c and pic32mz_spi.c. and arch/mips/pic32mz: fix nxstyle issues in pic32mz_serial.c. Pre-existing nxstyle errors (mostly switch/case indentation), fixed so that later changes to these files pass checkpatch. No functional change (git show -w shows only comment re-wrapping, one wrapped call and blank lines after declarations). ## Impact RELEASE ## Testing CI -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
