Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2170564imm; Sun, 23 Sep 2018 22:36:46 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZzBr+IvN0ceVDvfiraciyt9Oh8JjBqYn/yWz8Mj9oQ+FwNzsFbtXItZmeJV6UIeQHTB/Wp X-Received: by 2002:a62:1d16:: with SMTP id d22-v6mr2105737pfd.159.1537767406265; Sun, 23 Sep 2018 22:36:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537767406; cv=none; d=google.com; s=arc-20160816; b=gcYDTjBp90Hx+K94FKG4BzH+YY57q2sb8s6npK5AFb9HaIo2QjKVbE0Ka7EMsfOgT/ 0cdkJeKhcB2csEoRSVrdGXXaexE8//cwOYmVKu2qcnPBmCFwN5FjHgHuCoogJszfEIHn Cqj9P2hp0te25ohoCE+Gj0cqvkj/TjjOmtm3vRiRIWbysC+pCLjOion2Ld85R+P1qf97 56rGUGsvpesN2jbERokiyESV0vW25nYoyHGDWUZB51yfqdzdsgvxyS+HdGJxRSeySv2y IzRqL+3lX133ItgsHDY+SJbBOgHyTjIXh3U/D8q5zwi2fbzbOywWT4pgYWxhNXG8AzIX mz8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Z9R1aXWDdyaRlMfRGrp94QSZu/fyz5EfI5I6L2UcPxw=; b=K/MR3H0gESVjQnLrER8huKiecNGntDM1D2yaC7XCQhGK26VG42tgCkbY80CIJcYfkb GvLaMlt5SbRf8o79r2NVB9c32F+oWA+wiV3MpCnGejPS8NCTYIR66N0/x0cEMe7pV3QU +34mUoFu1e/rCHCEE3ZZdU9MOM7vUTLYnpevkLzaVc5W092/+H2tTz20vqiagI6/wx0A Vu7QF45D15OFZ0myOD0lGExSf87fE6dxrOYV5tKkWasOSlakX6cFcNPN5W7GIj0iSRux g3MDa6R5SoQpwO7/fodIYWgCNKcFrZ+Cl87QdW9DC3FWo1QJbI63qMX1AVgBMjF+iAbu d+ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F0A+IgX8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o126-v6si34633015pfb.20.2018.09.23.22.36.20; Sun, 23 Sep 2018 22:36:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F0A+IgX8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727466AbeIXLfb (ORCPT + 99 others); Mon, 24 Sep 2018 07:35:31 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:34418 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727422AbeIXLfb (ORCPT ); Mon, 24 Sep 2018 07:35:31 -0400 Received: by mail-wm1-f66.google.com with SMTP id j25-v6so8940708wmc.1 for ; Sun, 23 Sep 2018 22:35:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Z9R1aXWDdyaRlMfRGrp94QSZu/fyz5EfI5I6L2UcPxw=; b=F0A+IgX8KvCefyU4euLvooaN8cO+Z0pYMbkFBYMrjwVARWC0azKYZ4SdpFTUhsaGi8 A6VyP3FiL1qHpmaymEvzUYH5q0i9Op5xgMz9NNjpzE4EgPk3xgJVKNwepYUgAc/kjLea jWMawZ9ALhUyFVxk/Osw8W0qusXqQ0HqRAh9M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Z9R1aXWDdyaRlMfRGrp94QSZu/fyz5EfI5I6L2UcPxw=; b=QDk92sbIiqQ2pJlPXRnIAfD3dgUOlMUHs6uf3aaKxoS8mXbp9fdAc4aMxO2Cyjz7ZF SC7LLbrgg8GrEDkC2Zrw06cEENItGs2zs/lFZ0RSEFRCX4fv+i6QWQH8TP0c3zFY+02T IihvqtFjRvSN5QcYF90dcjs6DuqVwpdozQL+qMTQ3U8XPG+Eu2SQCYqAvZZqPWjSR+YW 7trc/jj+TXzMD8yLFh05S3IYq/Fd5Dz3or8PN51scQzOmbHJTgCc0GK8MWC02JnSxATf rleJMFOSmdqUdgXkRpEmXqT7yMRo1olc8VxgANYZCrSd5GTqSayQY0l8QgHj/R1rRijq r30g== X-Gm-Message-State: APzg51BEqyFR2vASdeUuhxWXdJrHs91Ffa7ysXq1TTIBOMaA6OQR9Gi/ T6FLo2qEcQ46+6zWZl7y3U14dg== X-Received: by 2002:a1c:f210:: with SMTP id s16-v6mr4263888wmc.36.1537767307505; Sun, 23 Sep 2018 22:35:07 -0700 (PDT) Received: from [192.168.0.41] (89.154.136.77.rev.sfr.net. [77.136.154.89]) by smtp.googlemail.com with ESMTPSA id g2-v6sm2558997wmh.16.2018.09.23.22.35.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Sep 2018 22:35:06 -0700 (PDT) Subject: Re: [PATCH v7 05/24] clocksource: Add a new timer-ingenic driver To: Paul Cercueil Cc: Mathieu Malaterre , Thomas Gleixner , Rob Herring , linux-doc@vger.kernel.org, linux-watchdog@vger.kernel.org, Jonathan Corbet , od@zcrc.me, linux-mips@linux-mips.org, Paul Burton , Mark Rutland , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Ralf Baechle , Thierry Reding , linux-pwm@vger.kernel.org References: <5ba8750a.1c69fb81.501e8.d0f0SMTPIN_ADDED_MISSING@mx.google.com> From: Daniel Lezcano Message-ID: <58645f14-aec2-4f66-3a39-34beeabdb035@linaro.org> Date: Mon, 24 Sep 2018 07:35:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <5ba8750a.1c69fb81.501e8.d0f0SMTPIN_ADDED_MISSING@mx.google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/09/2018 07:24, Paul Cercueil wrote: > Hi Daniel, > > Le 24 sept. 2018 05:12, Daniel Lezcano a écrit : >> >> On 21/08/2018 19:16, Paul Cercueil wrote: >>> This driver handles the TCU (Timer Counter Unit) present on the Ingenic >>> JZ47xx SoCs, and provides the kernel with a system timer, and optionally >>> with a clocksource and a sched_clock. >>> >>> It also provides clocks and interrupt handling to client drivers. >> >> Can you provide a much more complete description of the timer in order >> to make my life easier for the review of this patch? > > See patch [03/24], it adds a doc file that describes the hardware. Thanks, I went through but it is incomplete to understand what the timer do. I will reverse-engineer the code but it would help if you can give the gross approach. Why multiple channels ? mutexes and completion ? -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog