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

10-bit addressing not supported by I2C slave driver for STM32 target #51060 #51119

Conversation

AshwiniMShinde-eaton
Copy link
Contributor

I2C: Add 10-bit addressing support for I2C slave driver for STM32 target.
This patch adds changes that will help to register STM32 target as a slave with 10-bit addressing enabled

Copy link
Member

@erwango erwango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for sharing. Some parts to fix.

Also, it would be nice to return an error in case 10bits address mode is tried to be configured for slave2 as it is not supported. For instance, in slave 2 code, add:

		if (data->slave_cfg->flags == I2C_SLAVE_FLAGS_ADDR_10_BITS)	{
			return -EVINVAL;
		}

drivers/i2c/i2c_ll_stm32_v2.c Outdated Show resolved Hide resolved
drivers/i2c/i2c_ll_stm32_v2.c Outdated Show resolved Hide resolved
@erwango
Copy link
Member

erwango commented Oct 10, 2022

Your pull request does not conform with Zephyr contribution guidelines. For reference, I'd advise you to check:

Please:

  • Check your commit message. It should conform to the following template:
<dir>: <dir>: <Title summarizing the change>

<A description useful to the reader>

Signed-off-by: foo <foo@bar.baz>
  • Remove the merge commit(s)
  • We don't merge fixup commits. Please squash all fixes in the corresponding commits

@AshwiniMShinde-eaton AshwiniMShinde-eaton force-pushed the Issue-51060-Fix-10-bit-i2c-slave-addressing-issue-in-stm32-slave-driver branch from 2c4d546 to e257b15 Compare October 10, 2022 10:35
@AshwiniMShinde-eaton AshwiniMShinde-eaton force-pushed the Issue-51060-Fix-10-bit-i2c-slave-addressing-issue-in-stm32-slave-driver branch from 4073f42 to 98580f1 Compare October 11, 2022 07:00
@AshwiniMShinde-eaton AshwiniMShinde-eaton force-pushed the Issue-51060-Fix-10-bit-i2c-slave-addressing-issue-in-stm32-slave-driver branch from 0382d22 to 98580f1 Compare October 11, 2022 09:58
@AshwiniMShinde-eaton
Copy link
Contributor Author

AshwiniMShinde-eaton commented Oct 11, 2022

Your pull request does not conform with Zephyr contribution guidelines. For reference, I'd advise you to check:

Please:

  • Check your commit message. It should conform to the following template:
<dir>: <dir>: <Title summarizing the change>

<A description useful to the reader>

Signed-off-by: foo <foo@bar.baz>
  • Remove the merge commit(s)
  • We don't merge fixup commits. Please squash all fixes in the corresponding commits

@erwango I've removed my previous commits and pushed the commit that follows all the guidelines. The checks are waiting for approval. Can you please approve?

erwango
erwango previously approved these changes Oct 20, 2022
@AshwiniMShinde-eaton AshwiniMShinde-eaton force-pushed the Issue-51060-Fix-10-bit-i2c-slave-addressing-issue-in-stm32-slave-driver branch from d287fb2 to 1173244 Compare October 20, 2022 13:57
erwango
erwango previously approved these changes Oct 20, 2022
drivers/i2c/i2c_ll_stm32_v2.c Outdated Show resolved Hide resolved
@AshwiniMShinde-eaton AshwiniMShinde-eaton force-pushed the Issue-51060-Fix-10-bit-i2c-slave-addressing-issue-in-stm32-slave-driver branch from 1173244 to dc39d0a Compare October 21, 2022 06:21
@AshwiniMShinde-eaton AshwiniMShinde-eaton force-pushed the Issue-51060-Fix-10-bit-i2c-slave-addressing-issue-in-stm32-slave-driver branch from dc39d0a to 75c0ce9 Compare October 21, 2022 07:25
drivers/i2c/i2c_ll_stm32_v1.c Outdated Show resolved Hide resolved
drivers/i2c/i2c_ll_stm32_v1.c Outdated Show resolved Hide resolved
@AshwiniMShinde-eaton AshwiniMShinde-eaton force-pushed the Issue-51060-Fix-10-bit-i2c-slave-addressing-issue-in-stm32-slave-driver branch from 75c0ce9 to 4b6d52c Compare October 21, 2022 09:29
@AshwiniMShinde-eaton AshwiniMShinde-eaton force-pushed the Issue-51060-Fix-10-bit-i2c-slave-addressing-issue-in-stm32-slave-driver branch 3 times, most recently from 73928f8 to 901fe6a Compare October 31, 2022 07:53
@AshwiniMShinde-eaton
Copy link
Contributor Author

@erwango @teburd @FRASTM Is this PR good to merge once all the checks pass?
I just wanted confirmation from you all that there are no further changes required from my side

@AshwiniMShinde-eaton AshwiniMShinde-eaton force-pushed the Issue-51060-Fix-10-bit-i2c-slave-addressing-issue-in-stm32-slave-driver branch 4 times, most recently from a8d8339 to 2085ca3 Compare October 31, 2022 14:58
teburd
teburd previously approved these changes Oct 31, 2022
@AshwiniMShinde-eaton AshwiniMShinde-eaton force-pushed the Issue-51060-Fix-10-bit-i2c-slave-addressing-issue-in-stm32-slave-driver branch from 2085ca3 to 97a93de Compare November 1, 2022 04:10
teburd
teburd previously approved these changes Nov 1, 2022
@AshwiniMShinde-eaton AshwiniMShinde-eaton force-pushed the Issue-51060-Fix-10-bit-i2c-slave-addressing-issue-in-stm32-slave-driver branch from 97a93de to 9d1b11f Compare November 1, 2022 13:05
@AshwiniMShinde-eaton AshwiniMShinde-eaton force-pushed the Issue-51060-Fix-10-bit-i2c-slave-addressing-issue-in-stm32-slave-driver branch from 9d1b11f to 23c55a2 Compare November 1, 2022 14:04
Fixes zephyrproject-rtos#51060. Support for i2c 10-bit addressing in STM32 slave driver

Signed-off-by: Ashwini M Shinde <AshwiniMShinde@eaton.com>
@AshwiniMShinde-eaton AshwiniMShinde-eaton force-pushed the Issue-51060-Fix-10-bit-i2c-slave-addressing-issue-in-stm32-slave-driver branch from 23c55a2 to b9037e3 Compare November 1, 2022 14:59
@teburd
Copy link
Collaborator

teburd commented Nov 1, 2022

Please don't force push unless you are making changes, it removes the CI check passes and approvals

@AshwiniMShinde-eaton
Copy link
Contributor Author

Please don't force push unless you are making changes, it removes the CI check passes and approvals

I've been rebasing(Using rebase branch button here) from time to time as it shows "This branch is out-of-date" with the base branch. When I get all the approvals and all checks pass then merging gets blocked as it requires rebasing. This cycle goes on and its been long time I haven't been able to get my PR merged. Is this the right way? Is there any way to avoid this or did I miss anything?

@prayassamriya
Copy link

@AshwiniMShinde-eaton, May be you can request primary approvers/module owners to merge if they think it meets their expectations. due to time zone difference this issue may be surfacing again and again. what's your thoughts @FRASTM , @erwango and others?

@teburd
Copy link
Collaborator

teburd commented Nov 8, 2022

Please don't force push unless you are making changes, it removes the CI check passes and approvals

I've been rebasing(Using rebase branch button here) from time to time as it shows "This branch is out-of-date" with the base branch. When I get all the approvals and all checks pass then merging gets blocked as it requires rebasing. This cycle goes on and its been long time I haven't been able to get my PR merged. Is this the right way? Is there any way to avoid this or did I miss anything?

So long as there are no conflicts, its ok.

@AshwiniMShinde-eaton
Copy link
Contributor Author

Please don't force push unless you are making changes, it removes the CI check passes and approvals

I've been rebasing(Using rebase branch button here) from time to time as it shows "This branch is out-of-date" with the base branch. When I get all the approvals and all checks pass then merging gets blocked as it requires rebasing. This cycle goes on and its been long time I haven't been able to get my PR merged. Is this the right way? Is there any way to avoid this or did I miss anything?

So long as there are no conflicts, its ok.

@teburd Could you(or anyone who is authorized to merge this PR) please help to get this merged?

@teburd
Copy link
Collaborator

teburd commented Nov 8, 2022

Please don't force push unless you are making changes, it removes the CI check passes and approvals

I've been rebasing(Using rebase branch button here) from time to time as it shows "This branch is out-of-date" with the base branch. When I get all the approvals and all checks pass then merging gets blocked as it requires rebasing. This cycle goes on and its been long time I haven't been able to get my PR merged. Is this the right way? Is there any way to avoid this or did I miss anything?

So long as there are no conflicts, its ok.

@teburd Could you(or anyone who is authorized to merge this PR) please help to get this merged?

When the release managers see this is ready to merge, which means there are at least 2 approvals including the assignee, and green CI, they merge it. There's filters the release managers use to periodically find PRs ready to merge and do so.

@fabiobaltieri fabiobaltieri merged commit 0f6c7e3 into zephyrproject-rtos:main Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants