Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1234753pxk; Fri, 4 Sep 2020 04:30:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy71e03ghRXJb3NN9aJCz5s3AYhe5rOVFJVhzYiBy6IzSOesVDDSU45BKMacoEt7rgkCVRp X-Received: by 2002:a17:906:7856:: with SMTP id p22mr6707333ejm.262.1599219011809; Fri, 04 Sep 2020 04:30:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599219011; cv=none; d=google.com; s=arc-20160816; b=XiX6ofcmGFPdHNw9Ao0st5jUU4FrEbqgllgrrNER1Y3ltqseyWTWCV8uGnBv6fcU7o 0xQ5mHu1vHzswXo1143QwzDZB0ZhZ6BzL8O+zDoGw6lVp2WWebWf4f3/3ddyHBe2M12p YTDSi75LjOXf8QshJs3oJw0Hf844J+dkgu0MXvTiQnZiql9DEfOyxebdoElipDIikiq8 C5D3REgXcPHmp03EHj+yEv6NTVUavzE/lrTWOWFJU2QMVhbqOF/M1Wx2uHRIalyd3wZ7 ymxxth4pkhRJHKYmz6j6A8cbaKj9XTnry9ZsO7j0NVwlwUM85v0oUkdzRRoMWKuxq/bg gsjA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=8xEgg3o+gLGeESFHktGDRTpfevC+XglUUg4G3rHJx3I=; b=iMnstMAzQsM3kXEZAaS0LkPTC2prdv+1O0Pr5laJzIAZPXdHBPM4r5YhJ5QL7lpuMw pK9dRRkIDfBDDQsikyuuQo4CvHP7jBygwpfeOsysD2svez8twvVns8vsqd8w13pRuWba yIp5ckLR68CLlJcwrP8BoS9w7QF06znmKn+QOgGfPm3zPimFKCG50eaWprhW9/pY8TDI g56+t5uZ0euw2LYDvOSO1re6zWdy7Bah/QsvZr2nUrUVDdjfyzvxcSijNMwqK0ovDVv8 hx+pvGvS0eDKM/T3Kp78yxUsMKrSJeZFj10ba8EVCvHzDsu7+qosEWPUjK+tUZaB4v7c 0Pdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vHJpiwhq; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z12si3829803edp.120.2020.09.04.04.29.49; Fri, 04 Sep 2020 04:30:11 -0700 (PDT) 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=@linaro.org header.s=google header.b=vHJpiwhq; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729930AbgIDL2u (ORCPT + 99 others); Fri, 4 Sep 2020 07:28:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730199AbgIDL0C (ORCPT ); Fri, 4 Sep 2020 07:26:02 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94500C061246 for ; Fri, 4 Sep 2020 04:24:03 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id c19so7311964wmd.1 for ; Fri, 04 Sep 2020 04:24:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=8xEgg3o+gLGeESFHktGDRTpfevC+XglUUg4G3rHJx3I=; b=vHJpiwhqX32vEN3zWtbXmY0ePGjmUa5Gzfg+sZKNvZv4hI2s8k2vIpGGM4s7zrwM2s jzbK/FnKxl0PFFSZFeUybLHJBPyZ0oQFAtOhBfFBPwGTsThaPfNFEMz8DD8LWQtDFBhi qvgVFDlw5kPPpWyvWBkwmP1bARRgi7L7CHtoRlDF24c4Jg/hCBgby3aVV8bZ2GogBnEB Dy0rtNsF3LdNzB/rowH6JxMOmHt4+vf4ulr7kJGWT/KdbWTGoNqpgNLpmkcRrRlFgXGz ROSroRFf1uZJnc5DlU+/S8d49BHzXztyHEZ2zrYq5BR45hPZwEwcq+D1xcPT6exLf14J mtdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=8xEgg3o+gLGeESFHktGDRTpfevC+XglUUg4G3rHJx3I=; b=mANBHS+1G2JjYMZs1m5x0/rDIhk4MANcMGjTwh8Fk4xSJQFHq4n4VGsLmYRtALCi7B QAXzsDBpIYTu97dQZX+SoQ4heoSRyJLkGf0K6m2p1GnldNw9AKfcv0avg+nA1yJmj1oz RRFt+1d+cQhp5iNddiqVu8oG+yuH6Wgoy+79j5sbDBZGBsITGrbpu3erhSdqEQ/l/d75 9bpgMnPOTilEu2HbKO73NZZaocqlEQAnR0NdgNtURP4MTK/HSmubMA+PxpbkrSYiOxQK lBO0tNe0z6q+XbUHOzYLp0ofwiJllA+IWMmdzQLszJjrQcYGDpuTD19jYQQgWoGc7oNs /QLQ== X-Gm-Message-State: AOAM531KQ5w0F1DO6fbyCK1fRT3AjS2Lxj1gDy18eGXDMWzTCh0zHVqM 8ZZlHu/yA8BPLtOJfNBTYX9V7w== X-Received: by 2002:a1c:4c05:: with SMTP id z5mr6687314wmf.47.1599218642188; Fri, 04 Sep 2020 04:24:02 -0700 (PDT) Received: from [192.168.86.34] (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.googlemail.com with ESMTPSA id h8sm10573821wrw.68.2020.09.04.04.24.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Sep 2020 04:24:01 -0700 (PDT) Subject: Re: [PATCH v3 3/5] ASoC: qcom: Add support for lpass hdmi driver To: Srinivasa Rao Mandadapu , agross@kernel.org, bjorn.andersson@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, plai@codeaurora.org, bgoswami@codeaurora.org, perex@perex.cz, tiwai@suse.com, rohitkr@codeaurora.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: V Sujith Kumar Reddy References: <1598855964-1042-1-git-send-email-srivasam@codeaurora.org> <1598855964-1042-4-git-send-email-srivasam@codeaurora.org> <0101017458d94c82-96bbcff0-018e-4f5d-8273-7869c3599d32-000000@us-west-2.amazonses.com> From: Srinivas Kandagatla Message-ID: Date: Fri, 4 Sep 2020 12:24:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <0101017458d94c82-96bbcff0-018e-4f5d-8273-7869c3599d32-000000@us-west-2.amazonses.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/09/2020 12:21, Srinivasa Rao Mandadapu wrote: >> >> Before going into detail review, I see real issue in the overall >> approach here to add new interface to exiting lpass!! >> >> Intention of struct lpass_variant is to address differences between >> SoCs or different lpass versions. But you should not duplicate this >> and use it for addressing differences between each lpass interfaces! >> All the dai related register offsets should still go in to this >> structure and driver should be able to know which dai its talking to >> based on snd_soc_dai_driver id and select correct register offset. >> > Do You suggest to use separate structure like struct > lpass_hdmi_interface in lpass_data? No, you should just put every thing lpass_variant as you did but no "id" thing in that. --srini