Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3783834imm; Mon, 2 Jul 2018 05:37:42 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIs8lm0ssSTBXth0iKTlYejZ5Xz1lAE0e1Bd3uK8pKV612P7h8Yde7Cin29AIENdjkyJN47 X-Received: by 2002:a63:842:: with SMTP id 63-v6mr22327915pgi.406.1530535062766; Mon, 02 Jul 2018 05:37:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530535062; cv=none; d=google.com; s=arc-20160816; b=UKURw3XcO+lN8EjFu2CuqOdn/adf5ldI9KoyUGy3LcWHxOpLgrwvr/YS5T7NchnB2z UOi36P8Lqf8+edrjlZ4Fi79vepFlLl+Y8YqiFXeFBpQncciPFXQo1+OJTfdH5qBW0WO9 SgkCENs/9hPJkBP7/ipCWnnETZMSjMoUz9HMbk9ZhvsSwROjaqVk8uLu/k741y87LiNt 6V8lLHoxEgBa1eZ8Q9W8nCESCtViBzDpinn4pTFWR1KDxkccBcAUx0nzMH6xMEJWZedf qaKcflLiOY6DQy6agg4bMSyypy/J1vsQ1W5Ug8FMilh4oJmNALxAmlNodHqPbgoXr509 FDJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:arc-authentication-results; bh=2/EaDmROs0e3m2MKWJzIWMnwLyCQ7ElXJjfcbhG3Dko=; b=iiiW7yO46YwLpsXoJIuFJbpSh0VW2hS37TmRofUJE4Li2l/k4MIm6XxDsx6JeUEWtG +NwC90kFzYxDkh3Lt73OzEUfvoZhJ6AAAqp0POHheiwSx5wPkmvzIV5SDJjv6LLKQhnt F2qVfPD55cQaqg2OOV8t2N0S42jE9WT59M1GvBdN602OnZUZAeTT4MD/0Kmm4yWhe4Dj jO0m6qMEfJxXUpsUKWqC88s6LTM4KyOfhKU40vpxd8SwhhDWn3O2zcMeUgiSolAIt759 wJtbLDCcHo6QF+8XLy5FdwJOX2AO3dBA4qEUDP050hbBvIndVVt+JPtzxrEcp6R/uOTI jc1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ULoY+Qaj; 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 v10-v6si15792559plo.326.2018.07.02.05.37.28; Mon, 02 Jul 2018 05:37:42 -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=ULoY+Qaj; 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 S933938AbeGBJXs (ORCPT + 99 others); Mon, 2 Jul 2018 05:23:48 -0400 Received: from mail-yb0-f195.google.com ([209.85.213.195]:35860 "EHLO mail-yb0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933829AbeGBJXm (ORCPT ); Mon, 2 Jul 2018 05:23:42 -0400 Received: by mail-yb0-f195.google.com with SMTP id s1-v6so4854629ybk.3 for ; Mon, 02 Jul 2018 02:23:42 -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:content-transfer-encoding; bh=2/EaDmROs0e3m2MKWJzIWMnwLyCQ7ElXJjfcbhG3Dko=; b=ULoY+QajKjjZYYNEOg/eWQxzpRs8ZT3JTtjjFHC6zvuhfGSifFN9i51qvC2q0/+Rnp QVBNGDUeNck3NoHhdVz8fGzlQXGEJvN8UihpuBjBiXmKUxxAPJKdvIED3LMhx6emO5K1 aJjmG7u005TzSY+qywZPP1u15+4oJXPzOM1F0= 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:content-transfer-encoding; bh=2/EaDmROs0e3m2MKWJzIWMnwLyCQ7ElXJjfcbhG3Dko=; b=jONOtzGAxCwquT2Ta2Ucml++Ane+RW3Zx7myS3i2S0ykfrE1MXsYNy3Z2eI9QniJex mOfWhYKOkw0RWb+TVuEQU3y2VzqmTECWxWXYC1OdUo/YF9dldj0OoNxDEBm/HOQ6FAkX CstSUo2KsZW/v3M2+TqKnYCVbiCflIsUMCahFRWQZ15UC1VCEEGfmtdnexeP+KeZhLvd p8bfiuxg1W48SkTmoGN6HxqGc6DFt2ZW2heN3IAOV3SaqLGDTm9L6j89Pfb1KfnaqhzH zlp80kf7dsXaUUxVJncPDm9btuzcnuYBAp5j9LLeBsX6QFyuNPWxRPxa4rTVfg08yYLN NlSA== X-Gm-Message-State: APt69E1lGXaO4+Lu8Fu94ecLjOVpdZ8LAZfBa7maTbowugXh9LtzML6a GsDTT3JB5Gr7kSdsleGCwK86SIk//3c= X-Received: by 2002:a25:84d0:: with SMTP id x16-v6mr10786193ybm.307.1530523421568; Mon, 02 Jul 2018 02:23:41 -0700 (PDT) Received: from mail-yb0-f175.google.com (mail-yb0-f175.google.com. [209.85.213.175]) by smtp.gmail.com with ESMTPSA id p124-v6sm4521058ywf.85.2018.07.02.02.23.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Jul 2018 02:23:40 -0700 (PDT) Received: by mail-yb0-f175.google.com with SMTP id e9-v6so4850737ybq.1 for ; Mon, 02 Jul 2018 02:23:40 -0700 (PDT) X-Received: by 2002:a25:207:: with SMTP id 7-v6mr2365584ybc.7.1530523419960; Mon, 02 Jul 2018 02:23:39 -0700 (PDT) MIME-Version: 1.0 References: <20180515075859.17217-1-stanimir.varbanov@linaro.org> <20180515075859.17217-13-stanimir.varbanov@linaro.org> <13c7aec1-2bb9-f449-6b7d-7ec93be4ec71@linaro.org> In-Reply-To: From: Tomasz Figa Date: Mon, 2 Jul 2018 18:23:28 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 12/29] venus: add common capability parser To: Stanimir Varbanov Cc: Mauro Carvalho Chehab , Hans Verkuil , Linux Media Mailing List , Linux Kernel Mailing List , linux-arm-msm , vgarodia@codeaurora.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 31, 2018 at 4:06 PM Tomasz Figa wrote: > > On Thu, May 31, 2018 at 1:21 AM Stanimir Varbanov > wrote: > > > > Hi Tomasz, > > > > On 05/24/2018 05:16 PM, Tomasz Figa wrote: > > > Hi Stanimir, > > > > > > On Tue, May 15, 2018 at 5:08 PM Stanimir Varbanov < [snip] > > > > > >> + break; > > >> + } > > >> + > > >> + word++; > > >> + words_count--; > > > > > > If data is at |word + 1|, shouldn=E2=80=99t we increment |word| by |1= + |data > > > size||? > > > > yes, that could be possible but the firmware packets are with variable > > data length and don't want to make the code so complex. > > > > The idea is to search for HFI_PROPERTY_PARAM* key numbers. Yes it is no= t > > optimal but this enumeration is happen only once during driver probe. > > > > Hmm, do we have a guarantee that we will never find a value that > matches HFI_PROPERTY_PARAM*, but would be actually just some data > inside the payload? Ping? Best regards, Tomasz