Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp531253lqt; Thu, 6 Jun 2024 10:18:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7pljUyD4XZEFkRefHrIoQw0CW7/9mR3olPKMwXR508csVLFZKcJ6JtrRlCjGHWT//1u7ih84mBkgzHVGEjWlaluAZNw4mto/K5yKzow== X-Google-Smtp-Source: AGHT+IGYixtORdsV08SpZrTOBM58YY+cyCG89oYQsGeAX92vvDmHjGAG5E/0gOmrVRB8aoIbu48d X-Received: by 2002:a05:6a20:5611:b0:1b1:f0d4:71b6 with SMTP id adf61e73a8af0-1b2f9e14803mr149476637.54.1717694318551; Thu, 06 Jun 2024 10:18:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717694318; cv=pass; d=google.com; s=arc-20160816; b=Beew1Y9tHXaCg8Am7662vaGGg8aI16wr/goS4goU444Y4F/Ei1uk6a+91xlrlUi8rz qGfT8m57ufj+pfSGKUihvtXUhCjSub3+d2rawBxPyY0Lw590Nje3h5glpu6JZSeOoRop YsHuJZlcclLQdHojdRUh8DC5zT6+lC95LHoskIOvDOXiQKc1fJOT9XXrBa28BNU0uwXp cetpUfyOOgGh6nEevMDYouuk1kTBizrbES/0orey6Og1sgMrqA5pB8trNthofFfblfiC 4I/XQ4Ux0aLPDHFaTuG7+x7WmKaUxhEfdsybTyP8ZIyILizx7OtBmA4wdz8xlhncK9Ma 8qvw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=hyzmRM3c8f/q/dLDwcASuwVUnOptm9NfAUFLu3Zohdk=; fh=Rh0KHiQDAPj6cYVT1R347r3Jnbm8KD/nGsAtY8ez3OI=; b=0mjzFtqXU54cVvaVI1OylCkgiCheyb4y1VHUp2Dt8Ymie3Ew89gwuCSRFf17LPA6AI BE21uD58WQ/XYkaEIcO4HkX2cIEP96a35KCXIWjn4zeNSj4JdWGafxdsxH26KEkjHbpM 8yOIX9fSj8GquhOWBqew3XuHOLQIcQ/C/z3yemPTUwOfm+e4qGzOi1LiWdseEw7g7y0a 1DPNnx8jp7mogrg/y/VXJbN4ZRXrDWS+obIsZxCulF5YHfAXBt+Wfo6LYL/LuVLy7Up/ bnFBn0m91yG/69YCAGyuSbulCsA0tqkciJ8uCN7L/MrZxxcNU6e1L6AxAYlsOijElosI LC+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b="TT/3eRhF"; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-204739-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204739-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-703fd50c17dsi957410b3a.262.2024.06.06.10.18.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 10:18:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204739-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b="TT/3eRhF"; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-204739-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204739-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 438BA290883 for ; Thu, 6 Jun 2024 16:53:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1823D198E77; Thu, 6 Jun 2024 16:52:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="TT/3eRhF" Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39AA2198A24 for ; Thu, 6 Jun 2024 16:52:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717692764; cv=none; b=OS0LrvA+0bfWboTc3jcjzgI9NfzVSGdAgnbAy4fKdpGLgDN5St86lQqKpoNWu24YhgfAvSUxRLc4+XjzHdDzwKeN558xZPVzFWmuZYUvvMaGnfSqIOoXTDQR0i+bqmAM4IZIKdQu99XfjciF4MM+Iop4A6s4ElyuGUBy6Etu4Hg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717692764; c=relaxed/simple; bh=FDuXNbEVC7eOQ76PjSiXvzSb9Yh+Sj1qcE+WEaQHlYc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ppYbVyBGKDanQPNGHJzo/TGCjVxtC02TO952QzMIq9qOc6fpPOl6NPsO1OFAqmRDlc/zRduusc8iIEeQrIMPFPIPDxOZHHeWW+6Kjd6WpkoBQQL9RP/J4oFompubx9YdFenL7mK0iG7j0aVDZjfpFk8i1kChcMq4V+0s7PRdMGY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=TT/3eRhF; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=k1; bh=hyzm RM3c8f/q/dLDwcASuwVUnOptm9NfAUFLu3Zohdk=; b=TT/3eRhFNazSROra/IGl CDyk/Y+2gPxdC6YTKGsf7uFWute5TAGQHnmHERSlmWnEJi29m9ak0vSGegHKq6yw QDrICC+DNVA7rHfignR6BzSEbegn1mi2AdBrWLFDg9pDnYXSUNlHN6qkW+MhC8ox ibm6e/L7TXzYlRsk5IttyVnTCUrinFyqxpjK2+2+vleQ0ltUqkEFuuWFH/t45o3k AuDaqV8Z5VDIBm8SvFfaAHH3w435upezMzXLFQhFHaj9giMGPdScl3Q0HDn81/At 5qNxfn3uPDE7F/zZ1zZlFK5eqkRlgb2EXQ3seAYPofyATHUNKKXpc0aDSOxSezsy yg== Received: (qmail 3060235 invoked from network); 6 Jun 2024 18:52:34 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 6 Jun 2024 18:52:34 +0200 X-UD-Smtp-Session: l3s3148p1@13ZugjsaqsxehhrL Date: Thu, 6 Jun 2024 18:52:32 +0200 From: Wolfram Sang To: "Lad, Prabhakar" Cc: Geert Uytterhoeven , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Magnus Damm , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Fabrizio Castro , Biju Das , Lad Prabhakar Subject: Re: [RFC PATCH 4/4] mmc: renesas_sdhi: Add support for RZ/V2H(P) SoC Message-ID: <20240606165232.szabl4q7ymfyrnae@ninjato> Mail-Followup-To: Wolfram Sang , "Lad, Prabhakar" , Geert Uytterhoeven , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Magnus Damm , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Fabrizio Castro , Biju Das , Lad Prabhakar References: <20240605074936.578687-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20240605074936.578687-5-prabhakar.mahadev-lad.rj@bp.renesas.com> <20240606100810.eskr7bd3oqpphaxh@ninjato> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="t7vjfnc3hy2gr2dc" Content-Disposition: inline In-Reply-To: --t7vjfnc3hy2gr2dc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Prabhakar, > > - can't we use .enable/.disable in regulator_ops for handling pwen? > > Then we could simply use regulator_en/disable in the code and be future > > proof when other SDHI instances have other kinds of regulators (unless > > I am mising something) > > > Ok let me check on this and get back. Thanks! > > - what about not using regmap and use set/get_voltage and friends? My > > concern is that other "new" registers might appear in the future and > > it will be cumbersome to handle the scattered IO regions. > > > I'll have to do some reading on this. Can you please point me to any > example driver which does not use regmap. Sure thing! ~/Kernel/linux/drivers/regulator$ grep -L regmap $(grep -l devm_regulator_register *.c) aat2870-regulator.c ab8500.c ab8500-ext.c ad5398.c cros-ec-regulator.c da903x-regulator.c db8500-prcmu.c dummy.c fixed.c gpio-regulator.c isl6271a-regulator.c lp3971.c lp3972.c max1586.c max8660.c max8925-regulator.c max8952.c max8997-regulator.c max8998.c mc13783-regulator.c mc13892-regulator.c mtk-dvfsrc-regulator.c pcap-regulator.c pwm-regulator.c qcom-rpmh-regulator.c qcom_rpm-regulator.c qcom_smd-regulator.c scmi-regulator.c stm32-pwr.c ti-abb-regulator.c tps6507x-regulator.c tps6524x-regulator.c twl6030-regulator.c twl-regulator.c vctrl-regulator.c > > That said, having a regulator is not a quirk in my book. I'd think > > 'struct renesas_sdhi' is the proper place. Or? > > > Ok, I will move them out of quirks. Cool! Happy hacking, Wolfram --t7vjfnc3hy2gr2dc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmZh6U0ACgkQFA3kzBSg Kba4CBAAnLT8AVsnOncKdZGZ1t0dwqj0PHoUxAkHyiRvOYMR0OImkUMpMu3bArPA b8YHnOAYOSMx8TfSQS7rJGIa+kRnPaazhRvpnABTBvNxqOZG3jaNrc9GRl5YEOf6 0B39r0taUQicMTBAWO7HtVYHAgUBIW74P9B0r5ntmr8ROeMjGZhHlsSHg4hQ5kDs xQsic9RJ1WA9HQU1IuElk8rtp5e3yS90odj11kmuQNhzWnQHwBThv6Xivz9lddOM BbJY+PW8XUE/gR8+4Twnu1+7bUScGKlC++HsmLohKYD8bOafrkt6MAiFsym5FPk6 hkfepTMLTHRSpKuQ0M+m15FfkO4O015zaSUVSThftcKGtKZRYKW1ddjNnYRTj+gC pf/F1Xd8e5Ue5Q2fPMjO7Bxeot5/wuG7gvNlPBUJcR2qS01+85f5Ry9lp8hg4o0x I7/b932/L+ksUUz8QB5dFhxWu6bEwvdnlda46M/QbyWUw4e8i3Dqw/YHlxQyeevw TH2SugO+3T94yG4if1+2K7OTPEqD/aRu+rOaHapclaM1DDVvyRhSMMV49RfwMfpz qMriY0jE4joM94/Pr0i0Ab7wXv+l5rnzJZhqw7d22ML6B2WMq2uCfn8H3tj2ZzCN Ke+oSIP/7N1OxYMBwshHIWfgQUp/JrRrmvgYzdz/84XATimW/WQ= =zmhL -----END PGP SIGNATURE----- --t7vjfnc3hy2gr2dc--