From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751286AbdAWQp4 (ORCPT ); Mon, 23 Jan 2017 11:45:56 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:34231 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750738AbdAWQpw (ORCPT ); Mon, 23 Jan 2017 11:45:52 -0500 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [PATCH v4 6/9] clocksource/drivers/rockchip_timer: split bc_timer into rk_timer and rk_clock_event_device From: Alexander Kochetkov In-Reply-To: <20170123162624.GG2166@mai> Date: Mon, 23 Jan 2017 19:45:10 +0300 Cc: LKML , devicetree@vger.kernel.org, LAK , linux-rockchip@lists.infradead.org, Thomas Gleixner , Heiko Stuebner , Mark Rutland , Rob Herring , Russell King , Caesar Wang , Huang Tao Message-Id: References: <1480343486-25539-1-git-send-email-al.kochet@gmail.com> <1480436092-10728-1-git-send-email-al.kochet@gmail.com> <1480436092-10728-7-git-send-email-al.kochet@gmail.com> <20170123162624.GG2166@mai> To: Daniel Lezcano X-Mailer: Apple Mail (2.3124) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v0NGjx7v027914 Daniel, thanks for reviewing patches! > 23 янв. 2017 г., в 19:26, Daniel Lezcano написал(а): > > On Tue, Nov 29, 2016 at 07:14:49PM +0300, Alexander Kochetkov wrote: >> The patch move ce field out of struct bc_timer into struct >> rk_clock_event_device and rename struct bc_timer to struct rk_timer. > > Why ? Single rockchip timer can be either broadcast timer/clockevent (current implementation) or clocksource (the one I’ve implemented in series). Both implementations based on low level timer routines (rk_timer_disable, rk_timer_enable, rk_timer_update_counter, rk_timer_counter_read and so on). Both implementations use timers in different modes (interrupts vs free running). In order to distinguish this concepts I tried to split low level timer routines from bc_timer. Otherwise I can place all needed clocksource filelds into 'struct bc_timer’ and rename 'struct bc_timer’ into 'struct rk_timer’. If this is more clear solution I can rewrite patches. Alexander.