Message ID | 20250124105309.295769-8-quic_vdadhani@quicinc.com |
---|---|
State | New |
Headers | show
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 C1BAA21CFEC; Fri, 24 Jan 2025 10:53:35 +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=1737716017; cv=none; b=ASbiKEyyn8N3y+ZDgvufiefqZ5hHHbKJZoucrMnjsHVTBngHwloQS2lRzQxgfEDHTXiAwXQkQwuVluB4IOHML2G56GtZzv/ayQFbvh4dDYfVAaPPOy4dHd4okvgH26iX+ohFfQDLY4AvWTH2hZNgsGpzVVtQ83/NKqjNiwbNgGs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737716017; c=relaxed/simple; bh=q1/o/V04jCp2MsQr91ka2GH0EVQGVUM3NwDz2a3qij4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=g/xznZcrTm2ndmJl+UHUKnU7FeN1cX/TudVgqXGYh6wcgPfjVtsbKJ94dnqcrIDzAFn9cfSRhtsc1NIjhlumvOwmm2me295dWi2cn8UHSEv7UoGJ6WWCLxSnsrFpXbDQLISFAKFSpSMqdvqrNmAonQQGVEv/NQ1WZ/VUsDnHyC8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=qualcomm.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=n1tH8CLm; 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=qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="n1tH8CLm" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50OA5W4t010886; Fri, 24 Jan 2025 10:53:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=6XuO8+aILZb vEC/AFAjzZTiXaR16xCqcBSJpyOKDOdQ=; b=n1tH8CLmRCv9N1cTcgqqkFmFI/P F3X0FJrdRuxWg0jx03oxyg7A0JV1U6UkdsPwFrh1Fswg1DvlaQmk/eJu1sqm7WuT XmE57YzycGBJV7M3+qK1ScU7OKs83rzRSBoBqKtDoG1/4rFRhWfmF95Ppzs6QEuT IBjnkovXWeCV2yUhrHN8hZGRy1ElmE/B5zWFUQ2S0lSn2HaI5X/hCa6oX8SSmnSY x/XcZ0mzq17YDDuISAMjoPBECQWhW2IOU8Qz/d0UHOFmhC6gvWHiOrZL/8yfdklS VS1PKqR5XoOP79YxVeQrrxaNij8acjULbI7Znj/TRJvWwC4U4m7VcAytaag== Received: from apblrppmta02.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 44c8ta85pv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 Jan 2025 10:53:31 +0000 (GMT) Received: from pps.filterd (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTP id 50OAnGJ7013012; Fri, 24 Jan 2025 10:53:28 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTPS id 4485cm9h17-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 Jan 2025 10:53:28 +0000 Received: from APBLRPPMTA02.qualcomm.com (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 50OArItL016260; Fri, 24 Jan 2025 10:53:27 GMT Received: from hu-devc-hyd-u22-c.qualcomm.com ([10.213.97.252]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTPS id 50OArRQZ016771 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 Jan 2025 10:53:27 +0000 Received: by hu-devc-hyd-u22-c.qualcomm.com (Postfix, from userid 4047106) id 163B655C; Fri, 24 Jan 2025 16:23:27 +0530 (+0530) From: Viken Dadhaniya <quic_vdadhani@quicinc.com> To: andi.shyti@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, gregkh@linuxfoundation.org, jirislaby@kernel.org, broonie@kernel.or, andersson@kernel.org, konradybcio@kernel.org, johan+linaro@kernel.org, dianders@chromium.org, agross@kernel.org, linux-arm-msm@vger.kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-spi@vger.kernel.org Cc: quic_msavaliy@quicinc.com, quic_anupkulk@quicinc.com, Viken Dadhaniya <quic_vdadhani@quicinc.com> Subject: [PATCH v2 7/8] spi: geni-qcom: Load spi qup Firmware from linux side Date: Fri, 24 Jan 2025 16:23:08 +0530 Message-Id: <20250124105309.295769-8-quic_vdadhani@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250124105309.295769-1-quic_vdadhani@quicinc.com> References: <20250124105309.295769-1-quic_vdadhani@quicinc.com> Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: <linux-i2c.vger.kernel.org> List-Subscribe: <mailto:linux-i2c+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-i2c+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: HfDWScheNLUTHPJWrRJMGZxmz_hKAt09 X-Proofpoint-ORIG-GUID: HfDWScheNLUTHPJWrRJMGZxmz_hKAt09 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-24_04,2025-01-23_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 clxscore=1015 lowpriorityscore=0 phishscore=0 mlxscore=0 priorityscore=1501 malwarescore=0 adultscore=0 mlxlogscore=999 bulkscore=0 spamscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2501240079 |
Series |
Add support to load QUP SE firmware from
|
expand
|
diff --git a/drivers/spi/spi-geni-qcom.c b/drivers/spi/spi-geni-qcom.c index 768d7482102a..f4f6d8210245 100644 --- a/drivers/spi/spi-geni-qcom.c +++ b/drivers/spi/spi-geni-qcom.c @@ -672,8 +672,11 @@ static int spi_geni_init(struct spi_geni_master *mas) } spi_slv_setup(mas); } else if (proto != GENI_SE_SPI) { - dev_err(mas->dev, "Invalid proto %d\n", proto); - goto out_pm; + ret = geni_load_se_firmware(se, GENI_SE_SPI); + if (ret) { + dev_err(mas->dev, "spi master firmware load failed ret: %d\n", ret); + goto out_pm; + } } mas->tx_fifo_depth = geni_se_get_tx_fifo_depth(se);