Repository navigation
platform: refactor: move clock, interrupt and timer to drivers - #285
Conversation
|
@jajanusz will this PR break bisect ? |
|
It's just moving/renaming/deduplicating, no stricte logic was added. Please talk to @mmaka1 if you want to delay it anyway and want to ensure stability 1st. We need it not only for just sake of refactor but to make adding new platforms easier (that we want to do in few next days). |
lgirdwood
left a comment
There was a problem hiding this comment.
Not sure about the drivers_ prefix since we are using platform_ to signify the implementation is platform specific. i.e. you can easily tell that this code needs to be checked if a bug only impacts one platform only.
All the rest is fine though, just one minor comment on a variable declaration.
There was a problem hiding this comment.
len should be declared at the start of the function, to follow misra rules.
There was a problem hiding this comment.
Ok. I don't like it because I have to declare unnecessary variable in function scope just to satisfy checkpatch (80 chars limit), so I wanted to limit scope at least, but if it has to be on top then it will be ;)
There was a problem hiding this comment.
Why the name change ? It's a platform specific interrupt.
There was a problem hiding this comment.
I'll revert all drivers_* names changes back to platform_* names. Thanks for review
790b9a7 to
757c430
Compare
|
@lgirdwood So please merge PR if you have no more requests, because we need it for adding new platforms. |
Split files into appropriate folders. Added makefiles to not break build. Fixed checkpatch errors in dw-dma and baytrail/ssp. Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
Moved platform_interrupt_* functions from platform.c to interrupt.c to match CNL&APL. Updated headers for BYT&HSW to have the same functions declarations as CNL&APL. Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
For cnl&apl removed platform_timer_register from public api and made it static. For byt&hsw moved platform_timer to platform.h (just like it is for cnl&apl). Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
+ Indents for 'CHECK: Alignment should match open parenthesis' Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
757c430 to
56cda38
Compare
|
@jajanusz ok, looks good. We have a small conflict in dmic, can you fix and I'll merge. Thanks ! |
|
@lgirdwood |
As in: #233
Next branch was deleted and I couldn't reopen old PR.
Split in commit, so you can easily see steps done in this refactor.
Had to be done in one pull request because separate commits will cause a lot more chaos for others while merging/rebasing.
Next we will have to deduplicate code in mentioned functions.
From now on all shared code should go to intel/cavs folders and all platform specific code will go to folder for that platform (so we will be able to get rid of ifdefs).
Signed-off-by: Janusz Jankowski janusz.jankowski@linux.intel.com