Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1430689

Re: [PATCH 1/5] hwmon: (tmp102) Use devm_add_action to register cleanup function

From Nishanth Menon <nm@ti.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/5] hwmon: (tmp102) Use devm_add_action to register cleanup function
Date 2016-06-24 16:20 +0200
Message-ID <rNA7D-Hi-9@gated-at.bofh.it> (permalink)
References <rNnap-QK-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 06/23/2016 07:28 PM, Guenter Roeck wrote:
> By registering a cleanup function with devm_add_action(), we can
> simplify the error path in the probe function and drop the remove
> function entirely.
>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>

I dont seem to have a cover letter to reply to... but anyways..

Before: http://pastebin.ubuntu.com/17801376/
After all 5 patches: http://pastebin.ubuntu.com/17801824/

Fails on beagleboard-X15 with:
[   36.781509] tmp102 0-0048: No cache defaults, reading back from HW
[   36.795940] tmp102 0-0048: unexpected config register value

I have'nt bisected down on the specific patch in the series. Have you 
had a chance to test the series?


-- 
Regards,
Nishanth Menon

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/5] hwmon: (tmp102) Use devm_add_action to register cleanup function Guenter Roeck <linux@roeck-us.net> - 2016-06-24 02:30 +0200
  [PATCH 2/5] hwmon: (tmp102) Drop FSF address Guenter Roeck <linux@roeck-us.net> - 2016-06-24 02:30 +0200
  [PATCH 3/5] hwmon: (tmp102) Improve handling of initial read delay Guenter Roeck <linux@roeck-us.net> - 2016-06-24 02:30 +0200
  [PATCH 5/5] hwmon: (tmp102) Convert to use regmap, and drop local cache Guenter Roeck <linux@roeck-us.net> - 2016-06-24 02:30 +0200
  [PATCH 4/5] hwmon: (tmp102) Rework chip configuration Guenter Roeck <linux@roeck-us.net> - 2016-06-24 02:30 +0200
  Re: [PATCH 1/5] hwmon: (tmp102) Use devm_add_action to register  cleanup function Nishanth Menon <nm@ti.com> - 2016-06-24 16:20 +0200
    Re: [PATCH 1/5] hwmon: (tmp102) Use devm_add_action to register  cleanup function Guenter Roeck <linux@roeck-us.net> - 2016-06-24 16:40 +0200
      Re: [PATCH 1/5] hwmon: (tmp102) Use devm_add_action to register  cleanup function Guenter Roeck <linux@roeck-us.net> - 2016-06-24 17:00 +0200
        Re: [PATCH 1/5] hwmon: (tmp102) Use devm_add_action to register  cleanup function Nishanth Menon <nm@ti.com> - 2016-06-24 17:30 +0200
          Re: [PATCH 1/5] hwmon: (tmp102) Use devm_add_action to register  cleanup function Nishanth Menon <nm@ti.com> - 2016-06-24 17:40 +0200
          Re: [PATCH 1/5] hwmon: (tmp102) Use devm_add_action to register  cleanup function Guenter Roeck <linux@roeck-us.net> - 2016-06-24 18:40 +0200
            Re: [PATCH 1/5] hwmon: (tmp102) Use devm_add_action to register  cleanup function Nishanth Menon <nm@ti.com> - 2016-06-24 20:10 +0200
              Re: [PATCH 1/5] hwmon: (tmp102) Use devm_add_action to register  cleanup function Guenter Roeck <linux@roeck-us.net> - 2016-06-24 20:20 +0200
                Re: [PATCH 1/5] hwmon: (tmp102) Use devm_add_action to register  cleanup function Nishanth Menon <nm@ti.com> - 2016-06-24 20:30 +0200
                Re: [PATCH 1/5] hwmon: (tmp102) Use devm_add_action to register  cleanup function Guenter Roeck <linux@roeck-us.net> - 2016-06-25 03:30 +0200

csiph-web