Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5571439ybp; Tue, 8 Oct 2019 05:10:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqzM21kzfQS9uVoCBQFLoF//3w2fTPtaP9OupwYZAydxCP+sODhBvGRGBZZuQuW4CujDrOD0 X-Received: by 2002:aa7:c98a:: with SMTP id c10mr34452337edt.23.1570536621833; Tue, 08 Oct 2019 05:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570536621; cv=none; d=google.com; s=arc-20160816; b=qwce44I8cFPx9GEBOlzOLc9xXcMRh7KROKjmAUmDsd6TFhkuMe2auI9V3sQ2/d2nr1 3IC4+MFvBuKkwqfEQ0XihxtJFwaoPi+d4i5+n2QEmlfw8yz1P/W2tzqZGTaIMQ2Kz71O 5M6VlziJttO22Z4+hQBYVNDMdO+XB8lulIke04snRWlWP6n+TTiI7JasjSW84OiTaVwb KPtqYyH9jStV51KaqwQ1Ylr3mv2R++bIQ7K92+3E7wTjRyFgqIQSF0g2qrlfsXV/A9bx n70TErF6PqE1iosIuPOYgrL/S8E4gnT62EfN6aCRsU9RlY8+i1372NuTNYX+lkNxrJtI uFYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=JEXvgww56ujmq3p2BhYdiHYhHSvzX06bI16pxgQbENM=; b=E5AmwTEk46xv1/2+AVdzthLJ5UObwLnXHiJ2WT5kHeJmg0+JENNdemZGRzh674ssqX DaVR0ap9xQOIiwHQZ4dnWkD/KhPXBpQKWAWM8bRtHLvTERSztJIsmyYDQJKJ/j1oWHFj bzqiFLKblIfRCDSLtMpy9KnBwYIEyjJFLblkvO+lH90yHyppmwRJDkHA5ia+FYXdah1l l5ggaPe3o8aIp8qIstYCjgbxnLqDedTu/UbDv9BgAUqQ/Utllr+T2zQonOKthNaOIzva +LqcVBwnpiuO2augWnx97OfP5kjP8MJ9ehQwlBXP6dZpzefnfsgLNxHLqpxOykS1Sifn Cmpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Q5WIB6Zn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i33si10304111eda.205.2019.10.08.05.09.58; Tue, 08 Oct 2019 05:10:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Q5WIB6Zn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730995AbfJHMGz (ORCPT + 99 others); Tue, 8 Oct 2019 08:06:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:57548 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730249AbfJHMGy (ORCPT ); Tue, 8 Oct 2019 08:06:54 -0400 Received: from localhost (92-111-67-33.static.v4.ziggozakelijk.nl [92.111.67.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EF2C3206C2; Tue, 8 Oct 2019 12:06:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570536412; bh=Uj5x6J2gH97vDiZFnRpH5rNfDhiBDOr6x+X7q7iJ0jw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Q5WIB6Znd6MmUFiZe7cgph9CBc1fO+biOlU76MaIEDNoUNutRckaP5t2Mm/TuJqDL hZEp9E9sM4a0nfrAhj/SvTFS+aWmGcwUdO7KNlJL+H6BYWG0F7pX61N9N98tq/NcQi KU49X+7gCqZLnPY/GrThfiKaOrzaW1+JYR1bKFuc= Date: Tue, 8 Oct 2019 14:06:49 +0200 From: Greg Kroah-Hartman To: Cheng-Yi Chiang Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Guenter Roeck , Hung-Te Lin , Stephen Boyd , Sean Paul , Srinivas Kandagatla , Mark Brown , Shuming Fan , sathya.prakash.m.r@intel.com, Pierre-Louis Bossart , dgreid@chromium.org, tzungbi@chromium.org Subject: Re: [PATCH v2] firmware: vpd: Add an interface to read VPD value Message-ID: <20191008120649.GC2761030@kroah.com> References: <20191008101144.39342-1-cychiang@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191008101144.39342-1-cychiang@chromium.org> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- 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