From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752112AbdEFOXQ (ORCPT ); Sat, 6 May 2017 10:23:16 -0400 Received: from mail-qk0-f176.google.com ([209.85.220.176]:35277 "EHLO mail-qk0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750995AbdEFOXI (ORCPT ); Sat, 6 May 2017 10:23:08 -0400 MIME-Version: 1.0 In-Reply-To: References: <20170424133334.7064-1-kernel@kempniu.pl> <20170501130536.GA25546@marvin.atrad.com.au> <20170502132144.GA6808@ozzy.nask.waw.pl> <20170504234058.GC21562@marvin.atrad.com.au> <20170505161556.GC4793@fury> <20170506123107.GA2516@kmp-mobile.hq.kempniu.pl> <20170506124516.GA1075@kmp-mobile.hq.kempniu.pl> From: Andy Shevchenko Date: Sat, 6 May 2017 17:23:06 +0300 Message-ID: Subject: Re: [PATCH 00/10] fujitsu-laptop: use device-specific data instead of module-wide globals To: =?UTF-8?B?TWljaGHFgiBLxJlwaWXFhA==?= Cc: Darren Hart , Jonathan Woithe , Rafael Wysocki , Andy Shevchenko , Platform Driver , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v46ENJ05006809 On Sat, May 6, 2017 at 5:21 PM, Andy Shevchenko wrote: > On Sat, May 6, 2017 at 3:45 PM, Michał Kępień wrote: > >> To be fair, one thing that may be "unnatural" with this approach is that >> even though fujitsu-backlight would depend on fujitsu-laptop, it would >> still have to get a handle to FUJ02E3 using: >> >> acpi_get_handle(NULL, "\\_SB.FEXT", ...) >> >> because call_fext_func() - and thus fext_backlight() - needs to be >> passed a handle to FUJ02E3 and the two ACPI devices (FUJ02B1 handled by >> fujitsu-backlight and FUJ02E3 handled by fujitsu-laptop) are not related >> from the perspective of the ACPI device hierarchy. Unless there is a >> better way of implementing this, in which case I am open to suggestions. > > There are two areas to check with: > 1. Remote graph node > https://lwn.net/Articles/718184/ > 2. Component framework (only works in case when all devices are > mandatory to have). Ah, and third one is MFD framework. -- With Best Regards, Andy Shevchenko