Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751071AbaKYSWZ (ORCPT ); Tue, 25 Nov 2014 13:22:25 -0500 Received: from mail-ie0-f173.google.com ([209.85.223.173]:49135 "EHLO mail-ie0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750802AbaKYSWY (ORCPT ); Tue, 25 Nov 2014 13:22:24 -0500 MIME-Version: 1.0 In-Reply-To: <5474C36C.1020004@roeck-us.net> References: <1416930423-12179-1-git-send-email-bgolaszewski@baylibre.com> <1416930423-12179-2-git-send-email-bgolaszewski@baylibre.com> <5474A72D.2000309@roeck-us.net> <5474B564.9080902@roeck-us.net> <5474C36C.1020004@roeck-us.net> Date: Tue, 25 Nov 2014 19:22:23 +0100 Message-ID: Subject: Re: [PATCH 1/5] hwmon: ina2xx: bail-out from ina2xx_probe() in case of configuration errors From: Bartosz Golaszewski To: Guenter Roeck Cc: LKML , Benoit Cousson , Patrick Titiano Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2014-11-25 18:59 GMT+01:00 Guenter Roeck : > It seems to me this is a problem of your architecture. That doesn't > make it a generic problem. Your architecture should detect that a > probe was disconnected and de-instantiate the device automatically > if so, and re-instantiate it if it is re-inserted. Ultimately this > should be done with, for example, devicetree overlays. You're right and it's planned to be done this way in the future, when this project exits its prototype phase (around Q2 2015). Nevertheless I still think that if we're adding a set function, it should behave like the getters and check the value returned by i2c_smbus_write_word_swapped(). Bart -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/