Skip to content

LM75.c and LM75.h files #246

Closed
Closed

Description

@iz8mbw

Hi.
The LM75 sensor (and also others sensors compatible with LM75 driver) can supports also a resolution of 12bit (in addition to the 9bit by default). The LM75.c and LM75.h files available here https://github.com/raspberrypi/linux/tree/rpi-3.6.y/drivers/hwmon seem to support only 9bit resolution.
The upgraded LM75.c and LM75.h files available at lm-sensors here: http://khali.linux-fr.org/devel/misc/lm75/ support also a 12bit resolution and support also new chip.
Is it possibile to update these files?
Thanks!

Activity

  1. popcornmix commented on Mar 11, 2013

    @popcornmix
    Collaborator

    Generally we don't pull in out of (kernel) tree drivers without a very good reason.
    Have the modified files been accepted upstream into the linux kernel?
    If not, then requesting they are is the first step (they may have been rejected for a reason).

  2. iz8mbw commented on Mar 12, 2013

    @iz8mbw
    Author

    OK, do you know how to propose them into the linux kernel?

  3. technion commented on Mar 13, 2013

    @technion

    iz8mbw: https://www.kernel.org/doc/Documentation/SubmittingPatches
    There is a requirement on kernel submission involving a "Certificate of origin", see section 12.
    It would be more appropriate to contact khali@linux-fr.org and ask him to submit it.

  4. iz8mbw commented on Mar 13, 2013

    @iz8mbw
    Author
  5. technion commented on Mar 14, 2013

    @technion

    I could well be missing subsequent updates, but my reading there is that the patch was rejected, with a statement that more time was required for code review.
    If that was the view from the upstream maintainer, I'd be cautious about accepting it elsewhere.

  6. iz8mbw commented on Mar 15, 2013

    @iz8mbw
    Author

    So, should you wait for the patch approval? If it is not yet approved, I think that it will be approved soon. Should we wait?

  7. popcornmix commented on Mar 15, 2013

    @popcornmix
    Collaborator

    Yes, we should wait for the upstream review of the patch.

  8. iz8mbw commented on Mar 16, 2013

    @iz8mbw
    Author

    Hi.
    It seem that the various improvements on LM75 driver (supports 12bit resolution and the add of the chip DS7505) was approved on 14 of March: https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/log/?id=refs%2Ftags%2Fnext-20130315&qt=grep&q=hwmon

  9. popcornmix commented on Mar 16, 2013

    @popcornmix
    Collaborator

    Can anyone who uses this driver test whether these commits:
    2 days hwmon: (lm75) Add support for the Dallas/Maxim DS7505 Jean Delvare 3 -5/+12
    2 days hwmon: (lm75) Tune resolution and sample time per chip Jean Delvare 2 -9/+40
    2 days hwmon: (lm75) Prepare to support per-chip resolution and sample time Jean Delvare 1 -5/+26
    2 days hwmon: (lm75) Per-chip configuration register initialization Jean Delvare 1 -2/+22
    2 days hwmon: (lm75) Fix tcn75 prefix Jean Delvare 1 -1/+1
    2 days hwmon: (lm75.h) Update header inclusion Jean Delvare 1 -1/+1

    are all required, and if they are sufficient? (i.e. are there any other patches they rely on).

  10. iz8mbw commented on Mar 17, 2013

    @iz8mbw
    Author

    On my Raspberry I have tested these patchs, I'm using the last version of LM75, I can read with a 12bit resolution and I can read correctly also the chip Dallas/Maxim DS7505 (in 12bit resolution too).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions