Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1168067pxk; Fri, 25 Sep 2020 07:54:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwNp0yY9enRzsG5kd2K70p95rwzkAjgP5IE69Tmn08wGXjPfOVAG/3CAjH7FNYbY8oJ8PS X-Received: by 2002:aa7:da42:: with SMTP id w2mr1664876eds.287.1601045687613; Fri, 25 Sep 2020 07:54:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601045687; cv=none; d=google.com; s=arc-20160816; b=HvtC4xgP6wrWEWxc73Fvo1+uTT3WubIViVaPUt3roXDg6uV6N6wWtSNiaO9QvHtrYp se/DkcWGgNOBuLSThaePs2/w3NMzzIVYd7ZNV7hAGZ4tJkdrUuCGRCOSrbhIOQcooh7m G7uMo2+VVdoSChOn1yGo8RTJ2l+DDM3bxtdD/SUMTpXyLb3AjQocFP9UO1QqIRjtdCcj 8iXrkUrEGZC/MAY7pEnkHXFE1Srbs7xhWpWwiPAk7l1iFfSboDawOngGdNdBnl8fH8+j +6hS1vh6aDUiYKR8AkbRcwyJ8PWnRtCXLlbGTKdgL9jzWWkEWUcUf517NwZv9iXMvwJK mHEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=eFwDxojg/pSUZmy/jgMQ1wV+tRHc4oxueQ4CcPNn7Ts=; b=tGgTQ2D+i8SO0FicnUUX0BPo/JNg+aKykol4agWZSnuA4IrPbeHoyCM1Cln0LxtS+2 pSB5xBpvRCcGNZSZe+HfK8QgOwOkD7TVXX287gWTj2wBwZb0NqyFn8hCVvI8F0icXXc5 dCH4VpLZGGUFitAgJvvSsHL4n2P8O8eVjJ1lZQob/KX4OPueU3RtediHDyK+sPI0meei gPeb78BnxOmLFk2EYQ+r5ylcY/0GU1VlIlTJOe3mPOt5m5m1c3zLWnjwW18wAV5KwJpE k6o40qGuowIMEJAR3OfZioZFgt3JVD8MeDEnbdrWthkOnm122L4X3qEfkYlhuKha9P3B W1hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ZB/C+nli"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p34si2181703edb.470.2020.09.25.07.54.24; Fri, 25 Sep 2020 07:54:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ZB/C+nli"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729076AbgIYOx3 (ORCPT + 99 others); Fri, 25 Sep 2020 10:53:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728731AbgIYOx3 (ORCPT ); Fri, 25 Sep 2020 10:53:29 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0AACC0613CE; Fri, 25 Sep 2020 07:53:28 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id z19so3418367pfn.8; Fri, 25 Sep 2020 07:53:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eFwDxojg/pSUZmy/jgMQ1wV+tRHc4oxueQ4CcPNn7Ts=; b=ZB/C+nlid9Nz8DsPMXDb19d+bNnVxGXq0Tu5Qjzd85rWSXbavrWVS7xTLlwXo4CBbb ryJwD78H62q2xycvAWQqvxCDhJwvyLMm3ibjV/gUUazdvYedD564AFxf47AQYe51Xjyo Bv+14t6CZrny/vP/DgZE+iiiaoWdzfhPRVRYQYqpXY1bHscPHar7j1VHz0XsqFPr+saQ NK1UyizuMtzDVqqEdcKdZGblboUF0Ms5qc0SldLfbEQp67lUIq4dmyHZbtuNkmH6mRXW YN8z4RJp8C7ofMu15teFqSpLpJL9w/N3s8Hqh3U8p0jXM3wkeGRbhQg+ABTFNeP2wy4C uCog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eFwDxojg/pSUZmy/jgMQ1wV+tRHc4oxueQ4CcPNn7Ts=; b=GjWND2cvOV73qF3BAjDdcKr0o+/L7bIEsBrrXEKTaQDv1F+9TJGqP3fGjLnmKlfi1/ 403MOghyogk0PSEZXCXdcIgk1yLrsg/DEMhTV2rsUsasQNHZPWno4FYEShYwZjQjhdH+ 8/Oua1muWUi6eo1nf6YY9uZeCj+llGtSecWqbJS/h1DzPYmVxaeSaDa6AjCj2OIoJ49Q cVrZbdSN+kQVPm4Oi/jGc8zDc25nI7XtYuoUqa2zFahfv1PC5f+SmuTufwW3GvLFGf69 U6pjfDE+owTkQjp69ugT2VEFzmoDeFTZcMQbxMOjXVachGMuceCk7b++TLsusPrn1w+q FAnA== X-Gm-Message-State: AOAM53272iTy6Pg8wNF73HEwF3awP8sz324T5ZNzXuLhsbHWtVIsxFty g0vRG5ZDthH56s1dbchnDZE5jYu7le2vnkGJ878= X-Received: by 2002:a63:4b14:: with SMTP id y20mr357764pga.203.1601045608211; Fri, 25 Sep 2020 07:53:28 -0700 (PDT) MIME-Version: 1.0 References: <20200923151511.3842150-1-luzmaximilian@gmail.com> In-Reply-To: From: Andy Shevchenko Date: Fri, 25 Sep 2020 17:53:10 +0300 Message-ID: Subject: Re: [RFC PATCH 0/9] Add support for Microsoft Surface System Aggregator Module To: Arnd Bergmann Cc: Maximilian Luz , "linux-kernel@vger.kernel.org" , "open list:SERIAL DRIVERS" , ACPI Devel Maling List , Greg Kroah-Hartman , Rob Herring , Jiri Slaby , "Rafael J. Wysocki" , Len Brown , =?UTF-8?Q?Bla=C5=BE_Hrastnik?= , Dorian Stoll , Darren Hart , Andy Shevchenko , Platform Driver Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 24, 2020 at 10:38 PM Arnd Bergmann wrote: > On Thu, Sep 24, 2020 at 8:59 PM Maximilian Luz wrote: > > On 9/24/20 10:26 AM, Arnd Bergmann wrote: > > > On Thu, Sep 24, 2020 at 1:28 AM Maximilian Luz wrote: > > > > Note that drivers that connect to the bus typically don't live in the > > > same subdirectory as the driver that operates the bus. E.g. the > > > battery driver would go into drivers/power/supply and the input > > > would go into drivers/input/ or drivers/hid. > > > > Right. I wonder if this also holds for devices that are directly > > dependent on a special platform though? It could make sense to have them > > under plaform/surface rather than in the individual subsystems as they > > are only ever going to be used on this platform. On the other hand, one > > could argue that having them in the subsystem directories is better for > > maintainability. > > Yes, absolutely. The subsystem maintainers are the ones that are > most qualified of reviewing code that uses their subsystem, regardless > of which bus is used underneath the device, and having all drivers > for a subsystem in one place makes it much easier to refactor them > all at once in case the internal interfaces are changed or common bugs > are found in multiple drivers. The problem is that some of the drivers are mostly reincarnation of board files due to the platform being Windows-oriented with badly written ACPI tables / firmware as a whole (which means a lot of quirks are required). -- With Best Regards, Andy Shevchenko