From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from michel.telenet-ops.be (michel.telenet-ops.be [195.130.137.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 310B9136E3F for ; Wed, 17 Apr 2024 10:31:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.137.88 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713349868; cv=none; b=lAVvXqHGvF+fsf6rNNvEnJQO8JYZTMvFhJbGRbnl0/NxMt8mHnT0axlJgIpSq/0xFQ0o941uj38kGXg0j0Y3Gzka+uSV8FL4Oycdc7Fif7OHfMA8HfmmY3HC1TuipT3Elr28FZM5Fn2Ls4RUYdUOyZFRpu8cWoQ9tbPVPtBaq1Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713349868; c=relaxed/simple; bh=uMk476Qfvq8I+MBT3lTJPgD7xu89awd0nrAdkxuUy2s=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=U74hMz8yQ7WQlckPyYC7aKXJCbGwANtvdSZbL+w6imU2LwxhE9IcCO+NrB1974qiVuPk7xrpmmMiTsKWLvS8VKWWVefdX+ebK4nfaEoZz7zo4pK6JZ8t/oampEdlf4jUL1wxIAwZWF4+VJvkxqjAs+9l+pkEGOSZwRnpP3CK+80= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.137.88 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:76d0:2bff:fec8:549]) by michel.telenet-ops.be with bizsmtp id CAX42C0060SSLxL06AX4s5; Wed, 17 Apr 2024 12:31:04 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1rx2Ye-009LEL-0Q; Wed, 17 Apr 2024 12:31:04 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1rx2Xe-00FLRx-Am; Wed, 17 Apr 2024 12:29:26 +0200 From: Geert Uytterhoeven To: Ulf Hansson Cc: Kuninori Morimoto , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 0/4] pmdomain: renesas: rcar-sysc: Cleanups and R-Car M3-W quirk handling Date: Wed, 17 Apr 2024 12:29:21 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi all, According to the hardware team, R-Car H3 ES1.0 and R-Car M3-W have a rare quirk where powering down the A3IR, A3VC, and A3VP power domains requires an extra delay of 1 µs. So far upstream never handled that, but the BSP has a fix[1]. As support for R-Car H3 ES1.x was dropped in v6.4, only R-Car M3-W still needs to be handled. The BSP fix relies on hard-coded string comparisons of power domain names, and thus applies to all R-Car Gen3 SoCs (many introduced after the original fix was written) having domains with a matching name, whether they are affected or not. Hence I took the opportunity to refactor the R-Car SYSC driver first, and came up with a less-intrusive fix. Thanks for your comments! [1] https://github.com/renesas-rcar/linux-bsp/commit/495e47e390499c522197352a08f423e8a3b41e83 Geert Uytterhoeven (4): pmdomain: renesas: rcar-sysc: Absorb rcar_sysc_ch into rcar_sysc_pd pmdomain: renesas: rcar-sysc: Split R-Car M3-W and M3-W+ sub-drivers pmdomain: renesas: rcar-sysc: Remove rcar_sysc_nullify() helper pmdomain: renesas: rcar-sysc: Add R-Car M3-W power-off delay quirk drivers/pmdomain/renesas/Makefile | 4 +- .../{r8a7796-sysc.c => r8a77960-sysc.c} | 34 +++------ .../{r8a7796-sysc.c => r8a77961-sysc.c} | 28 ++------ drivers/pmdomain/renesas/rcar-sysc.c | 70 ++++++++----------- drivers/pmdomain/renesas/rcar-sysc.h | 9 +-- 5 files changed, 43 insertions(+), 102 deletions(-) copy drivers/pmdomain/renesas/{r8a7796-sysc.c => r8a77960-sysc.c} (64%) rename drivers/pmdomain/renesas/{r8a7796-sysc.c => r8a77961-sysc.c} (69%) -- 2.34.1 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds