public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: Bartosz Golaszewski <brgl@bgdev•pl>
To: Sekhar Nori <nsekhar@ti•com>,
	Daniel Lezcano <daniel.lezcano@linaro•org>,
	Thomas Gleixner <tglx@linutronix•de>,
	David Lechner <david@lechnology•com>,
	Kevin Hilman <khilman@kernel•org>
Cc: Bartosz Golaszewski <bgolaszewski@baylibre•com>,
	linux-kernel@vger•kernel.org,
	linux-arm-kernel@lists•infradead.org
Subject: [PATCH v2 0/3] ARM: davinci: convert dm365 to using the new clocksource driver
Date: Tue, 24 Dec 2019 11:03:25 +0100	[thread overview]
Message-ID: <20191224100328.13608-1-brgl@bgdev.pl> (raw)

From: Bartosz Golaszewski <bgolaszewski@baylibre•com>

Hi Sekhar,

I'm resending this (with fixes) as other solutions have failed and I
think that this is a correct thing to do after all. In the end: with
this patch we do bring the clock to a defined state before enabling it.

Let me know what you think about it.

---

This is a follow-up to the big series converting DaVinci to using
a proper clocksource driver. Last time we couldn't merge the entire
series because of a bug that only appears on dm365 Soc when using
ancient u-boot.

This series contains a workaround for this problem, a patch finally
converting the platform as well as a removal of all obsolete code.

v1 -> v2:
- simplify patch 1/3 by using a boolean flag instead of caching the
  value bits for TIM34

Bartosz Golaszewski (3):
  clocksource: davinci: only enable tim34 in periodic mode once it's
    initialized
  ARM: davinci: dm365: switch to using the clocksource driver
  ARM: davinci: remove legacy timer support

 arch/arm/mach-davinci/Makefile              |   3 +-
 arch/arm/mach-davinci/devices-da8xx.c       |   1 -
 arch/arm/mach-davinci/devices.c             |  19 -
 arch/arm/mach-davinci/dm365.c               |  22 +-
 arch/arm/mach-davinci/include/mach/common.h |  17 -
 arch/arm/mach-davinci/include/mach/time.h   |  33 --
 arch/arm/mach-davinci/time.c                | 400 --------------------
 drivers/clocksource/timer-davinci.c         |  13 +-
 8 files changed, 25 insertions(+), 483 deletions(-)
 delete mode 100644 arch/arm/mach-davinci/include/mach/time.h
 delete mode 100644 arch/arm/mach-davinci/time.c

-- 
2.23.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

             reply	other threads:[~2019-12-24 10:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-24 10:03 Bartosz Golaszewski [this message]
2019-12-24 10:03 ` [PATCH v2 1/3] clocksource: davinci: only enable tim34 in periodic mode once it's initialized Bartosz Golaszewski
2020-01-09 23:12   ` Daniel Lezcano
2020-01-10 17:05     ` Bartosz Golaszewski
2019-12-24 10:03 ` [PATCH v2 2/3] ARM: davinci: dm365: switch to using the clocksource driver Bartosz Golaszewski
2019-12-24 10:03 ` [PATCH v2 3/3] ARM: davinci: remove legacy timer support Bartosz Golaszewski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191224100328.13608-1-brgl@bgdev.pl \
    --to=brgl@bgdev$(echo .)pl \
    --cc=bgolaszewski@baylibre$(echo .)com \
    --cc=daniel.lezcano@linaro$(echo .)org \
    --cc=david@lechnology$(echo .)com \
    --cc=khilman@kernel$(echo .)org \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=nsekhar@ti$(echo .)com \
    --cc=tglx@linutronix$(echo .)de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox