-
Notifications
You must be signed in to change notification settings - Fork 83
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
pl35x-nand-controller: Enable dynamically setting clk rate in NAND. #210
pl35x-nand-controller: Enable dynamically setting clk rate in NAND. #210
Conversation
03932ee
to
893f109
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
893f109
to
2e83d53
Compare
2e83d53
to
7e9b5f8
Compare
7e9b5f8
to
2347fd1
Compare
2347fd1
to
64c437d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your PR description only mentions testing for "happy path".
Did you also test all the possible failure paths in this code?
64c437d
to
d52ed6e
Compare
Yes I did. Updated the PR description with all the test cases and their outcomes. |
d52ed6e
to
4549e35
Compare
NI Zynq based devices require different clk frequencies to be set at different timing modes. Enable the memclk rate to be set according to the specifications in the device tree. If the device tree does not have this memclk-timing-frequency property specified, the driver proceeds as usual. Signed-off-by: deooi <[email protected]>
4549e35
to
b90cd60
Compare
NI Zynq based devices require different nand memclk frequencies to be set at different timing modes, as seen in the bluefin branch of ni-zynq.dtsi.
This commit enables the memclk rate to be set according to the specifications in the device tree. If the device tree does not have this memclk-timing-frequency property specified, the driver proceeds as usual.
WI: AB#3024184
Testing:
Tested my changes on cDAQ9189, NAND timing mode was able to be set successfully and NAND device was detected.
Tested with memclk-timing-frequency property not set in device tree and we get the error as expected. This printk error message is not part of the commit, just there for my own checking. Purposely not including it in the commit as it is not actually an error if the device does not have that property.

Tested with passing a non-existent timing mode (99) into the timing mode parameter of of_get_memclk_freq. Got the expected error.
