Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp400852pxb; Thu, 19 Aug 2021 02:10:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRjlcxSkZBYkEms3JY3Sit9vwSgcNEWu6EdibzBjy4AXy9x8uS5ffxX/lgdzNmBmKc0ZLW X-Received: by 2002:a17:906:e8d:: with SMTP id p13mr14835155ejf.85.1629364247326; Thu, 19 Aug 2021 02:10:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629364247; cv=none; d=google.com; s=arc-20160816; b=zwFcGIWf51BYttS7OKOqjHV8BOaaAyxDx1l4PEgKab05yK/HTP+y9/QL5co3WSobTG 4LfWYHtPMMRYkIdaCR0LQCc5mjbHa7FkH3lkVmKyuTJfSHa1mNWzZQ+nDCP8TVWYU3oe ne8d3pxthetOwsTF4MgnM7SGeFQPBu/RbCC9bZmtb3+yjH2dlme6Z+iXzypfj/mOvbm4 p8luS1EzAB05sEYLRq4G0M7EIfZGKkgWDjxNpJcxJJlvlB7nksIVUlsYEteMODJ7hZxy /65iUyyvg8BaMI9Wc8tFQbKDxM+mFbGr22x1krFG3OqKx6lhIwEML1YPghcefqvWsnoA ajsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=WnXpqr4AEm5G0ufbH0HVBttWCHL/YPkBxdRoTVtSo3A=; b=f27d/SkOaz8xA3NBlp7Jq0EwK6SeC8WxhSXWbE+fAObkvRGg+QrxlbPuomVTQk477g 5+obOeQ2teI86xlfi8GASAo8R4y5kQ0G1+Ytkftzr+vDHO70+fRE+L/3TnLNgcZV3AL6 nWp63ZA0YgVcUe09xBlRBEFHsuafNj5tY/WBNLfGmcRxm9v+1zCdsSc/1M2Gr/pHDEPg a7mJsu8ORX1axwFD6gvdh5oyrw2UcdGz8Su4UWXGDxbYQrObRlc1mJrbToZYMmMXFq2n rSl8cGrGbYUdQ4dgNHs7AHyXZlssy/Q53u2vr//sx7KgTDf4HAFXwgkrknVrYcYPU7nN UuAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dDYvTUWO; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q15si2657771edr.337.2021.08.19.02.10.24; Thu, 19 Aug 2021 02:10: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=@redhat.com header.s=mimecast20190719 header.b=dDYvTUWO; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234517AbhHSJJm (ORCPT + 99 others); Thu, 19 Aug 2021 05:09:42 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:52881 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230202AbhHSJJj (ORCPT ); Thu, 19 Aug 2021 05:09:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629364143; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WnXpqr4AEm5G0ufbH0HVBttWCHL/YPkBxdRoTVtSo3A=; b=dDYvTUWO9noYdgD/5y08BdP0nPxF6dZ8RLXmL7tHmHR6EmD1Ut/xn4DmotjoCwxXKIkO4f A5izs7JAmoWhtTDIVzq21Idd2v1Y2rPCdpFXVeBonguQmqUS9OxM1d5MBCW+AgTSa8iqPz jlQMFU15PofY7nrKQkW1MtjjxZcRL5s= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-210-RCUZc3YNPWWLZb3MzZTD9Q-1; Thu, 19 Aug 2021 05:09:01 -0400 X-MC-Unique: RCUZc3YNPWWLZb3MzZTD9Q-1 Received: by mail-ed1-f70.google.com with SMTP id b25-20020a05640202d9b02903be7281a80cso2500202edx.3 for ; Thu, 19 Aug 2021 02:09:01 -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=WnXpqr4AEm5G0ufbH0HVBttWCHL/YPkBxdRoTVtSo3A=; b=AaU+uqcV3yBiNAPnqNbIEEES6BCgaxNfGqSuqLpJcT5gHnhTcsdhVvMhMHqXWd2Ils MJmVpxk+9FcJK+4a6bezgzz4IID+fFzHO44Shz0gkiJ9+0v90ZoQyBVVr7bKHaiFVklh u9hTSSwFxd3kMpqjyKaQVSY+8JwMv0p1MQXG0TlaW2ZjhKm7cJxZEqNL4wt3HltJvnZM J+nmNqAyG5OqMYyVMK/jxSf9SLthSVcq2XtbtkC6lQNhh5p58XmS0qaZ+8CrDYPxhUwl 92Yq8DKt0Lz0X4JYWlY/nnTfGbnD9xerircU8fizecEascjoiVxhSRhmgEBxP3W45XFe xnxg== X-Gm-Message-State: AOAM531luz/rGV3WJ1ojTUuGQ393kTsvPz8b7n5oVdn3FfeMFyY125HZ lx7dRemlqIYTt2WTNWtmFcm2FoM6+DvtFu4dXrnNTBuyFlI7TMFDfsFPbrYxFEW+dFWctnoy+RY sHvq0IpuVdaMH9Pgbkbn0ZM9P X-Received: by 2002:a17:906:ae51:: with SMTP id lf17mr14385393ejb.161.1629364140698; Thu, 19 Aug 2021 02:09:00 -0700 (PDT) X-Received: by 2002:a17:906:ae51:: with SMTP id lf17mr14385373ejb.161.1629364140515; Thu, 19 Aug 2021 02:09:00 -0700 (PDT) Received: from x1.localdomain (2001-1c00-0c1e-bf00-1054-9d19-e0f0-8214.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1054:9d19:e0f0:8214]) by smtp.gmail.com with ESMTPSA id v15sm962402ejq.116.2021.08.19.02.08.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Aug 2021 02:09:00 -0700 (PDT) Subject: Re: [PATCH v3 14/20] platform/x86: intel_atomisp2_led: Move to intel sub-directory To: Kate Hsuan , Alex Hung , Mark Gross , Srinivas Pandruvada , AceLan Kao , Jithu Joseph , Maurice Ma , Sujith Thomas , Rajneesh Bhardwaj , Zha Qipeng , Mika Westerberg , "David E . Box" , linux-kernel@vger.kernel.org, Dell.Client.Kernel@dell.com Cc: platform-driver-x86@vger.kernel.org References: <20210819033001.20136-1-hpa@redhat.com> <20210819033001.20136-15-hpa@redhat.com> From: Hans de Goede Message-ID: <3df6595a-0543-8fc3-21e8-d07ba3ae368f@redhat.com> Date: Thu, 19 Aug 2021 11:08:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210819033001.20136-15-hpa@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 8/19/21 5:29 AM, Kate Hsuan wrote: > Move intel_atomisp2_led to intel sub-directory to improve > readability. > > Signed-off-by: Kate Hsuan > --- > drivers/platform/x86/Kconfig | 34 ----------------- > drivers/platform/x86/Makefile | 4 +- > drivers/platform/x86/intel/Kconfig | 1 + > drivers/platform/x86/intel/Makefile | 2 + > drivers/platform/x86/intel/atomisp2/Kconfig | 38 +++++++++++++++++++ > drivers/platform/x86/intel/atomisp2/Makefile | 9 +++++ > .../atomisp2/led.c} | 0 > .../atomisp2/pm.c} | 0 > 8 files changed, 52 insertions(+), 36 deletions(-) > create mode 100644 drivers/platform/x86/intel/atomisp2/Kconfig > create mode 100644 drivers/platform/x86/intel/atomisp2/Makefile > rename drivers/platform/x86/{intel_atomisp2_led.c => intel/atomisp2/led.c} (100%) > rename drivers/platform/x86/{intel_atomisp2_pm.c => intel/atomisp2/pm.c} (100%) > > diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig > index 163dc73f3f95..196e70a8b264 100644 > --- a/drivers/platform/x86/Kconfig > +++ b/drivers/platform/x86/Kconfig > @@ -667,40 +667,6 @@ config THINKPAD_LMI > > source "drivers/platform/x86/intel/Kconfig" > > -config INTEL_ATOMISP2_LED > - tristate "Intel AtomISP2 camera LED driver" > - depends on GPIOLIB && LEDS_GPIO > - help > - Many Bay Trail and Cherry Trail devices come with a camera attached > - to Intel's Image Signal Processor. Linux currently does not have a > - driver for these, so they do not work as a camera. Some of these > - camera's have a LED which is controlled through a GPIO. > - > - Some of these devices have a firmware issue where the LED gets turned > - on at boot. This driver will turn the LED off at boot and also allows > - controlling the LED (repurposing it) through the sysfs LED interface. > - > - Which GPIO is attached to the LED is usually not described in the > - ACPI tables, so this driver contains per-system info about the GPIO > - inside the driver, this means that this driver only works on systems > - the driver knows about. > - > - To compile this driver as a module, choose M here: the module > - will be called intel_atomisp2_led. > - > -config INTEL_ATOMISP2_PM > - tristate "Intel AtomISP2 dummy / power-management driver" > - depends on PCI && IOSF_MBI && PM > - depends on !INTEL_ATOMISP > - help > - Power-management driver for Intel's Image Signal Processor found on > - Bay Trail and Cherry Trail devices. This dummy driver's sole purpose > - is to turn the ISP off (put it in D3) to save power and to allow > - entering of S0ix modes. > - > - To compile this driver as a module, choose M here: the module > - will be called intel_atomisp2_pm. > - > config INTEL_HID_EVENT > tristate "INTEL HID Event" > depends on ACPI > diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile > index 3d25ba595d4f..2a48171c11c1 100644 > --- a/drivers/platform/x86/Makefile > +++ b/drivers/platform/x86/Makefile > @@ -61,6 +61,8 @@ obj-$(CONFIG_TC1100_WMI) += tc1100-wmi.o > # Hewlett Packard Enterprise > obj-$(CONFIG_UV_SYSFS) += uv_sysfs.o > > + > + > # IBM Thinkpad and Lenovo > obj-$(CONFIG_IBM_RTL) += ibm_rtl.o > obj-$(CONFIG_IDEAPAD_LAPTOP) += ideapad-laptop.o > @@ -71,8 +73,6 @@ obj-$(CONFIG_THINKPAD_LMI) += think-lmi.o > # Intel > obj-$(CONFIG_X86_PLATFORM_DRIVERS_INTEL) += intel/ > > -obj-$(CONFIG_INTEL_ATOMISP2_LED) += intel_atomisp2_led.o > -obj-$(CONFIG_INTEL_ATOMISP2_PM) += intel_atomisp2_pm.o > obj-$(CONFIG_INTEL_HID_EVENT) += intel-hid.o > obj-$(CONFIG_INTEL_INT0002_VGPIO) += intel_int0002_vgpio.o > obj-$(CONFIG_INTEL_OAKTRAIL) += intel_oaktrail.o > diff --git a/drivers/platform/x86/intel/Kconfig b/drivers/platform/x86/intel/Kconfig > index f4f21c2f9230..01db66ec1462 100644 > --- a/drivers/platform/x86/intel/Kconfig > +++ b/drivers/platform/x86/intel/Kconfig > @@ -19,6 +19,7 @@ if X86_PLATFORM_DRIVERS_INTEL > source "drivers/platform/x86/intel/int33fe/Kconfig" > source "drivers/platform/x86/intel/int3472/Kconfig" > source "drivers/platform/x86/intel/pmt/Kconfig" > +source "drivers/platform/x86/intel/atomisp2/Kconfig" > > config INTEL_BXTWC_PMIC_TMU > tristate "Intel BXT Whiskey Cove TMU Driver" > diff --git a/drivers/platform/x86/intel/Makefile b/drivers/platform/x86/intel/Makefile > index 317e8f8d144a..05a012118ea1 100644 > --- a/drivers/platform/x86/intel/Makefile > +++ b/drivers/platform/x86/intel/Makefile > @@ -7,6 +7,8 @@ > obj-$(CONFIG_INTEL_CHT_INT33FE) += int33fe/ > obj-$(CONFIG_INTEL_SKL_INT3472) += int3472/ > obj-$(CONFIG_INTEL_PMT_CLASS) += pmt/ > +obj-$(CONFIG_INTEL_ATOMISP2_LED) += atomisp2/ > +obj-$(CONFIG_INTEL_ATOMISP2_PM) += atomisp2/ Here is the issue of entering into the subdir twice if both options are enabled again (and also the indent is wrong and seems to be using spaces). I've fixed this by adding making some changes to: drivers/platform/x86/intel/atomisp2/Kconfig I added: config INTEL_ATOMISP2_PDX86 bool Which is basically a hidden (not user selectable) bool option, defaulting to N (which is the default default) And then I added: select INTEL_ATOMISP2_PDX86 The the config bits for both CONFIG_INTEL_ATOMISP2_LED and CONFIG_INTEL_ATOMISP2_PM and then used the new CONFIG_INTEL_ATOMISP2_PDX86 in the Makefile to dive into the subdir. I have made these changes while merging the series there is no need for a new version. Regards, Hans > > # Intel PMIC / PMC / P-Unit devices > intel_bxtwc_tmu-y := bxtwc_tmu.o > diff --git a/drivers/platform/x86/intel/atomisp2/Kconfig b/drivers/platform/x86/intel/atomisp2/Kconfig > new file mode 100644 > index 000000000000..e5851d8c33eb > --- /dev/null > +++ b/drivers/platform/x86/intel/atomisp2/Kconfig > @@ -0,0 +1,38 @@ > +# SPDX-License-Identifier: GPL-2.0-only > +# > +# Intel x86 Platform Specific Drivers > +# > + > +config INTEL_ATOMISP2_LED > + tristate "Intel AtomISP2 camera LED driver" > + depends on GPIOLIB && LEDS_GPIO > + help > + Many Bay Trail and Cherry Trail devices come with a camera attached > + to Intel's Image Signal Processor. Linux currently does not have a > + driver for these, so they do not work as a camera. Some of these > + camera's have a LED which is controlled through a GPIO. > + > + Some of these devices have a firmware issue where the LED gets turned > + on at boot. This driver will turn the LED off at boot and also allows > + controlling the LED (repurposing it) through the sysfs LED interface. > + > + Which GPIO is attached to the LED is usually not described in the > + ACPI tables, so this driver contains per-system info about the GPIO > + inside the driver, this means that this driver only works on systems > + the driver knows about. > + > + To compile this driver as a module, choose M here: the module > + will be called intel_atomisp2_led. > + > +config INTEL_ATOMISP2_PM > + tristate "Intel AtomISP2 dummy / power-management driver" > + depends on PCI && IOSF_MBI && PM > + depends on !INTEL_ATOMISP > + help > + Power-management driver for Intel's Image Signal Processor found on > + Bay Trail and Cherry Trail devices. This dummy driver's sole purpose > + is to turn the ISP off (put it in D3) to save power and to allow > + entering of S0ix modes. > + > + To compile this driver as a module, choose M here: the module > + will be called intel_atomisp2_pm. > diff --git a/drivers/platform/x86/intel/atomisp2/Makefile b/drivers/platform/x86/intel/atomisp2/Makefile > new file mode 100644 > index 000000000000..96b1e877d1f1 > --- /dev/null > +++ b/drivers/platform/x86/intel/atomisp2/Makefile > @@ -0,0 +1,9 @@ > +# SPDX-License-Identifier: GPL-2.0-only > +# > +# Intel x86 Platform Specific Drivers > +# > + > +intel_atomisp2_led-y := led.o > +obj-$(CONFIG_INTEL_ATOMISP2_LED) += intel_atomisp2_led.o > +intel_atomisp2_pm-y += pm.o > +obj-$(CONFIG_INTEL_ATOMISP2_PM) += intel_atomisp2_pm.o > diff --git a/drivers/platform/x86/intel_atomisp2_led.c b/drivers/platform/x86/intel/atomisp2/led.c > similarity index 100% > rename from drivers/platform/x86/intel_atomisp2_led.c > rename to drivers/platform/x86/intel/atomisp2/led.c > diff --git a/drivers/platform/x86/intel_atomisp2_pm.c b/drivers/platform/x86/intel/atomisp2/pm.c > similarity index 100% > rename from drivers/platform/x86/intel_atomisp2_pm.c > rename to drivers/platform/x86/intel/atomisp2/pm.c >