Re: [PATCH v3 4/6] clk: renesas: rzv2h: Switch MSTOP configuration to per-bit basis

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Biju,

On Tue, Jan 7, 2025 at 11:24 AM Biju Das <biju.das.jz@xxxxxxxxxxxxxx> wrote:
>
> Hi Prabhakar,
>
> Thanks for the patch.
>
> > -----Original Message-----
> > From: Prabhakar <prabhakar.csengg@xxxxxxxxx>
> > Sent: 02 January 2025 18:19
> > Subject: [PATCH v3 4/6] clk: renesas: rzv2h: Switch MSTOP configuration to per-bit basis
> >
> > From: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>
> >
> > Switch MSTOP handling from group-based to per-bit configuration to address issues with shared
> > dependencies between module clocks. In the current group-based configuration, multiple module clocks
> > may rely on a single MSTOP bit. When both clocks are turned ON and one is subsequently turned OFF, the
> > shared MSTOP bit will still be set, which is incorrect since the other dependent module clock remains
> > ON.
>
> I guess this statement is incorrect. Still in group-based, mstop bit is controlled by usage count(ref_cnt).
>
It is valid, consider an example say IP-A reuiqres MSTOP bits 8 | 9 |
10 and consider IP-B requires MSTOP bits 10 | 11 | 12 (of the same
MSTOP register say MSTOP1). Now this will be seperate groups having
separate count(ref_cnt). Say you turn ON IP-A module clock and
correspondingly clear the MSTOP bits and similarly now lets turn ON
module clocks for IP-B and clear the MSTOP bits. Now let's say you
want to turn OFF IP-A so you turn OFF module clock and set the MSTOP
bits 8 | 9 | 10. In this case you will now see issues with IP-B as
MSTOP BIT(10) has been set when we turned OFF IP-A block.  This case
is handled by switching refcount on per mstop bit by this patch.

Cheers,
Prabhakar





[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux