Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp832142imm; Wed, 4 Jul 2018 06:48:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfz4kCTsT3+WvJ2NUil1LeeaH6kSNgHVA62vTBrwF35NIcAp3Yy9B4ElhNw2iOh358MlYUt X-Received: by 2002:a62:6cc7:: with SMTP id h190-v6mr2291483pfc.113.1530712094559; Wed, 04 Jul 2018 06:48:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530712094; cv=none; d=google.com; s=arc-20160816; b=OSQr/6x/0b5TeHOEtq49Jg/VWd0G52bBBjtGWAeQ7pLQ0E7+EPsYwnLacWrMkAAALh 87RGaKJwu9JrZ93Ye4tZDXpANhKIScwgBudTtqPb/Le3uHlQ82ZMMCxNNs06rX70yRYM bVrHqlbIAb59833jBc1q9OVL/94Vd1FCbWEYEqJG3tepBvRTvpARRvbVYaSvUIrkOtn+ Mr05qcan2FickELwbU9bNbOyeev5NsnYURYsUWzDouW+uY+BDsYKNoJqCMspvBumRXyu xZ2ltxNWD1w/vnJBG0n7PUrWOPNIvKD9O1+kb9kmNFuiiER1Y8Kd6uGn6aCLjMDxC6um 1UZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=c5doDLToCf7xuS0dLC6q1LJr7ceYL3srvl5X6vkh+Kk=; b=DbsmGG6mTlIykSgFbfF4oKViOWMZNncQLi/BKxQLa5cWrYoa6X2Zhmw3DOeSRk5NUT TeS+IY7r3fKFrMi6OhLp2/H7H2k5u4VJUXXy5oDwXnXdZOmUsgqZtjAQMx5qfYQbGO64 oPBI1kvufkJTlpL8hJl8Iy9wQKlEeUYuepMpTChtF5PfBD3luZ6s94plzp2rpYnOGCVj 0g/vGLKDiHOqKy7iNPQXmuExic2Q7o61f+Pz1ry021I9dPYlo+a1GgpJremgcs+qhZ/i sjIb5HiI0y+s2DYzlbvGHsBT8MGXFRkTKJdLMy/cHTUkoZecq/5+XrFS3qqDedZbi9ay LBKg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p64-v6si3426740pga.25.2018.07.04.06.48.00; Wed, 04 Jul 2018 06:48:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932496AbeGDNqY (ORCPT + 99 others); Wed, 4 Jul 2018 09:46:24 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:56090 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753664AbeGDNoW (ORCPT ); Wed, 4 Jul 2018 09:44:22 -0400 Received: by mail-wm0-f66.google.com with SMTP id v16-v6so5874791wmv.5 for ; Wed, 04 Jul 2018 06:44:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=c5doDLToCf7xuS0dLC6q1LJr7ceYL3srvl5X6vkh+Kk=; b=Um6zYGXRx9HCfN7XcJdm9nPADmWhAGX1/C1sOD1IsJMefgsYFkRND9rOMC/RjfPtOr +Z724It7gLe9moy5uXEYVNxuQaO6ndVpk/WxEhuNaa9NNwj+xRZdO7LgnreTPX5lz1st /1dDCBfZGLYfAdRXX5mnyXItKijI61bZVSPIIe21+0T2cZLW0LSWNlT8U3WLseXtYI6N /GLrIqKyyyqCP5e4BOkFLro8MQsJnBhp/hTHGHkdOI8QQ7l4vyGO2OANPRtv/tyJlSRp UUqsXffTPKLYJfzPR50HEkpZheLGqM3L2OzAzChfB0DzBSq9qULJMPz5TRTenR73rJtT Gtrg== X-Gm-Message-State: APt69E2nfxO2zzbTutEBtrI71d8qUdgUYZLWOMA2iRt1wjB6cMvQnq2c OLMByoQLn6atq44c8LtUZ8dMJPH9MzA= X-Received: by 2002:a1c:6c14:: with SMTP id h20-v6mr1764377wmc.138.1530711860122; Wed, 04 Jul 2018 06:44:20 -0700 (PDT) Received: from [10.201.33.7] ([195.166.127.210]) by smtp.gmail.com with ESMTPSA id e3-v6sm7402057wmd.2.2018.07.04.06.44.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jul 2018 06:44:19 -0700 (PDT) Subject: Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe() To: Nikolaus Voss , Javier Martinez Canillas Cc: Andy Shevchenko , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Lorenzo Bianconi , Linus Walleij , Xiongfeng Wang , linux-iio , Linux Kernel Mailing List References: <10258a21-db42-2c4e-91d6-e9227e11f53b@redhat.com> From: Javier Martinez Canillas Message-ID: <96736265-f7ef-fff7-eb28-6a9715024e00@redhat.com> Date: Wed, 4 Jul 2018 15:44:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/04/2018 03:24 PM, Nikolaus Voss wrote: > On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: >> On Wed, Jul 4, 2018 at 2:31 PM, Nikolaus Voss >> wrote: >>> On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: >>>> >>>> On Wed, Jul 4, 2018 at 1:46 PM, Nikolaus Voss >>>> wrote: >>>> >>> >>> [snip] >>> >>>> But this discussion isn't really related to your patch. I think is >>>> correct but just said that (b) wasn't a justification to leave the I2C >>>> table, points (a) and (c) are though. I won't really be convinced that >>>> the fallback is the correct thing to do or even a good idea. >>> >>> >>> I didn't want to annoy you, I just wanted to understand why you think >>> fallback is such a bad thing that you call it a bug. And I see, it has its >>> drawbacks ;-). Anyway, thanks for taking the time to clarify this, >>> >> >> Oh, I'm not annoyed, sorry if I sounded that way. What I tried to say >> is that I've a strong opinion on this and won't be convinced otherwise >> :) >> >> So for me is a bug because that would mean that either an entry is >> missing in an OF device table or a DTS has a node with a compatible >> string without a vendor prefix. > > Yes, I see your point (and your strong opinion :-)), but AFAIK vendor > prefix is not mandatory... At least for vendor-agnostic drivers like The latest Device Tree specification [0] says about the compatible string: "The recommended format is 'manufacturer,model', where manufacturer is a string describing the name of the manufacturer (such as a stock ticker symbol), and model specifies the model number". > "regulator-fixed" (very popular in dts files). My point is not bloating I don't think the "regulator-fixed" is a good example. Since the Device Tree should describe the hardware. The "regulator-fixed" is a convenient way to describe a fixed voltage regulator but I think is more of an exception. I'm pretty sure that the DT maintainers wouldn't ack a DT binding with a compatible string that doesn't have a manufacture prefix nowadays. > drivers with large redundant (from a driver-functional view) tables when > one table could be enough for a properly working driver. Having three You need the OF table anyways for module autoload since the I2C core will report a OF module alias. You can only do the I2C fallback trick if your driver can't be build as a module. But even in that case you would be ignoring the vendor. > different names for exactly the same isn't very beautiful IMO. > I agree with you on that. But abusing a table used by another firmware interface isn't beautiful either. So I think the best is to have consistency and always use the same table for the same firmware interface. > I hope you're still not annoyed... > Don't worry for that, it's very hard to get my annoyed :) > Niko > [0]: https://github.com/devicetree-org/devicetree-specification/releases/tag/v0.2 Best regards, -- Javier Martinez Canillas Software Engineer - Desktop Hardware Enablement Red Hat