Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5913630ybi; Sun, 21 Jul 2019 05:16:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqyAYI0RULE3yj2taGn7yYuUB6MhgQIFj4BivAf7whWmB92HTgLkHKmmcc07dhemyDSGKjca X-Received: by 2002:a17:902:a60d:: with SMTP id u13mr70188054plq.144.1563711375536; Sun, 21 Jul 2019 05:16:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563711375; cv=none; d=google.com; s=arc-20160816; b=vyAO1Yw9713QeUtpX076P2bDYCglI9br6X0S6TownKk/fbXybRfarmoW6pAMl6E6gR l4/tyuyAzvyt0ADrcqFsuEXpzqA5EnQRKoJ/YRpYtl65v+FfJIKm4WkPWpjnWGG6ayhK pGUFlHuf8JoO98e4dpRvwJNRvVnq3ThDfBT/3BtrFCgzP6EYKOtnUIMOmevDnDhJ0Orr MthKWoLR4B+G4KaDTFELVVdXN8yBwhyNJXGspquneW03PUJFYxV2Zrixkf/srlRyP7MP WgN0isLveLi9fjbyfozO1Bx+qzJGOMniBEzjOs9kNYJJ/atF2u4KY7+2Qj4XZJXohQuK mEhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=MIA0+vFVf3mUGGa03CY80enR4qM7bzkzR410L3fu3TE=; b=FWTAnokDuJfEwdrOd6mkCWwCOxUzE7d3cr19iOwB/xaa8LGJGRSkkPpadfXh6cyj1K wIj24319mWr76LfnFJ1qi3wrDJx9M26RGZS2MTtOc1L3rOJbOio/usrjwNctyqqeug6e zSniU6Vb4J+KiNnyVXMNZg10jd/94c5+6hh7QTwU1OM4Bx4e18MorDnqqNnARzPMUS+V qjRxJ02nps+SAtR45k2aYPYet4BiR/9geUQR9UVl7CS21U2F8KWA0qlujnNDJl0Q3qKw knsKdZXxrVzEuVtZFTiHc9+30PXhj8rXOpbW4AxeGk2cCuIHW+PE2N/D8h8adTTiJVN9 Mm8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=q5QL+RHF; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b15si187452pgj.141.2019.07.21.05.15.46; Sun, 21 Jul 2019 05:16:15 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=q5QL+RHF; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726518AbfGUMND (ORCPT + 99 others); Sun, 21 Jul 2019 08:13:03 -0400 Received: from conssluserg-05.nifty.com ([210.131.2.90]:23229 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726188AbfGUMNC (ORCPT ); Sun, 21 Jul 2019 08:13:02 -0400 Received: from mail-ua1-f51.google.com (mail-ua1-f51.google.com [209.85.222.51]) (authenticated) by conssluserg-05.nifty.com with ESMTP id x6LCCvWl011978; Sun, 21 Jul 2019 21:12:58 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com x6LCCvWl011978 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1563711178; bh=MIA0+vFVf3mUGGa03CY80enR4qM7bzkzR410L3fu3TE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=q5QL+RHFEViaW/mMvaiRLzKjwSgbDFxpOxs/RfKREU7HS8r89mC2Bz7zMjVOaXyXn tcMALk0yb+puadsgO9+2y8TVFyRAZ4y0mLCm+cBkvl+tEprAF+7gkmzX8cgn+OYJeS I1sV136C7Hgcgdk00LjWZBn14Xab9lSJwKzufWhEcHDnSMGrjPKmc/uqG/kmhYCRn2 Dqx/mXqAwm5ImwYiX1+4i1CnHusTEZf3G3ZNGaVd588g98vmsQtltf0TjPbzdezDYY 4Z8PoTYL21ClgrHmq3rlcy3Q8zuOy8BZK6I88MDOCTGWAha5Y0Q+Ir4P3N1cLKJpK0 DzewVIvkwKM3A== X-Nifty-SrcIP: [209.85.222.51] Received: by mail-ua1-f51.google.com with SMTP id o2so14278655uae.10; Sun, 21 Jul 2019 05:12:58 -0700 (PDT) X-Gm-Message-State: APjAAAUR7Jmw0z83SSha3vK7PnS7NpS6cqB76g0Fw24RVjSKF/VrpH2G efmLBtClXZx1B4EEaVYkH7appSuaYyRltuC93jc= X-Received: by 2002:a9f:2265:: with SMTP id 92mr25208724uad.121.1563711177169; Sun, 21 Jul 2019 05:12:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Masahiro Yamada Date: Sun, 21 Jul 2019 21:12:20 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [Question] orphan platform data header To: Arnd Bergmann Cc: Ben Dooks , Linux Kernel Mailing List , Linus Torvalds , Greg Kroah-Hartman , DTML , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 21, 2019 at 6:10 PM Arnd Bergmann wrote: > > On Sun, Jul 21, 2019 at 5:45 AM Masahiro Yamada > wrote: > > On Sat, Jul 20, 2019 at 10:55 PM Arnd Bergmann wrote: > > > On Sat, Jul 20, 2019 at 5:26 AM Masahiro Yamada wrote: > > > > So, what shall we do? > > > > > > > > Drop the board-file support? Or, keep it > > > > in case somebody is still using their board-files > > > > in downstream? > >> > > > For this file, all boards got converted to DT, and the old setup > > > code removed in commit ebc278f15759 ("ARM: mvebu: remove static > > > LED setup for netxbig boards"), four years ago, so it's a fairly > > > easy decision to make it DT only. > > > > I see another case, which is difficult > > to make a decision. > > > > For example, drivers/spi/spi-tle62x0.c > > > > This driver supports only board-file, but the board-file > > is not found in upstream. > > > > Unless I am terribly missing something, > > there is no one who passes tle62x0_pdata > > to this driver. > > > > $ git grep tle62x0_pdata > > drivers/spi/spi-tle62x0.c: struct tle62x0_pdata *pdata; > > include/linux/spi/tle62x0.h:struct tle62x0_pdata { > > > > But, removing board-file support > > makes this driver completely useless... > > Adding Ben Dooks to Cc. > > I suspect this driver is completely obsolete and should be removed. > > For some reason, it's not an SPI controller driver like all the other > files in that directory, but implements low-level access to the state > of a particular SPI device. > > However, there should not really be a low-level driver for it that > just exports the pins to user space. It should either be a gpiolib > driver to let other drivers talk to the pins, or a high-level driver that > exposes the intended functionality (watchdog, regulator, ...) > to those respective subsystems. > > Arnd Another example that I have no idea how it works: drivers/net/hamradio/yam.c yam_ioctl() reads data from user-space, but the data structures for ioctl are defined in include/linux/yam.h This header is not exported to user-space since it is outside of the uapi directory. I dug the git history, but it has never exported to user-space in the past. I do not know how user-space programs can pass-in data to the kernel. If we want to fix this, we could move it to include/uapi/linux/yam.h But, if nobody has reported any problem about this, it might be a good proof that nobody is using this driver. Maybe, can we simply drop odd drivers?? -- Best Regards Masahiro Yamada