[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191008120649.GC2761030@kroah.com>
Date: Tue, 8 Oct 2019 14:06:49 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Cheng-Yi Chiang <cychiang@...omium.org>
Cc: linux-kernel@...r.kernel.org, alsa-devel@...a-project.org,
Guenter Roeck <linux@...ck-us.net>,
Hung-Te Lin <hungte@...omium.org>,
Stephen Boyd <swboyd@...omium.org>,
Sean Paul <seanpaul@...omium.org>,
Srinivas Kandagatla <srinivas.kandagatla@...aro.org>,
Mark Brown <broonie@...nel.org>,
Shuming Fan <shumingf@...ltek.com>,
sathya.prakash.m.r@...el.com,
Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>,
dgreid@...omium.org, tzungbi@...omium.org
Subject: Re: [PATCH v2] firmware: vpd: Add an interface to read VPD value
On Tue, Oct 08, 2019 at 06:11:44PM +0800, Cheng-Yi Chiang wrote:
> Add an interface for other driver to query VPD value.
> This will be used for ASoC machine driver to query calibration
> data stored in VPD for smart amplifier speaker resistor
> calibration.
>
> The example usage in ASoC machine driver is like:
>
> #define DSM_CALIB_KEY "dsm_calib"
> static int load_calibration_data(struct cml_card_private *ctx) {
> char *data = NULL;
> int ret;
> u32 value_len;
>
> /* Read calibration data from VPD. */
> ret = vpd_attribute_read(1, DSM_CALIB_KEY,
> (u8 **)&data, &value_len);
>
> /* Parsing of this string...*/
> }
>
>
> Signed-off-by: Cheng-Yi Chiang <cychiang@...omium.org>
> ---
I can't take this patch without a real user of this function in the
kernel tree at the same time. Please submit it as part of a patch
series with that change as well.
thanks,
greg k-h
Powered by blists - more mailing lists