Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5576551ybp; Tue, 8 Oct 2019 05:14:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWvQO7XHVAXW/CqjiKnPY5pFoPlzHzIQCKv2D6iSTvEF8bwZUDEKymmrDauCosK0tu9JPE X-Received: by 2002:a17:906:5acd:: with SMTP id x13mr28655924ejs.186.1570536892091; Tue, 08 Oct 2019 05:14:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570536892; cv=none; d=google.com; s=arc-20160816; b=1HjMOlLg/R9aWj5zRdklLBGbP4i+MSMcFnMedt7E/iBzArHQ4vkdedo6pUYbnuWs67 Y2KvL0Nh75ybHteTT+DhH+AVT/SYA8kXY79O+uPC19+1GBO7vqVG0DsXmsY8ar7KK+11 QpjfU9oc0Rf8LQ/MSYLxZXm+jBpt9UrsL6v4pWqTKgj/zkAEWjIMG5kUHXs+UXTPw1jQ ELi9w0EfhhtcQ2rFKi+Lw9EHOmWE05q4n+7lS448sq2sHKOWV0KXPt8yFk4VU/pHOV39 fZN4SMuVfxhxshf/tBJaFhI24qZp4HAyD6FIKaNRuUdVw8k30cGUs0AzZcLdee1l1ns6 P9sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Qc61QyZfZZYMqB8OD9rsg9gHOoNYnkxxv7LFR8LDv3U=; b=xevHz05mPWmB9v0GM6+NcRpuTjE0uACyN17R7DFUqESt4beaTYCucofWT/P5AOqdGg jjNQvIgcLv7uv6wkSD6g3ZM4kDOf5iNAlPZW7kdGG4BI9Wdc+6ePyO0jUav+Zc2idIS5 ZV2h4ioJQzXq/xFQntkK1VFFynoIi4H4Aq9fdTTfPSZ40SF15M0chwkoH0TzFTcEc54R 7uqtyIy2idMNawITlNO2WgkMkmeyNc+4xkk5i8qTZBbTQXpZMHJFfsyHsy6lmDu5bogr gCr63g/dXPInmj2nvqgnKt1fyu/53uid9J64xSaKBfRvOJOtWU8ZW4XE13bGwkf2ftbG Sc7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lmcxJg+W; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11si8604604ejb.240.2019.10.08.05.14.27; Tue, 08 Oct 2019 05:14:52 -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=@chromium.org header.s=google header.b=lmcxJg+W; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730731AbfJHMKu (ORCPT + 99 others); Tue, 8 Oct 2019 08:10:50 -0400 Received: from mail-vk1-f193.google.com ([209.85.221.193]:43281 "EHLO mail-vk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730495AbfJHMKt (ORCPT ); Tue, 8 Oct 2019 08:10:49 -0400 Received: by mail-vk1-f193.google.com with SMTP id p189so3691654vkf.10 for ; Tue, 08 Oct 2019 05:10:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Qc61QyZfZZYMqB8OD9rsg9gHOoNYnkxxv7LFR8LDv3U=; b=lmcxJg+WAumgYsryhw1/rF2wSdetdsrVtKSmsoEXbgowdVvGVIzdMGBxgiUogalR6w pdGBW7IF1uVYrcXD1XWnUsJPNXl/lfI2wl2UaHC04Fy6NjB2SOukNg8I1TqSTn4iNQbX FAh8tSWkRqkUrXnaB/WQ/Ow2m+iIkdMG/YENI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Qc61QyZfZZYMqB8OD9rsg9gHOoNYnkxxv7LFR8LDv3U=; b=V/Zi/c9ARunHXDPfnJUZ6wsNcn5Fjsgk8Fw7P318jOuZGoAlcYqyBwSRw4hM6SZwhK Yl9/hylEQSzlEv6fWc9aCXPTTSBCdsTBGnacUg4pJxZ2bY/78zdLik6/pVrEPAtt7xH0 erx1bb/AVSenK77u2dDRaegLhAZvcYLINhsSAF3OJjXJWarEcsSOP1mqNX6FfmcLVoJK z50cJ6+nMJCnGIy54MAo3/9vRCMoTS/7+L07k1fgnkja2g/1MlL6PzI+cKjvnuEFOzYM JL2SPLWUfMsnZh2K/mdE2unKB6newjFd/P6iu9TqRjIuCFdI2/PUKh6pK5iOLs5GViuX GcSw== X-Gm-Message-State: APjAAAWywfbUXvYDz7A41SuPB0jL+Kpu+VPvYYcx1sXiyx8orQxgumEu W3gQX2mZJ3ewSfc4+9/Bu9Zd4tlSLLERaTCjz9gwjg== X-Received: by 2002:a1f:2192:: with SMTP id h140mr16721053vkh.92.1570536648132; Tue, 08 Oct 2019 05:10:48 -0700 (PDT) MIME-Version: 1.0 References: <20191008101144.39342-1-cychiang@chromium.org> <20191008120649.GC2761030@kroah.com> In-Reply-To: <20191008120649.GC2761030@kroah.com> From: Cheng-yi Chiang Date: Tue, 8 Oct 2019 20:10:21 +0800 Message-ID: Subject: Re: [PATCH v2] firmware: vpd: Add an interface to read VPD value To: Greg Kroah-Hartman Cc: linux-kernel , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , Guenter Roeck , Hung-Te Lin , Stephen Boyd , Sean Paul , Srinivas Kandagatla , Mark Brown , Shuming Fan , "M R, Sathya Prakash" , Pierre-Louis Bossart , Dylan Reid , Tzung-Bi Shih Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 8, 2019 at 8:06 PM Greg Kroah-Hartman wrote: > > 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. > Hi Greg, I see. There is an ongoing discussion with Mark in https://patchwork.kernel.org/patch/11179237/ I will resend this after machine driver is merged, and after codec driver change get sorted out there. Thanks! > thanks, > > greg k-h