The max waiting period (of 1 ms) while reading the data from FW shared
buffer is too small for certain types of data (e.g., stats). There's a
chance that FW could be updating buffer at the same time and driver
would be unsuccessful in reading data. Firmware manual recommends to
have 1 sec timeout to fix this issue.
Fixes: 5cfd54d7dc186 ("net: atlantic: minimal A2 fw_ops")
Signed-off-by: Dmitry Bogdanov <email address hidden>
Signed-off-by: Sudarsana Reddy Kalluru <email address hidden>
Signed-off-by: Igor Russkikh <email address hidden>
Signed-off-by: David S. Miller <email address hidden>
(cherry picked from commit aa1dcb5646fdf34a15763facf4bf5e482a2814ca)
Signed-off-by: Chia-Lin Kao (AceLan) <email address hidden>
6ced125...
by
Igor Russkikh <email address hidden>
Chip generations are mostly compatible register-wise, but there are still
some differences. Therefore we've made some of first generation (A1) code
non-static to re-use it where possible.
Some pieces are A2 specific, in which case we redefine/extend such APIs.
Signed-off-by: Igor Russkikh <email address hidden>
Signed-off-by: Mark Starovoytov <email address hidden>
Signed-off-by: David S. Miller <email address hidden>
(backported from commit 43c670c8e48a1817ae4b64683d7d65cad5bb0502)
Signed-off-by: Chia-Lin Kao (AceLan) <email address hidden>
a9b6625...
by
Igor Russkikh <email address hidden>
Basic HW functions implemented for adjusting frequency,
adjusting time, getting and setting time.
With these callbacks we now do register ptp clock in the system.
Firmware interface parts are defined for PTP requests and interactions.
Enable/disable PTP counters in HW on clock register/unregister.
Signed-off-by: Egor Pomozov <email address hidden>
Co-developed-by: Sergey Samoilenko <email address hidden>
Signed-off-by: Sergey Samoilenko <email address hidden>
Co-developed-by: Dmitry Bezrukov <email address hidden>
Signed-off-by: Dmitry Bezrukov <email address hidden>
Signed-off-by: Igor Russkikh <email address hidden>
Signed-off-by: David S. Miller <email address hidden>
(backported from commit 910479a9f793f47b21a01564bf9f1672029cbdfe)
Signed-off-by: Chia-Lin Kao (AceLan) <email address hidden>
dd0799c...
by
Dmitry Bogdanov <email address hidden>
net: atlantic: common functions needed for basic A2 init/deinit hw_ops
Actual implementation will be added in the follow-up patches.
Signed-off-by: Igor Russkikh <email address hidden>
Signed-off-by: Mark Starovoytov <email address hidden>
Signed-off-by: David S. Miller <email address hidden>
(cherry picked from commit b3f0c79cba2060c1af37b32d60eff8598391519e)
Signed-off-by: Chia-Lin Kao (AceLan) <email address hidden>