Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp205339pxm; Tue, 1 Mar 2022 18:40:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJz3+YIYuHObxYTEkFzHkc0MiuCIx3U7L9YBGlBMzqGgK1Ul8DOn7g/9/VnGFj21sPOQSwL/ X-Received: by 2002:a17:902:b183:b0:14f:c266:20d5 with SMTP id s3-20020a170902b18300b0014fc26620d5mr28945609plr.136.1646188836518; Tue, 01 Mar 2022 18:40:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646188836; cv=none; d=google.com; s=arc-20160816; b=rKWfSlldDNIJeSXo6fZPMhxRWZEyaiYakqpxRLctpyqjduygwEARpK7gnAV0qssgec OMbaSglALARRZvrsPQKeG/HGTuniDVkM+Zq5eJQiCk30aJ14Ubj7esNykHoL0ikdFBmh P2U5UStsY/3WRWb3sIWBAP+5zyuPubu6xWfFOywywZp9x2aUCdD1j/SJ1JIz/KZXXq6G D6yKS3Ci15o8UMQv+8z4Gsp4kayzkTRnTFFlQBftGt2lfL4dGcqSEk0VHHMNCS575r9S wBwLFQir/omM9IsfUZuOZl9Mp4zIRZdumIiES5FUrwiXXyQOfsdlp8CSPEo1CAuaBHYd cOaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=C/BjzGXxbcQNucZ4IX+eGwpvmWxMB4jt2HQM1WP1dbg=; b=Sx2opQePZ8SMa2S/f5/7zP4NpltoDh5MN0doMv3e2MzMZXto5dbvsTy4zFwh89qwOJ gpsZM519PEpTmNSeSN2D40S+UGpUtig16JCZqLId75luuyFn+eayPr9LYoKTNJSFed0r RvtYht4E/2EkzHIYZaKvrfbXEwwOckAm87gk7hvyovkdtaK5uxPBQo8CV8o+OMxFmu/t BNQ5fUxEQlHR43SKQNhZkFAO/Xvzl7ZMIZ0TLKe+Qmj2GJYMHA2Q3Nix9Wb+TjXDcXRF K4/qG1Z30u7tcg7Zftd8IW64QkrpjFRiQ4C7gu6qe91w2ugOAaUdFTH/gQJIzPGwvz8f xCNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=MQteWPZW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oo13-20020a17090b1c8d00b001b9b28d9923si5014355pjb.58.2022.03.01.18.40.16; Tue, 01 Mar 2022 18:40:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=MQteWPZW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235698AbiCAPqA (ORCPT + 99 others); Tue, 1 Mar 2022 10:46:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233364AbiCAPp7 (ORCPT ); Tue, 1 Mar 2022 10:45:59 -0500 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30E554ECC8; Tue, 1 Mar 2022 07:45:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1646149518; x=1677685518; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=C/BjzGXxbcQNucZ4IX+eGwpvmWxMB4jt2HQM1WP1dbg=; b=MQteWPZW0dA6PEbnQ5k5EHn4JgBDd7WOjqwTiipPVWNnfCOXrbhz0n+8 5+edV8OxUj1I/3SYDgeGMGbKlcWdwABaxiroXsncX082w68AM5tyaF/d6 9IAaK1bxygdDKQyFrSVx50oppQTCwSdDdUDW+sTszrVPVZVyBWt2F6rRQ A=; Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-02.qualcomm.com with ESMTP; 01 Mar 2022 07:45:17 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg03-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2022 07:45:07 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Tue, 1 Mar 2022 07:45:07 -0800 Received: from [10.216.24.177] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Tue, 1 Mar 2022 07:45:00 -0800 Message-ID: <134a64a9-abab-df25-a613-2d01ac7e5ee5@quicinc.com> Date: Tue, 1 Mar 2022 21:14:56 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH v5 1/2] soundwire: qcom: Add compatible name for v1.6.0 Content-Language: en-US To: Stephen Boyd , , , , , , , , , , , , , , , , , , , CC: Venkata Prasad Potturu References: <1646030377-12092-1-git-send-email-quic_srivasam@quicinc.com> <1646030377-12092-2-git-send-email-quic_srivasam@quicinc.com> From: Srinivasa Rao Mandadapu Organization: Qualcomm In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/1/2022 2:32 AM, Stephen Boyd wrote: > Quoting Srinivasa Rao Mandadapu (2022-02-27 22:39:36) >> Update compatible string and master data information in soundwire driver >> to support v1.6.0 in lpass sc7280 based platform. >> >> Signed-off-by: Srinivasa Rao Mandadapu >> Co-developed-by: Venkata Prasad Potturu >> Signed-off-by: Venkata Prasad Potturu >> --- >> drivers/soundwire/qcom.c | 6 ++++++ >> 1 file changed, 6 insertions(+) >> >> diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c >> index 9eb31ba..fb183bd 100644 >> --- a/drivers/soundwire/qcom.c >> +++ b/drivers/soundwire/qcom.c >> @@ -175,6 +175,11 @@ static struct qcom_swrm_data swrm_v1_5_data = { >> .default_cols = 16, >> }; >> >> +static struct qcom_swrm_data swrm_v1_6_data = { > Why not const? Okay. > >> + .default_rows = 50, >> + .default_cols = 16, > This is the same as swrm_v1_5_data so just use that struct again? Okay. Will useĀ  swrm_v1_5_data. > >> +}; >> + >> #define to_qcom_sdw(b) container_of(b, struct qcom_swrm_ctrl, bus) >> >> static int qcom_swrm_ahb_reg_read(struct qcom_swrm_ctrl *ctrl, int reg, >> @@ -1343,6 +1348,7 @@ static int qcom_swrm_remove(struct platform_device *pdev) >> static const struct of_device_id qcom_swrm_of_match[] = { >> { .compatible = "qcom,soundwire-v1.3.0", .data = &swrm_v1_3_data }, >> { .compatible = "qcom,soundwire-v1.5.1", .data = &swrm_v1_5_data }, > These other structs for v1.5 and v1.3 could also be const. Okay. Will add const and re post. > >> + { .compatible = "qcom,soundwire-v1.6.0", .data = &swrm_v1_6_data }, >> {/* sentinel */},