-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Merge clean up / refactoring commits from topic-gpio to master #20443
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
Conversation
|
Hmm, did CI get stuck? |
7ea2f70 to
0f7aed9
Compare
Weird, rebased to kick CI off again. |
@mniestroj I've tried to cherry-pick the commit in question but unfortunately there were merge conflicts which I would rather not attempt to resolve. Your PR has undergone some modifications on the |
@mnkp I've successfully rebased those 4 commits that I mentioned on top of d4fba7eba7da79753dd38ce79ae730d645533dd6 from your branch. The result is here: https://github.com/mniestroj/zephyr/tree/mnkp-gpio-stm32-int-disable. Then I rebased your topic-gpio-fixes on top (with skipping my old 3 patches) and the result is here: https://github.com/mniestroj/zephyr/tree/mnkp-topic-gpio-fixes. All without any conflicts. Basically you cannot just apply 1 additional patch, because those old 3 patches are not subset of new 4 (things were modified during review process). |
|
All checks passed. checkpatch (informational only, not a failure)Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages. |
Sure, that's clear. I didn't want to replace the old 3 patches with the 4 new since the old 3 may have included changes not done in the new 4. The work was happening on the I'll drop STM32 patches from this PR. As reported by checkpatch there is some more clean up which needs to be done and the required extra commit can't be merged as it includes unrelated changes. @mniestroj @erwango If we want to get this into 2.1. it may be best if we merge the original #19256 PR. It would need to be reverted to target the |
Okay, then I can prepare a PR with only stm32 improvements. Looks like targetting those to topic-gpio branch was a bad idea in the first place, because they were never new GPIO API related. And because of this approach we are delaying fixes for dual core and disabling interrupts, almost by 2 months already. @mnkp I'll prepare a PR with stm32 patches once you drop them here. |
|
@mnkp, @mniestroj , #19256 is not in a state that could be merged right from what I can see. |
|
Making sure that rebasing of I let others decide how to handle this issue. If this PR is to be merged fully we still need to fix checkpatch warnings. There is a commit on |
@erwango What problem do you see? I've rebased my commits on top of master once again, with your commit fixing dual core systems.
This is not the only difference. I suggest to use |
@mniestroj, I've finally done the changes directly myself after pulling them (at that time I couldn't wait for your changes, sorry if this made additional work for you), so commits in
So, there are 2 cases:
|
@erwango You have done the changes part of another commit a070416 ("drivers/gpio: stm32: various clean up"), which is not part of this PR. My commits haven't been modified as far as I can see. Also #19256 contains improvements (made according to review process) which are not part of
I don't think this is a good approach to look at
I bet that commits on
As I said earlier, this should go the other way around. Fixes should have a priority in landing in And last thing... checking what are the real differences in codebase is as simple and quick as executing |
|
Approved by TSC for merge into 2.1 |
Adding code owners of gpio drivers. Signed-off-by: Piotr Mienkowski <[email protected]>
With dual core handling introduction, we now need to take care to always release lock before exiting function. Rework gpio_stm32_config to take this into account. Additionally, since ENOSYS usage is resevred to system calls handling, replace with EIO. Signed-off-by: Erwan Gouriou <[email protected]>
This allows compiler to inline function body and reduce overall code size. Signed-off-by: Marcin Niestroj <[email protected]>
This patch doesn't change functionality, but is only related to improved readability and reusability. Signed-off-by: Marcin Niestroj <[email protected]>
Up to now interrupts could be only configured once, with no way to disable them in runtime. Allow interrupts to be disabled in runtime and then properly reenabled on user request. This allows to ignore interrupts when software is not expecting them. The improvement over previously reverted patch [1] is that we disable interrupts only when we configure port for which interrupt line was previously selected. This for example prevents to disable interrupts line 2 in case PA2 was previously configured as interrupt source, but we are currently configuring PB2 as output. [1] 0951ce2 ("gpio: stm32: support disabling and reenabling interrupts on pin") Signed-off-by: Marcin Niestroj <[email protected]>
Fix interrupt number for gpio5 Signed-off-by: Stanislav Poboril <[email protected]>
NXP's LPC family of MCU's GPIOs parameters is udated. Boards LPC54xxx and LPC55xxx have updated values according pin and interrupt layout. Signed-off-by: Andrei Gansari <[email protected]>
Allocate all 8 PINT interrupts to ports 0 and 1, allocate 4 to each. Signed-off-by: Andrei Gansari <[email protected]>
Board is refactored to use DTS generated value, not use magic numbers. Signed-off-by: Andrei Gansari <[email protected]>
PINT device is enabled when SoC is booting up. Applies to LPC54xxx and LPC55xxx families. Signed-off-by: Andrei Gansari <[email protected]>
SoC initialization had an incorrect comment regarding system clock. Corrected from 48Mhz -> 96Mhz. Signed-off-by: Andrei Gansari <[email protected]>
Add define that maps to IOCON register PULL-DOWN bit. Signed-off-by: Andrei Gansari <[email protected]>
This removes a lot of copy-and-paste. Signed-off-by: Christian Taedcke <[email protected]>
The gecko gpio driver can now utilize ports a to k. Signed-off-by: Christian Taedcke <[email protected]>
Add device tree elements for all gpio ports of the efr32mg12p including the dts fixup entries. Also remove gpio port e since this is not available in efr32mg12p socs. Signed-off-by: Christian Taedcke <[email protected]>
Some board description files failed to note where gpio was supported, causing tests to be inappropriately filtered. Add the feature where the gpio_basic_api test would use it. Signed-off-by: Peter Bigot <[email protected]>
0f7aed9 to
2f1a0c8
Compare
Explicitly configures the rgb led pinmuxes as gpios. Currently the gpio driver quietly changes the pinmux to gpio mode when configuring a gpio pin, but this behavior is about to change. Signed-off-by: Maureen Helm <[email protected]>
This is a collection of mostly unrelated commits which were merged on
topic-gpiobranch as part of a clean up effort. They are compatible with the current GPIO API and can be merged withmasterbefore the work ontopic-gpiobranch is finished.Affected platforms: SiLabs, NXP, STM32. Includes commits from #19256 by @mniestroj.