Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arch/z80/src/ez80/ez80_spi.c: Correct oversight in previous commit #467

Merged
merged 1 commit into from
Mar 7, 2020

Conversation

patacongo
Copy link
Contributor

Commit 797e45d attempted to reduce the frequency of SPI reconfiguration by keeping track of the current frequency and mode settings and changing these settings only when the new settings differ from the old settings.

However, the original commit neglected to save the new frequency setting and, hence, was not effective in what it was trying to do: Every time the SPI setfrequency() method was called, it still looked like a new frequency and the frequency was still reconfigured, even though it hadn't really changed.

Commit 797e45d attempted to reduce the frequency of SPI reconfiguration by keeping track of the current frequency and mode settings and changing these settings only when the new settings differ from the old settings.

However, the original commit neglected to save the new frequency setting and, hence, was not effective in what it was trying to do:  Every time the SPI setfrequency() method was called, it still looked like a new frequency and the frequency was still reconfigured, even though it hadn't really changed.
@patacongo
Copy link
Contributor Author

Hey, the checkpatch stuff worked perfectly. I said I had a line that too long... It was right (probably because of different -m options on nxstyle). I fixed that line and forced pushed. The test ran again and passed. Good job!

@liuguo09
Copy link
Contributor

liuguo09 commented Mar 7, 2020

Glad to hear that : )

I found there is a build break in arm-01. I make a PR to fix it.
#468

@Ouss4 Ouss4 merged commit 78563d5 into apache:master Mar 7, 2020
@patacongo patacongo deleted the spifreq branch March 7, 2020 11:34
cwespressif pushed a commit to cwespressif/incubator-nuttx that referenced this pull request Apr 3, 2024
…ion_test

[T3PW] flash encryption test and issue fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants