Skip to content

hwmon-lm75: backport support for PCT2075 thermal sensor#165

Merged
lguohan merged 1 commit intosonic-net:masterfrom
dflynn-Nokia:master
Nov 4, 2020
Merged

hwmon-lm75: backport support for PCT2075 thermal sensor#165
lguohan merged 1 commit intosonic-net:masterfrom
dflynn-Nokia:master

Conversation

@dflynn-Nokia
Copy link
Copy Markdown
Contributor

New platform HW may use the NXP-PCT2075 thermal sensor which is compatible with
the lm75 sensor. These patches backport support for that sensor from 5.x
kernels.

New platform HW may use the NXP-PCT2075 thermal sensor which is compatible with
the lm75 sensor. These patches backport support for that sensor from 5.x
kernels.
@ghost
Copy link
Copy Markdown

ghost commented Oct 30, 2020

CLA assistant check
All CLA requirements met.

@lguohan
Copy link
Copy Markdown
Contributor

lguohan commented Nov 4, 2020

please identify the upstream commit id in https://github.com/torvalds/linux based on the policy 2 defined in READMD.md.

@dflynn-Nokia
Copy link
Copy Markdown
Contributor Author

This patch includes the following upstream commits:

557c7ffa2f28 hwmon: (lm75) add support for PCT2075
985e225142cf dt-bindings: hwmon: Add missing documentation for lm75
be889be7785d dt-bindings: hwmon: Add tmp75b to lm75.txt
5ac6badc5aa0 device-tree: bindinds: add NXP PCT2075 as compatible device to LM75

checkpatch.pl has passed.

@lguohan
Copy link
Copy Markdown
Contributor

lguohan commented Nov 4, 2020

cannot find the commit in the above repo, can you check? https://github.com/torvalds/linux/search?q=985e225142cf

@dflynn-Nokia
Copy link
Copy Markdown
Contributor Author

I search for commits this way:
https://github.com/torvalds/linux/commit/985e225142cf

@dflynn-Nokia
Copy link
Copy Markdown
Contributor Author

dflynn-Nokia commented Nov 4, 2020

Hmmm, the above URL seems to only work within github

It seems the github commit hash search feature is not working reliably?
I see failures to find many other commits within Linus's repo.

@@ -0,0 +1,115 @@
From 90b3a0b833131831bf259e3506aaf9f29317aae9 Mon Sep 17 00:00:00 2001
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what is this commit id? should be torvalds/linux@557c7ffa2f28, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes. I first brought in patch/0001-hwmon-lm75-add-support-for-PCT2075.patch which is a backport of torvalds/linux@557c7ff. When I ran checkpatch.pl against this patch it complained about missing device tree bindings. So I added the patches for 985e225142cf , be889be7785d, and 5ac6badc5aa0 to remedy this. All of these commits are present in Linus's tree but searching for them doesn't appear to be working.

@lguohan lguohan merged commit 9a70549 into sonic-net:master Nov 4, 2020
lguohan pushed a commit that referenced this pull request Nov 5, 2020
New platform HW may use the NXP-PCT2075 thermal sensor which is compatible with
the lm75 sensor. These patches backport support for that sensor from 5.x
kernels.

upstream kernel commit id:

557c7ffa2f28 hwmon: (lm75) add support for PCT2075 (5.4-rc1)
985e225142cf dt-bindings: hwmon: Add missing documentation for lm75 (5.1-rc1)
be889be7785d dt-bindings: hwmon: Add tmp75b to lm75.txt (5.2-rc1)
5ac6badc5aa0 device-tree: bindinds: add NXP PCT2075 as compatible device to LM75 (5.4-rc1)

all the commits can be remove once upgrade to 5.10
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.

2 participants