Message ID | 20240222-mhi-const-accel-qaic-v1-1-028db0dd9098@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-77607-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp316144dyb; Thu, 22 Feb 2024 17:07:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVMdjS1CNMPV8mi3DlPZhCrQfbjarojeV/8nzDDVdaQryvdV2b2W2l9Kk+VwptnNe+yrD+jAvOEs7E39JkQ3NkNGPEJPA== X-Google-Smtp-Source: AGHT+IH8x65Tba7iuvoxy2Zhv7FSUdWKmBHNhzh8XP1ScTXtIwC0u2IiSUphA6t2NEexMEuyev76 X-Received: by 2002:a17:906:4895:b0:a3f:2168:214b with SMTP id v21-20020a170906489500b00a3f2168214bmr3658131ejq.1.1708650476288; Thu, 22 Feb 2024 17:07:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708650476; cv=pass; d=google.com; s=arc-20160816; b=MSDZ22HJAIc1QEM/JQ+2VbDVkuGJM3JgZejD2wTOosOMuU3Dvh9HLYrvUJr2a3l+be c9BHFEPlb4uBM+qQp8Lq7PXqTLfhnCasxMH6hycLBXsTsYjKF7sNv+lwgnTBUtGI8KVL mbdkRGVZBDmGBX1sWTUcvmDds358Uy4pRF82qihfVN/pTW7uWAWKtVd0SNFEsBc7kAsI Cvubh01P06s5gLJ8uT3o5SL4SPoS0efkWCPv4/AsytyCwHCe78ZTLeu9WdJK4yEyfmQ0 tYXiziol7Bsmxn3tuzb/9pb0lDxnpeWuybnRYnqNZ6recCPimoC+rQbps1PADDPDEKu8 N3CQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=bn/99WGihbbZNg79VWmJiaPSADc/KaYVbVREEAS/UJc=; fh=U+tnnifvEYn8jLIupuaWfy8ojw/IE/gQAbKVWVoioyI=; b=eh4m2R0B8zCdWFr7/W/IUrEkk5xxIODzy2UgTLn/fbIE3NAGn3ARNiO//3Avak9/Wq EEJD+gZIpqKPDYAVuR3Nnha/Inf+AuFcAIUS/N4WmbkGNwOW7dfD6DyhVPgco/0l42pT bH/5qslNhFo2vA1APUwvRU30LN8T4fXC0X62AP8wGJBdesvVNjThb4yqCTHHwjALVZHP FQD+EPPk6lQzybN4H6cIViv55zQfttopqN2Wpo5HYsycTeBc1+NHlUP31Yof8QzG5lby v06vz/+zK/vjxFOlHcMVZ2BE3kisWslnEqaTFdOQQcU1qXVKYzkatNZDApPJzg4lPdk3 eAlQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="MV1X/+8A"; 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-77607-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77607-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id go31-20020a1709070d9f00b00a3ecaa350dasi3794593ejc.467.2024.02.22.17.07.56 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 17:07:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77607-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="MV1X/+8A"; 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-77607-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77607-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id E463F1F23136 for <ouuuleilei@gmail.com>; Fri, 23 Feb 2024 01:07:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C805DDBB; Fri, 23 Feb 2024 01:06:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="MV1X/+8A" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 28638C154; Fri, 23 Feb 2024 01:06:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708650410; cv=none; b=YMEIx0nUggdNOs3AM0RsDKdcAF4kGHv/71vi5m0/fZ/y95po4876n59SYUS7VPeHD/qdODuWawQr6sT4DmXqbuGzKw3SVxkIVltBQXBgo8ihKaSk6r55LqzL4Cz4OYjYeTu0SKqDjaDt+USWJIzRZoELSgHiw6KpPbCNloZq1R8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708650410; c=relaxed/simple; bh=UtkeNLNiPshRs2HQjzMI09jh6wdcEdgPl6S0msvUJck=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:To:CC; b=uLLpTFHboGYLtD2UshPt9WGFDnM7c4m7gnI+O+jZJBkbaTQS2mN7S4DXhLYikENfyn58v1sd/2T8dLAEf58wySuMZFiduXzx9UJBU6TwPYTTpVfYWla1Iu1ipC679OcdGy5IFmEvtpESZ7hzfNhMzW0WBGDPSlfcXvAww1eqeeA= 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=MV1X/+8A; arc=none smtp.client-ip=205.220.180.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 (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41N0POC8030809; Fri, 23 Feb 2024 01:06:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:to:cc; s=qcppdkim1; bh=bn/ 99WGihbbZNg79VWmJiaPSADc/KaYVbVREEAS/UJc=; b=MV1X/+8AyfvJRl6yjcI qZJpfzaLUH+S+SUklAkmNwKHx7lJAW0NDPC8SN2Vy8buqu5jmqVgczjWAqQ31uxX y3Ek+QZrf5bmwG7zXDEQampzDgAFdgZcETy6f/3DI4S0P0FkKY4SEcpBsaSo58tL IF/TnmxPhKbBjBcP3C3UIqX8DQXm2Gj+h1rp8USvDT8KpxbwYxfP6FYOrdrTNOFP M/4CMiltAe1VOWYU1ShopmleLbqy+11wWHzUh9N+pEvod6OUGCEfSUTAUFCtSlQi TpO/YGHVXEr4l89L7p4y+tYC0etgj7iOYS6STtIJvYkAYUnA9jHX6OrJSvGFwRJp /Gw== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wdw13ap2b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 23 Feb 2024 01:06:43 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41N16gCZ028619 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 23 Feb 2024 01:06:42 GMT Received: from [169.254.0.1] (10.49.16.6) 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.1118.40; Thu, 22 Feb 2024 17:06:39 -0800 From: Jeff Johnson <quic_jjohnson@quicinc.com> Date: Thu, 22 Feb 2024 17:06:38 -0800 Subject: [PATCH] accel/qaic: Constify aic100_channels Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20240222-mhi-const-accel-qaic-v1-1-028db0dd9098@quicinc.com> X-B4-Tracking: v=1; b=H4sIAJ3v12UC/x3MTQ5AQAxA4atI15pQxM9VxGJU0YTBjIhE3N3E8 lu894AXp+KhiR5wcqnXzQakcQQ8GzsJ6hAMlFCeEBGusyJv1p9omGXBwyhjVlV1WpS9lIYhpLu TUe9/23bv+wFkLbUIZgAAAA== To: Jeffrey Hugo <quic_jhugo@quicinc.com>, Carl Vanderlip <quic_carlv@quicinc.com>, Pranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>, Oded Gabbay <ogabbay@kernel.org> CC: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>, <linux-arm-msm@vger.kernel.org>, <dri-devel@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>, <kernel@quicinc.com>, Jeff Johnson <quic_jjohnson@quicinc.com> X-Mailer: b4 0.13.0 X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: xgDZy7F6NZFJKUABblT2SA3Z4RM1k9Ei X-Proofpoint-GUID: xgDZy7F6NZFJKUABblT2SA3Z4RM1k9Ei 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-02-22_15,2024-02-22_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=985 malwarescore=0 impostorscore=0 bulkscore=0 adultscore=0 mlxscore=0 clxscore=1011 lowpriorityscore=0 spamscore=0 priorityscore=1501 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402230005 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791649881614747037 X-GMAIL-MSGID: 1791649881614747037 |
Series |
accel/qaic: Constify aic100_channels
|
|
Commit Message
Jeff Johnson
Feb. 23, 2024, 1:06 a.m. UTC
MHI allows the channel configs to be const, so constify
aic100_channels to prevent runtime modification.
Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
---
drivers/accel/qaic/mhi_controller.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
base-commit: 3ab6aff5793c3c7bdf6535d9b0024544a4abbdd5
change-id: 20240222-mhi-const-accel-qaic-3889157be7ac
Comments
On 2/22/2024 6:06 PM, Jeff Johnson wrote: > MHI allows the channel configs to be const, so constify > aic100_channels to prevent runtime modification. > > Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com> Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com> I plan to apply to drm-misc-next before the rc6 freeze.
On 2/22/2024 6:06 PM, Jeff Johnson wrote: > MHI allows the channel configs to be const, so constify > aic100_channels to prevent runtime modification. > > Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com> Applied to drm-misc-next -Jeff
diff --git a/drivers/accel/qaic/mhi_controller.c b/drivers/accel/qaic/mhi_controller.c index cb77d048ed54..3f81d6396c85 100644 --- a/drivers/accel/qaic/mhi_controller.c +++ b/drivers/accel/qaic/mhi_controller.c @@ -20,7 +20,7 @@ static unsigned int mhi_timeout_ms = 2000; /* 2 sec default */ module_param(mhi_timeout_ms, uint, 0600); MODULE_PARM_DESC(mhi_timeout_ms, "MHI controller timeout value"); -static struct mhi_channel_config aic100_channels[] = { +static const struct mhi_channel_config aic100_channels[] = { { .name = "QAIC_LOOPBACK", .num = 0,