<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/clocksource/sh_mtu2.c, branch linux-4.16.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.16.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.16.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2015-10-28T14:22:56Z</updated>
<entry>
<title>clocksource/drivers/sh_mtu2: Fix multiple shutdown call issue</title>
<updated>2015-10-28T14:22:56Z</updated>
<author>
<name>Magnus Damm</name>
<email>damm+renesas@opensource.se</email>
</author>
<published>2015-10-28T01:43:23Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=fe326c5cc07cd265abad29c35c142cfae09889e4'/>
<id>urn:sha1:fe326c5cc07cd265abad29c35c142cfae09889e4</id>
<content type='text'>
On the r7s72100 Genmai board the MTU2 driver currently triggers a common
clock framework WARN_ON(enable_count) when disabling the clock due to
the MTU2 driver after recent callback rework may call -&gt;set_state_shutdown()
multiple times. A similar issue was spotted for the TMU driver and fixed in:
452b132 clocksource/drivers/sh_tmu: Fix traceback spotted in -next

On r7s72100 Genmai v4.3-rc7 built with shmobile_defconfig spits out the
following during boot:

sh_mtu2 fcff0000.timer: ch0: used for clock events
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at drivers/clk/clk.c:675 clk_core_disable+0x2c/0x6c()
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.3.0-rc7 #1
Hardware name: Generic R7S72100 (Flattened Device Tree)
Backtrace:
[&lt;c00133d4&gt;] (dump_backtrace) from [&lt;c0013570&gt;] (show_stack+0x18/0x1c)
[&lt;c0013558&gt;] (show_stack) from [&lt;c01c7aac&gt;] (dump_stack+0x74/0x90)
[&lt;c01c7a38&gt;] (dump_stack) from [&lt;c00272fc&gt;] (warn_slowpath_common+0x88/0xb4)
[&lt;c0027274&gt;] (warn_slowpath_common) from [&lt;c0027400&gt;] (warn_slowpath_null+0x24/0x2c)
[&lt;c00273dc&gt;] (warn_slowpath_null) from [&lt;c03a9320&gt;] (clk_core_disable+0x2c/0x6c)
[&lt;c03a92f4&gt;] (clk_core_disable) from [&lt;c03aa0a0&gt;] (clk_disable+0x40/0x4c)
[&lt;c03aa060&gt;] (clk_disable) from [&lt;c0395d2c&gt;] (sh_mtu2_disable+0x24/0x50)
[&lt;c0395d08&gt;] (sh_mtu2_disable) from [&lt;c0395d6c&gt;] (sh_mtu2_clock_event_shutdown+0x14/0x1c)
[&lt;c0395d58&gt;] (sh_mtu2_clock_event_shutdown) from [&lt;c007d7d0&gt;] (clockevents_switch_state+0xc8/0x114)
[&lt;c007d708&gt;] (clockevents_switch_state) from [&lt;c007d834&gt;] (clockevents_shutdown+0x18/0x28)
[&lt;c007d81c&gt;] (clockevents_shutdown) from [&lt;c007dd58&gt;] (clockevents_exchange_device+0x70/0x78)
[&lt;c007dce8&gt;] (clockevents_exchange_device) from [&lt;c007e578&gt;] (tick_check_new_device+0x88/0xe0)
[&lt;c007e4f0&gt;] (tick_check_new_device) from [&lt;c007daf0&gt;] (clockevents_register_device+0xac/0x120)
[&lt;c007da44&gt;] (clockevents_register_device) from [&lt;c0395be8&gt;] (sh_mtu2_probe+0x230/0x350)
[&lt;c03959b8&gt;] (sh_mtu2_probe) from [&lt;c028b6f0&gt;] (platform_drv_probe+0x50/0x98)

Reported-by: Chris Brandt &lt;chris.brandt@renesas.com&gt;
Fixes: 19a9ffb ("clockevents/drivers/sh_mtu2: Migrate to new 'set-state' interface")
Cc: Viresh Kumar &lt;viresh.kumar@linaro.org&gt;
Cc: Laurent Pinchart &lt;laurent.pinchart+renesas@ideasonboard.com&gt;
Signed-off-by: Magnus Damm &lt;damm+renesas@opensource.se&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Reviewed-by: Viresh Kumar &lt;viresh.kumar@linaro.org&gt;
</content>
</entry>
<entry>
<title>clockevents/drivers/sh_mtu2: Migrate to new 'set-state' interface</title>
<updated>2015-08-10T09:40:38Z</updated>
<author>
<name>Viresh Kumar</name>
<email>viresh.kumar@linaro.org</email>
</author>
<published>2015-06-18T10:54:35Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=19a9ffb3d6e9ed1d3a46aee18d0b7f8eff41c82b'/>
<id>urn:sha1:19a9ffb3d6e9ed1d3a46aee18d0b7f8eff41c82b</id>
<content type='text'>
Migrate sh_mtu2 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.

Cc: Magnus Damm &lt;damm+renesas@opensource.se&gt;
Cc: Laurent Pinchart &lt;laurent.pinchart+renesas@ideasonboard.com&gt;
Cc: Paul Mundt &lt;lethal@linux-sh.org&gt;
Signed-off-by: Viresh Kumar &lt;viresh.kumar@linaro.org&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Acked-by: Laurent Pinchart &lt;laurent.pinchart+renesas@ideasonboard.com&gt;
</content>
</entry>
<entry>
<title>clocksource: sh_mtu2: Add DT support</title>
<updated>2014-07-04T13:50:29Z</updated>
<author>
<name>Laurent Pinchart</name>
<email>laurent.pinchart+renesas@ideasonboard.com</email>
</author>
<published>2014-03-04T17:28:26Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=cca8d0596c4c7acb371ea1bc5eee9b404b30516a'/>
<id>urn:sha1:cca8d0596c4c7acb371ea1bc5eee9b404b30516a</id>
<content type='text'>
Document DT bindings and parse them in the MTU2 driver.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart+renesas@ideasonboard.com&gt;
Tested-by: Wolfram Sang &lt;wsa@sang-engineering.com&gt;
</content>
</entry>
<entry>
<title>clocksource: sh_mtu2: Replace global spinlock with a per-device spinlock</title>
<updated>2014-07-02T14:01:50Z</updated>
<author>
<name>Laurent Pinchart</name>
<email>laurent.pinchart+renesas@ideasonboard.com</email>
</author>
<published>2014-03-04T14:25:56Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=8b2463d8cae2dda0c98ab5a15f25a0350a0e998d'/>
<id>urn:sha1:8b2463d8cae2dda0c98ab5a15f25a0350a0e998d</id>
<content type='text'>
The global spinlock is used to protect the shared start/stop register.
Now that all MTU2 channels are handled by a single device instance, use
a per-device spinlock.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart+renesas@ideasonboard.com&gt;
Tested-by: Wolfram Sang &lt;wsa@sang-engineering.com&gt;
</content>
</entry>
<entry>
<title>clocksource: sh_mtu2: Drop support for legacy platform data</title>
<updated>2014-07-02T14:01:50Z</updated>
<author>
<name>Laurent Pinchart</name>
<email>laurent.pinchart+renesas@ideasonboard.com</email>
</author>
<published>2014-03-04T17:13:57Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=1a5da0e43be0c07462e445549dbdd4a1731a3e11'/>
<id>urn:sha1:1a5da0e43be0c07462e445549dbdd4a1731a3e11</id>
<content type='text'>
Now that all platforms have switched to the new-style platform data,
drop support for the legacy version.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart+renesas@ideasonboard.com&gt;
Tested-by: Wolfram Sang &lt;wsa@sang-engineering.com&gt;
</content>
</entry>
<entry>
<title>clocksource: sh_mtu2: Remove unnecessary OOM messages</title>
<updated>2014-05-23T07:23:11Z</updated>
<author>
<name>Jingoo Han</name>
<email>jg1.han@samsung.com</email>
</author>
<published>2014-05-22T12:05:07Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=c77a565b2966567b97d589e90a6b9ce725bb15b1'/>
<id>urn:sha1:c77a565b2966567b97d589e90a6b9ce725bb15b1</id>
<content type='text'>
The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.

[dlezcano] : refreshed against latest modifications: kmalloc -&gt; kzalloc

Signed-off-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
</content>
</entry>
<entry>
<title>clocksource: sh_mtu2: Sort headers alphabetically</title>
<updated>2014-04-16T10:03:34Z</updated>
<author>
<name>Laurent Pinchart</name>
<email>laurent.pinchart+renesas@ideasonboard.com</email>
</author>
<published>2014-03-04T13:11:47Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=346f5e76b3822a2530a03f33b00ee89dfc463326'/>
<id>urn:sha1:346f5e76b3822a2530a03f33b00ee89dfc463326</id>
<content type='text'>
This helps locating duplicates and inserting new headers.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart+renesas@ideasonboard.com&gt;
Tested-by: Wolfram Sang &lt;wsa@sang-engineering.com&gt;
</content>
</entry>
<entry>
<title>clocksource: sh_mtu2: Remove FSF mail address from GPL notice</title>
<updated>2014-04-16T10:03:33Z</updated>
<author>
<name>Laurent Pinchart</name>
<email>laurent.pinchart+renesas@ideasonboard.com</email>
</author>
<published>2014-03-04T13:12:32Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=24c8f71707087eb177b45f4a24faedaa0d8f0287'/>
<id>urn:sha1:24c8f71707087eb177b45f4a24faedaa0d8f0287</id>
<content type='text'>
Do not include the paragraph about writing to the Free Software
Foundation's mailing address from the sample GPL notice. The FSF has
changed addresses in the past, and may do so again. Linux already
includes a copy of the GPL.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart+renesas@ideasonboard.com&gt;
Tested-by: Wolfram Sang &lt;wsa@sang-engineering.com&gt;
</content>
</entry>
<entry>
<title>clocksource: sh_mtu2: Rename clock to "fck" in the non-legacy case</title>
<updated>2014-04-16T10:03:33Z</updated>
<author>
<name>Laurent Pinchart</name>
<email>laurent.pinchart+renesas@ideasonboard.com</email>
</author>
<published>2014-03-04T17:09:15Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=6dc9693bb3997cb324a2ffb39deaa72081a9bd0d'/>
<id>urn:sha1:6dc9693bb3997cb324a2ffb39deaa72081a9bd0d</id>
<content type='text'>
The sh_mtu2 driver gets the MTU2 functional clock using a connection ID
of "mtu2_fck". While all SH SoCs create clock lookup entries with a NULL
device ID and a "mtu2_fck" connection ID, the ARM SoCs use the device ID
only with a NULL connection ID. This works on legacy platforms but will
break on ARM with DT boot.

Fix the situation by using a connection ID of "fck" in the non-legacy
platform data case. Clock lookup entries will be renamed to use the
device ID as well as the connection ID as platforms get moved to new
platform data. The legacy code will eventually be dropped, leaving us
with device ID based clock lookup, compatible with DT boot.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart+renesas@ideasonboard.com&gt;
Tested-by: Wolfram Sang &lt;wsa@sang-engineering.com&gt;
</content>
</entry>
<entry>
<title>clocksource: sh_mtu2: Add support for multiple channels per device</title>
<updated>2014-04-16T10:03:32Z</updated>
<author>
<name>Laurent Pinchart</name>
<email>laurent.pinchart+renesas@ideasonboard.com</email>
</author>
<published>2014-03-04T17:05:45Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=faf3f4f8c805f5f8a786ba544c94bf3e01838388'/>
<id>urn:sha1:faf3f4f8c805f5f8a786ba544c94bf3e01838388</id>
<content type='text'>
MTU2 hardware devices can support multiple channels, with global
registers and per-channel registers. The sh_mtu2 driver currently models
the hardware with one Linux device per channel. This model makes it
difficult to handle global registers in a clean way.

Add support for a new model that uses one Linux device per timer with
multiple channels per device. This requires changes to platform data,
add new channel configuration fields.

Support for the legacy model is kept and will be removed after all
platforms switch to the new model.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart+renesas@ideasonboard.com&gt;
Tested-by: Wolfram Sang &lt;wsa@sang-engineering.com&gt;
</content>
</entry>
</feed>
