Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp520215lqb; Wed, 17 Apr 2024 03:32:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUv6VxFw0WfPKKTx0yKMAwqWBwlzjlKh2KIMu2xbakTeY1GXZKleIhX2KPakxkhcaVBxu6Chio4FbCk6Re+CQLKggeuegcJB3qSqruG3A== X-Google-Smtp-Source: AGHT+IFdwkJeG3HZdvKGA+Wf5bJg9UQG0WKeiarqMl6WIhWf0nvplvcuGLT3HSa0IusC36yDC6cY X-Received: by 2002:a17:90b:4b84:b0:2a0:718a:8e49 with SMTP id lr4-20020a17090b4b8400b002a0718a8e49mr12965800pjb.39.1713349963682; Wed, 17 Apr 2024 03:32:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713349963; cv=pass; d=google.com; s=arc-20160816; b=ui25gBPv8i8KUTSUROMXRudUIQbp5l1ak61aaQ+wJ0wBO8qCeqey71yh/KhtcK2STY lW91onws5OPhW7p1g2FONaximCjcVHZwoQNFYt4i1oG8KIF6xezHsd7AWVh2l6Qz6xNk 64nDOJAFgx1sfbCn/OS5CmahpD3eht+MxoTsi5ARoQE/hvKYv5AASTXa3jxLhCGk/XPr rDOJKrgF3Kb+qRkwf8QoCVjCIBrErGAIw4A/Bb/Q2tqlp4qJSJdXKCpwBVmOzctJI02V sD8bmtpHmF9Ip7x5Y8sztNeDfFYa4QpBSNENWPDYotxPkZR7LNrMctNTcm/yGDnBWRYD uyZw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=iGhXZOlVwuikV1xEOXRMgyQJVxkFfN2GxUAmiK5R41Y=; fh=z9KVtAoZiDlYehJ+z5rTWD7UoSu9qH+AQzMiNhxpbVA=; b=CNFdxrsHN6fTxt1mj2I203dE67MtyY+P/Oecr6b9tjgUblmgetDbrHMRZJYOpkoJQ2 q0LedhnafbsFCqSvEp06HcPakq74I4uzmO97LGLVU5g9/lDd2A2U5HMb/3smDgIgP6y6 Zt2F8tJi+dZJYpBchyWTfqPIsL8ET1plTZBrNnG71blbgPeGP9H9vItogKvOnt6r/80o 5ROk26SyfQ1rCVVhTuoe4QEV5lA1JnR9Z1U6Q+oLcP3fhpgcCnhdLaPoJ6NyHMPKE1Nt uLDKsp6FY5/0g0PWcXmfoN/ndkw+D5yduNJNAFEF+C7AM9evKbZYQRjETfFQAyE097du kTYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-148327-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148327-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id x3-20020a17090a8a8300b002a7ea213c53si1021917pjn.158.2024.04.17.03.32.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 03:32:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148327-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-148327-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148327-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E9378B21A5F for ; Wed, 17 Apr 2024 10:31:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 61A5513C834; Wed, 17 Apr 2024 10:31:09 +0000 (UTC) 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