From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965193AbdJQRxh (ORCPT ); Tue, 17 Oct 2017 13:53:37 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:48396 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933354AbdJQRxg (ORCPT ); Tue, 17 Oct 2017 13:53:36 -0400 X-Google-Smtp-Source: ABhQp+RL4Kc5u1jBgnOOWi5bmJgESsEMipbC7Pcxroyyl/hSYmDsjIIFPyKMmldDwMXf0mq684lLdg== Subject: Re: [PATCH v4 1/4] clocksource: stm32: convert driver to timer_of To: Benjamin Gaignard Cc: Rob Herring , Mark Rutland , Russell King - ARM Linux , Maxime Coquelin , Alexandre Torgue , Thomas Gleixner , Ludovic Barre , devicetree@vger.kernel.org, Linux ARM , Linux Kernel Mailing List References: <1506959513-16851-1-git-send-email-benjamin.gaignard@linaro.org> <1506959513-16851-2-git-send-email-benjamin.gaignard@linaro.org> <88c8f124-4cb1-a982-d4a2-c029ab0dcd2a@linaro.org> From: Daniel Lezcano Message-ID: <28b1df26-8375-1a38-b918-39b80390ef7d@linaro.org> Date: Tue, 17 Oct 2017 19:53:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/10/2017 19:34, Benjamin Gaignard wrote: > 2017-10-17 19:09 GMT+02:00 Daniel Lezcano : >> On 02/10/2017 17:51, Benjamin Gaignard wrote: >>> Convert driver to use timer_of helpers. This allow to remove >>> custom proprietary structure. >>> >>> Signed-off-by: Benjamin Gaignard >>> --- >> >> [ ... ] >> >>> - clockevents_config_and_register(&data->evtdev, >>> - DIV_ROUND_CLOSEST(rate, prescaler), >>> - 0x1, max_delta); >>> - >>> - ret = request_irq(irq, stm32_clock_event_handler, IRQF_TIMER, >>> - "stm32 clockevent", data); >>> - if (ret) { >>> - pr_err("%pOF: failed to request irq.\n", np); >>> - goto err_get_irq; >>> - } >>> + clockevents_config_and_register(&to->clkevt, >>> + timer_of_period(to), 0x60, max_delta); >> >> >> Why 0x1 -> 0x60 ? > > Because if the min delta is too small it could generate too much interrupts > and the system will not be able to catch all of them. You did a change not related to what is described in the log. Shame on you! 50 push-ups! Reply to this email when it is done. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog