Received: by 2002:ab2:687:0:b0:1f4:6588:b3a7 with SMTP id s7csp100898lqe; Tue, 9 Apr 2024 16:19:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWsGgAVzkVco5zdH6fQlZPknD+qy/seS0RupLkcQxt1e1FNKE5asVoZJCzyeUe33GkBuxignZDOAvlBD//dOzqtHu3YM9YGUE0DxudIzQ== X-Google-Smtp-Source: AGHT+IGGRhB2kUV+CJ+u2auRnjCNR9yr9pQnXDt+ak9rqgabuC7KGVrTRBdajqP31MFlUNGdAkui X-Received: by 2002:a05:6a20:729e:b0:1a7:53c1:ad89 with SMTP id o30-20020a056a20729e00b001a753c1ad89mr1493829pzk.53.1712704781394; Tue, 09 Apr 2024 16:19:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712704781; cv=pass; d=google.com; s=arc-20160816; b=k8FXQdbVuB9P+F++jWttejZEyx33di8twdETGwelTiaUCAL6KW2Cf2mbgDwOckL8fP IPc2GlompGEo3eg7tijoTWKM91NnXdooF73UmtgZBEUa+toCMGAhNEax+FYpdCRfIXE6 k4mV/OBJHd53kYQxYWimPklj0wplpjzJ8aWGk0DzERu5DBsxzx8OT8elpn0myLYI4IOb 0xFkB1U0FOZvc9BXdMucvINOyaP89lEDODGq3RwgpOEtcs1HJaSImi9NvguiKOuomXvz fh9MbnsXLCHXOVi7LGVrOdNY0fbgXpsIUtnrFL5yfXWAGB1WuvMg71pUlXBQ4eJ1/uH9 d9zg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=N+J/7ZTkrzTpb+40/f8nUYISV6T5vuTq1CdcjZQHAW4=; fh=YYcZL9dzZRXHa5t7epgTzpdmS6eVGIosA2VKghQn6jQ=; b=rnW6CYDycA9csucKT0TJ9wDqXhzTOgsL9mS2MVk/SO+DxHN69A3fwVntpdJk48V4qq b+oqIazKSIWUir9kt3QHAGCT6uIxZt+QT0X9AlKDREt7DJvRbjfY0rNkt/pweSD4v5jL tcX9a8aeocJ0XT749b/HBmAWN2EQ8lmPZk/yYnzf2wj6itY54SXDAc/l+FxkBorKB/c8 nnPuz6c16YqlZWdnDIxgVqhcRcPA7Y5sbx7/d6haR0wbjd7vOScQtXJ4VBlIo3Z5E/0x /u629e5Rrpx9CtyDdKm9apxp6N944C40Lq1mNXvRvdaOa139tE1ypNr3spNd8jhimUnm 0mAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=LnccMz9O; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-137691-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137691-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f9-20020aa79d89000000b006ead16f07d1si8586405pfq.119.2024.04.09.16.19.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 16:19:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137691-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=LnccMz9O; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-137691-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137691-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7323D282881 for ; Tue, 9 Apr 2024 23:19:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AB44D158DBA; Tue, 9 Apr 2024 23:19:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="LnccMz9O" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5928B158DAA; Tue, 9 Apr 2024 23:19:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712704756; cv=none; b=ggWOnKetlKkHnkl2VM1C6Tga97td3UksYOFi1121Evy+TNAu86S2R2tE+Wj4g/QiZItk/pBhthLlZCICozrfRT8YttSBue2KClGqIVrjgh0clZrmjryOxTI9n+iWxz3G96RoefS+Xa6yMTBDTBIa4TYclSW/74cPFobprp9j9OA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712704756; c=relaxed/simple; bh=gsro14HSF+eG7gyjutrPG/+a7zpFxjtt1NQDwQItges=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=B9VUfRni83Ig++pe2Ijoij7bJ9+DEJt3SwszaoCuQiDDdRvl/K+PWiugm/CS2h6fxjd1IYxHFHqLhWbbGpV00u4S4Im652OfEz+K+sIc8GpNYPHwQ82VLBNjNawrwSwsD/yYoNu6O4U573SuEOfTZvrm3wvaVIaZbc2pF0s0aKc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=LnccMz9O; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 439MwNQo007240; Tue, 9 Apr 2024 23:18:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=qcppdkim1; bh=N+J/7ZTkrzTpb+40/f8nU YISV6T5vuTq1CdcjZQHAW4=; b=LnccMz9OsUhMbx+t0EvHpAIHfPxiawqv5aS7k YSpFVssGqam50WkQ34tUWp08kniwoa6VjkKJf0tU9eVqqHEtQmnciRg8ijtEpV0u Avr2vqbvv1lVFmfE7HOc65mjSVXlMcmix8Q2MdPpGFwHYOL8luxLHU/pU9alTVHI 9duTEa6DVaETFoARmTokQDZhh6sHWaF7AWNkwr0WXH6wdG93XhJnGwA5pqE3UZOG 0apYtI932R17ie5+f3lwe4SAb93z/AbW2PtAe277dpryJ7/ST349j4yxQk4yza3+ 8SLmVjJYp4RX2oJcJO3WAQVp6ioB+eR0sXWMpvdZ1NX7GNt6g== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xd4uesqjv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Apr 2024 23:18:57 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 439NIudR015984 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 9 Apr 2024 23:18:56 GMT Received: from hu-bjorande-lv.qualcomm.com (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Tue, 9 Apr 2024 16:18:55 -0700 Date: Tue, 9 Apr 2024 16:18:54 -0700 From: Bjorn Andersson To: Abhinav Kumar CC: Bjorn Andersson , Rob Clark , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , , , , Subject: Re: [PATCH v2 6/6] drm/msm/dp: Use function arguments for audio operations Message-ID: References: <20240328-msm-dp-cleanup-v2-0-a5aed9798d32@quicinc.com> <20240328-msm-dp-cleanup-v2-6-a5aed9798d32@quicinc.com> <711e8a6a-a849-3cd3-fde3-d60f756abfa5@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <711e8a6a-a849-3cd3-fde3-d60f756abfa5@quicinc.com> X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: rJwRBaALpi4XBpdebfX132nxJz8Au_YR X-Proofpoint-ORIG-GUID: rJwRBaALpi4XBpdebfX132nxJz8Au_YR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-09_12,2024-04-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 impostorscore=0 spamscore=0 mlxscore=0 malwarescore=0 phishscore=0 bulkscore=0 adultscore=0 clxscore=1015 mlxlogscore=965 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404090160 On Mon, Apr 08, 2024 at 02:31:45PM -0700, Abhinav Kumar wrote: > On 3/28/2024 7:40 AM, Bjorn Andersson wrote: > > From: Bjorn Andersson > > > > The dp_audio read and write operations uses members in struct dp_catalog > > for passing arguments and return values. This adds unnecessary > > complexity to the implementation, as it turns out after detangling the > > logic that no state is actually held in these variables. > > > > Clean this up by using function arguments and return values for passing > > the data. > > > > Reviewed-by: Dmitry Baryshkov > > Signed-off-by: Bjorn Andersson > > --- > > drivers/gpu/drm/msm/dp/dp_audio.c | 20 +++++-------------- > > drivers/gpu/drm/msm/dp/dp_catalog.c | 39 +++++++++++++------------------------ > > drivers/gpu/drm/msm/dp/dp_catalog.h | 18 +++++++++-------- > > 3 files changed, 28 insertions(+), 49 deletions(-) > > > > One quick question, was DP audio re-tested after this patch? No, sorry for not being explicit about that. I don't have any target with working DP audio... Regards, Bjorn