From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755514AbdEYFry (ORCPT ); Thu, 25 May 2017 01:47:54 -0400 Received: from mail-lf0-f41.google.com ([209.85.215.41]:34873 "EHLO mail-lf0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754312AbdEYFrv (ORCPT ); Thu, 25 May 2017 01:47:51 -0400 Subject: Re: [PATCH/RFC] iio: hi8435: do not enable all events by default To: Jonathan Cameron References: <20170523080830.20571-1-nikita.yoush@cogentembedded.com> <20170524202735.3cf4e14e@kernel.org> Cc: Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Sanchayan Maity , Gregor Boirie , Matt Ranostay , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Healy , Jeff White , Vladimir Barinov From: Nikita Yushchenko X-Enigmail-Draft-Status: N1110 Message-ID: <2e6019f5-94fc-bb13-f616-0c1cfe81a7db@cogentembedded.com> Date: Thu, 25 May 2017 08:47:47 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170524202735.3cf4e14e@kernel.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 24.05.2017 22:27, Jonathan Cameron wrote: > On Tue, 23 May 2017 11:08:30 +0300 > Nikita Yushchenko wrote: > >> Having all events enabled by default is misleading. >> Userspace should explicitly enable events they want to receive. >> >> Signed-off-by: Nikita Yushchenko > I agree in principle, but this is a userspace ABI change. Sadly we > can't do it with out risking breaking userspace code... > > One of those we should have caught in review, but now it's there > we can't actually do anything about it unless we are absolutely > sure no one will notice! I see your point. Still, isn't there subsystem-level default that all events are disabled by default? If such, then current hi8435 state breaks subsystem-level rules, which is a [userspace-visible] bug. I'm not sure how far should we go in bug compatibility. One crazy idea could be - make default selectable via device tree (with default set to all-enabled to keep bug-compatibility). But perhaps that's over-reaction.