Path: csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: =?utf-8?B?TWljaGHFgiBLxJlwaWXFhA==?= Newsgroups: linux.kernel Subject: Moving drivers/leds/dell-led.c to drivers/platform/x86 Date: Mon, 13 Jun 2016 15:50:03 +0200 Message-ID: Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kempniu.pl; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=/LtlxbkApFOx1G3tzqV+f+er7318WaJeZuBuVjUdqlA=; b=ntySNM4daeBDxV5grmVR5/Vepf+70lcNdsMcvOpVU4kQTmRi4qU9S2wcqhx+U/2XW3 VFh/bE7XUDFBCRmmuwpt/iU8XYrFpxs6zxw9CPQZz1DEEXIx742i7DbTtzjFP9+DhKBt 9p8c5MfYjvuHYOiCb1WnRXTQ6A/JJvoUsqMi4= X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=/LtlxbkApFOx1G3tzqV+f+er7318WaJeZuBuVjUdqlA=; b=Q/QwunJFTK3HKtDTo9VGZ7dXD25tmwXGffVb8Nw2CXlB2BVaxdfhKJSdJS5xCy2ZbL nHe4nL8G5qqKpw/VlFYxJa5KIyvIBjr35rgK0aRAzRjOqxV93hovNZ6vKVIz3upJCeMF dDHash13OCBdj3GcxQ+L9/50vUEKE/vvzFTiqJ9ILIS9POLyWQxHOAx/yA9eKRgZMyEP dtLmMjx3xzjqPPyByUZoNysa9m4rHf6eejMQXkHUOPU6RhR7J1fIAYRAu7NSex37eoHn vfkArYzhJFVBQ2g3O+5s0i1zDLqhnv8c4U1cxfX8UrFHNnhoDr3K6+LmcklFJQ6vbFlx if/w== X-Gm-Message-State: ALyK8tISS/D8qPfcHhuBzWBMguRLgHslGrC855uQ5AzgpQUQng5AnsCQJh7pvDTlel17Yw== X-Received: by 10.28.36.8 with SMTP id k8mr1366382wmk.66.1465825786244; Mon, 13 Jun 2016 06:49:46 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.21 (2010-09-15) Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 57 Organization: linux.* mail to news gateway X-Original-Cc: Bob Rodgers , Louis Davis , Jim Dailey , Alex Hung , linux-leds@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org X-Original-Date: Mon, 13 Jun 2016 15:49:42 +0200 X-Original-Message-ID: <20160613134942.GA2824@eudyptula.hq.kempniu.pl> X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: csiph.com linux.kernel:1420867 Hi everyone, Back in January [1], while working on the dell-smbios module, I suggested that the code present in drivers/leds/dell-led.c could be moved to drivers/platform/x86 for coherency. I decided to revisit that idea. dell-led consists of two major parts: - the part handling an "Activity LED" present in Dell Latitude 2100 netbooks, introduced in 72dcd8d; it registers a LED device and uses a special WMI interface to control its state, - the part exposing a "microphone mute LED interface", introduced in db6d8cc; this interface is used by sound/pci/hda/dell_wmi_helper.c; while the original implementation also used a WMI interface, it was changed to use dell-smbios in cf0d7ea and 0c41a08. I believe both parts could (and should) be moved to drivers/platform/x86 as drivers/platform/x86/dell-laptop.c already handles a bunch of LEDs and drivers/leds/dell-led.c is the only dell-smbios user outside of drivers/platform/x86. My question to you, the maintainers of the relevant drivers and subsystems, is whether you would like to see such a move happen. I have prepared a draft patch series which: - moves the "microphone mute LED interface" to dell-laptop.c, effectively causing sound/pci/hda/dell_wmi_helper.c to depend on CONFIG_DELL_LAPTOP instead of CONFIG_LEDS_DELL_NETBOOKS, - moves the "Activity LED" part to a new file, tentatively called drivers/platform/x86/dell-wmi-led.c. Merging the "Activity LED" part with drivers/platform/x86/dell-wmi.c is not really clean because dell-wmi handles a different GUID, which AFAIK is not related in any way to the GUID used by dell-led. So, before I spam *three* subsystem mailing lists with a bunch of patches, I would love to hear from the maintainers of both drivers/leds and drivers/platform/x86 whether there are any arguments against such a move. Meanwhile, I will keep polishing the patch series and if there is no strong disagreement from any party involved, I will post the series next week or so, so that we can discuss code and not just ideas. As a side note, if anyone reading this has access to a Dell device which has an "Activity LED" and/or a "microphone mute LED" currently supported by dell-led, I would love to hear from you as I do not have the hardware needed to practically test the patch series I am working on. Looking forward to hearing from you, [1] https://www.spinics.net/lists/platform-driver-x86/msg08143.html -- Best regards, Michał Kępień