Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2460960pxb; Mon, 18 Jan 2021 19:57:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0ayxakLYXXl9w3CN2z5aMSvyTRzXCNi2pXbLqcsUbv46inJIc/Lg9mwOK6LCfl0ZGo+NF X-Received: by 2002:a50:f0dc:: with SMTP id a28mr1858944edm.291.1611028669039; Mon, 18 Jan 2021 19:57:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611028669; cv=none; d=google.com; s=arc-20160816; b=mucMh/Z+KXPJON5bTKqd4/Xz3AqXBQRbALSRUOxfrFXIG+as+WjvdLBQtC9k1g3VEi 8W3eXbnkcC5CQu7BVOEqyCXWsDKJHoBY9yV4oBni1IHnGQ0b9ituzS7W9OR2T78+nMnJ Trd1sST3RorgpE7s62Opu4tqroRW3OgLb67we5ndhU086Zg275psoTt+3BwVtugeNiSB 8J5/qdJmjI411qM+2fIzyI6cZ7wf2LmMoarF3SbFCNpwTeF31GUorWrcL54s8vlRuyQD gwlMAPADcw2iyYUZcTZCugRsfTTc4GSVOSZ7JfLYTEiJXAewTHV7FEG4kj0FWmjeno3x pqAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=bpOTfNNNpn6pWGoWepedPEw0tHgaK0+rI2kdyYroLGs=; b=0tJOFblj11n+3Y0u8Dol0Af3mrqCgceKbAHeVJvXgBg5HremEqzO1EJEkk6jue7pnO unAmx0N1RUEVgBkI9t88MJ3YoQQUAoCCUjcJHk4LHUr2Ym5FNNBPxXPorYjeVqrIp05m yleAecw1psTCaHCZAnXFuX9X0NALSpkpJRTGZFWR0juwgEDaCmG3IOxsY1PbEMtdAezU OM5F6tSX3VBX67Gghssyrceg27xO018en9shmeJlnidWRRqgMrSdmiC3OguUgPNpKPPL MVHKlh+/lMdHzm2so+kZwBQFsf9uWEO8+9i+H2G9lxUUaQGbAJ+tFeD33m7hqklAQsCi qBAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GyPbelTC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gu1si7358931ejb.20.2021.01.18.19.57.25; Mon, 18 Jan 2021 19:57:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GyPbelTC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727511AbhARLXo (ORCPT + 99 others); Mon, 18 Jan 2021 06:23:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:57934 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390164AbhARLUs (ORCPT ); Mon, 18 Jan 2021 06:20:48 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id B890F221FF; Mon, 18 Jan 2021 11:20:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610968807; bh=E8QQY2aLftyITmKLMjzYemgVGG+nBpPUVZCtMkrxh70=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GyPbelTC+rVE0e/RrETG3NA/Cg2qYDaq9ddrxAUBpUPTYOMZfiT7CtSw86i+AAY2b SAlksssuAp41cepquQLKlHFa8NqHoTzD2CrfZpfv3yHVAwy2t/aksEQKOHe8Cib1Tu tJyqtCR3yATIeNW4Hkb6qZgeYl50CxwfLwQ45UQ//bYKpd/AIKPrf9A7aBlxdubZIi Tcdiev42g19kZI5rqNP3h9VeMY2jEU+yctGTXWFlSpZAk6siOHpJQ0RwElWkym24Gt UXXvIFPJUDzTmhqlGtonzE3KlyVtgOwEAvZpBWQmx0lXMBGI+yJAeA+YLQbsOAuXRk 50QFQSMBCt45Q== Date: Mon, 18 Jan 2021 11:19:29 +0000 From: Mark Brown To: "Zulkifli, Muhammad Husaini" Cc: Sudeep Holla , "ulf.hansson@linaro.org" , "lgirdwood@gmail.com" , "robh+dt@kernel.org" , "devicetree@vger.kernel.org" , "Hunter, Adrian" , "michal.simek@xilinx.com" , "linux-mmc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Shevchenko, Andriy" , "A, Rashmi" , "Vaidya, Mahesh R" Subject: Re: [PATCH v1 5/9] firmware: keembay: Add support for Trusted Firmware Service call Message-ID: <20210118111929.GA4455@sirena.org.uk> References: <20210114152700.21916-1-muhammad.husaini.zulkifli@intel.com> <20210114152700.21916-6-muhammad.husaini.zulkifli@intel.com> <20210114164811.GG4854@sirena.org.uk> <20210115185803.infufa4thlffagxk@bogus> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2oS5YaxWCcQjTEyO" Content-Disposition: inline In-Reply-To: X-Cookie: Huh? User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 18, 2021 at 10:28:33AM +0000, Zulkifli, Muhammad Husaini wrote: > >> There is a SCMI voltage domain protocol intended for just this use > >> case of controlling regulators managed by the firmware, why are you > >> not using that for these systems? See drivers/firmware/arm_scmi/volta= ge.c. > From mmc maintainer's perspective, I should use the common modelling eith= er using=20 > regulator framework or pinctrl to perform voltage operation. Not just dir= ectly invoke=20 > smccc call in the mmc driver. That is why I came up with this regulator d= river to perform=20 > voltage operation.=20 The above is a standard way of controlling regulators via SMCCC which already has a regulator driver, you're duplicating this functionality. > >Indeed. Please switch to using the new voltage protocol added for this w= ithout > >any extra code. You just need to wire up DT for this. > May I know even if I wire up the DT, how should I call this from the mmc = driver > For set/get voltage operation? Any example? There's one in the binding document for the driver. --2oS5YaxWCcQjTEyO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmAFbrkACgkQJNaLcl1U h9C0hAf+MTe7TY8tHxMsjksj2YMRZ39Ocrok7EGZgRzOkMp5uq8KLLqw2HxZAD2x WjhHGgMwe5rtgH7R0YwRY7XdZaPQV+Pz6uKSHVjSFUv/WpcTnBna7AejBx9yf47S dgKATC0kf+axN2P9tpC1sxECflrV0aOfo3uWGu4wVgpHQ5BDOWL6TuUoH9Z7QfR6 kiTSuFYJulD3OzfOqpQ9NLE/HQ38xX22OnDZ874S2l7tjofADlTNKynfszo0RQO0 WQrpFuaa/ZrrCarlvtzzNzJSpxUW7ew0I7h7f71tfWelGPB1nwzPQPEOD3/vrvww YGcs2hozfssgLhhH5lioxj+mkoPzXQ== =cOY2 -----END PGP SIGNATURE----- --2oS5YaxWCcQjTEyO--