Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756192AbcDJS3M (ORCPT ); Sun, 10 Apr 2016 14:29:12 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:50923 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756088AbcDJS3K (ORCPT ); Sun, 10 Apr 2016 14:29:10 -0400 Date: Tue, 22 Mar 2016 12:27:38 +0100 From: Pavel Machek To: =?utf-8?B?TWljaGHFgiBLxJlwaWXFhA==?= Cc: Jonathan Woithe , Darren Hart , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] fujitsu-laptop: Support radio LED Message-ID: <20160322112738.GA26924@xo-6d-61-c0.localdomain> References: <1458127687-25366-1-git-send-email-kernel@kempniu.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1458127687-25366-1-git-send-email-kernel@kempniu.pl> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 935 Lines: 30 Hi! > Sadly, this implementation is unsuitable for use with "heavy" LED > triggers, like phy0rx. Once blinking frequency achieves a certain > level, the system hangs. I'm not sure how much of an issue this is as > I'm pretty sure other LEDs registered by fujitsu-laptop would also cause > a hang when assigned to a similar trigger as they are also controlled > using ACPI. Something to do with triggers working in interrupt context? Cc led people? > + > +static enum led_brightness radio_led_get(struct led_classdev *cdev); > +static void radio_led_set(struct led_classdev *cdev, > + enum led_brightness brightness); > + > +static struct led_classdev radio_led = { > + .name = "fujitsu::radio_led", > + .brightness_get = radio_led_get, > + .brightness_set = radio_led_set > +}; Is the naming consistent with other drivers? Should there be default trigger so that it works out of the box? Best regards, Pavel