Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753491AbbENJpY (ORCPT ); Thu, 14 May 2015 05:45:24 -0400 Received: from smtp36.i.mail.ru ([94.100.177.96]:36584 "EHLO smtp36.i.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752642AbbENJpW (ORCPT ); Thu, 14 May 2015 05:45:22 -0400 Message-ID: <55546EAC.70408@list.ru> Date: Thu, 14 May 2015 12:45:16 +0300 From: Stas Sergeev User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Jacek Anaszewski CC: linux-leds@vger.kernel.org, Linux kernel , Bryan Wu , Richard Purdie , Kyungmin Park , Stas Sergeev Subject: Re: [PATCH] leds: fix brightness changing when software blinking is active References: <55535DA4.2010509@list.ru> <55546084.9050704@samsung.com> In-Reply-To: <55546084.9050704@samsung.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam: Not detected X-Mras: Ok Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1233 Lines: 29 14.05.2015 11:44, Jacek Anaszewski пишет: > >> if (led_cdev->blink_delay_on || led_cdev->blink_delay_off) { >> led_cdev->delayed_set_value = brightness; >> - schedule_work(&led_cdev->set_brightness_work); > > This line is still required. Please refer to the patch d23a22a74. But I really want to get rid of this line and vacate the work-queue, so that in the future the per-driver work-queues can be replaced with this. Why do you think it is still needed? Are there any valid cases where you need to disable the soft-blink from hard-irq context? IMHO the soft-blink is only disabled as a result of user's actions, which is not in a hard-irq context. Could you please explain the use-case? >> /* Stop blinking */ >> + led_stop_software_blink(led_cdev); > This won't be needed. Indeed, but with these changes there should be no requirement for disabling a soft-blink from hard-irq context, which is what I really wanted to have. What am I missing? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/