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

fix driver optoe twoaddr a2h read write bug #434

Open
wants to merge 1 commit into
base: 202012
Choose a base branch
from

Conversation

songqh2022
Copy link

the page select register(127) only in the a0h from sfp8472 spec, so when access the a2h , the function optoe_translate_offset will update the slave_addr=a2h, and then using this slave_addr to config the page slelect register, so the contents is wrong.

@songqh2022
Copy link
Author

@prgeor Could you kindly help to review this request?

@songqh2022
Copy link
Author

@saiarcot895 @paulmenzel @donboll Could you kindly help to review this request?

Copy link
Contributor

@paulmenzel paulmenzel left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution.


return page; /* note also returning client and offset */
}
+static void optoe_update_client(struct optoe_data *optoe, loff_t *offset, struct i2c_client **client)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use the Linux kernel coding style. Mainly please use tabs.

Copy link
Author

Choose a reason for hiding this comment

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

Have used the Linux kernel coding style-use tabs,please help to check again,thank you!

patch/series Outdated Show resolved Hide resolved
From 3e289806e5d3c45c6afc2a6caeb935828a5032eb Mon Sep 17 00:00:00 2001
From: "Song,Qinghua" <songqh@clounix.com>
Date: Fri, 20 Sep 2024 19:32:52 +0800
Subject: [PATCH] From 4338f175d03e83b3dd187c4d2af193e9e6f86039 Mon Sep 17
Copy link
Contributor

Choose a reason for hiding this comment

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

This still looks incorrect. The [PATCH] tag does not belong here.

@paulmenzel
Copy link
Contributor

Shouldn’t you first open a merge/pull request against the branch master?

@saiarcot895
Copy link
Contributor

Also, why 202012 branch? This branch is almost 4 years old.

@songqh2022 songqh2022 force-pushed the 202012 branch 2 times, most recently from 4bfc223 to a133d96 Compare October 9, 2024 09:56
@songqh2022
Copy link
Author

@saiarcot895 because this branch is also used by some users ,eg, Clounix. Also I will push it to the master branch after this request is merged, thank you!

Signed-off-by: Qinghua Song <songqh@clounix.com>
@saiarcot895
Copy link
Contributor

@songqh2022 Please create the master branch PR first. The general process is that changes go into the master branch first, then are backported to older branches, unless a change is not applicable to the master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants