From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 06 Jul 2015 20:25:05 +0200 (CEST) Received: from mail-la0-f50.google.com ([209.85.215.50]:35709 "EHLO mail-la0-f50.google.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27013220AbbGFSZEAZtE4 (ORCPT ); Mon, 6 Jul 2015 20:25:04 +0200 Received: by labgy5 with SMTP id gy5so13558408lab.2 for ; Mon, 06 Jul 2015 11:24:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:organization:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=HmfM5mqT09a9B6HH7lHgwEMJMrawW8yIGODOdlWD18A=; b=TULVx71Q6wMP5tWOOK+yZIpaODcmlDqaf4rUtdvwBO89imf+5NYwLWyY1R2He8+fkY 9y4e+F2etWKC5pPQjmSROMFIzaJkKoh+g7vxR3pQbzAkuddxhSie5s/LuAbx1t/oFkjB DK3EWgw1GhIQEcHihj2dhTaE9O9RQi77nkMER2bL/spEVdzjX0cTN47DxnEMpSpVM38g D1XKVKqMQKKx4WAn5ZHcfOp3ioFLJYivGureBza4omUOAepfywQ9GJqTMmba71gtysmg E+15Q0iB2k+NZ2nhpiYHeybZ66eNrLk5XT/wzCtR3kHSI1V7crs0SIfNNDUHi94ktc6Z 13oA== X-Gm-Message-State: ALoCoQnY99R7VpaTNnWI0wt+GJnq4SqyXkhOmhDTQhVHVF9oPUSwNPscN54bG/+VkOndb2Ez9syw X-Received: by 10.152.179.162 with SMTP id dh2mr152948lac.53.1436207098623; Mon, 06 Jul 2015 11:24:58 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp83-237-249-53.pppoe.mtu-net.ru. [83.237.249.53]) by mx.google.com with ESMTPSA id c2sm4940401laa.43.2015.07.06.11.24.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jul 2015 11:24:57 -0700 (PDT) Message-ID: <559AC7F7.9080600@cogentembedded.com> Date: Mon, 06 Jul 2015 21:24:55 +0300 From: Sergei Shtylyov Organization: Cogent Embedded User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Viresh Kumar , Daniel Lezcano , linux-mips@linux-mips.org, ralf@linux-mips.org CC: linaro-kernel@lists.linaro.org, Thomas Gleixner , James Hogan , Andrew Bresticker , Qais Yousef , Jason Cooper , Leonid Yegoshin Subject: Re: [PATCH 07/14] MIPS/cevt-r4k: Migrate to new 'set-state' interface References: <559AC4E0.80205@cogentembedded.com> In-Reply-To: <559AC4E0.80205@cogentembedded.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 48084 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: sergei.shtylyov@cogentembedded.com Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips Hello. On 07/06/2015 09:11 PM, Sergei Shtylyov wrote: >> Migrate cevt-4k driver to the new 'set-state' interface provided by >> clockevents core, the earlier 'set-mode' interface is marked obsolete >> now. >> This also enables us to implement callbacks for new states of clockevent >> devices, for example: ONESHOT_STOPPED. >> We weren't doing anything in the ->set_mode() callback. So, this patch >> doesn't provide any set-state callbacks. > The code in __clockevents_switch_state() looks like it's going to oops as > you're not implementing set_state_oneshot()... In fact, clockevents_sanity_check() should return -EINVAL in this case, and so the kernel crash even earlier, duyr to BUG_ON() in clockevents_register_device(). WBR, Sergei