Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp153517lqg; Wed, 10 Apr 2024 20:15:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX+TgkTukQTsDTyGQZ8i+g/akITtpzSZQC/dyATNuQI3f/rEUEa9bnKlC/tEJBb83x2MYsAmoSyhBx/0c5mGO5Xny+elahWFgjRj2K1fA== X-Google-Smtp-Source: AGHT+IE8WTsKSUvfWn6Q5qswB9bE/oEXyoEMAWDDP5H1nhTboQ1aScX9gpzIFDtSlYH1BF1FZXNm X-Received: by 2002:aca:1216:0:b0:3c5:efa0:d896 with SMTP id 22-20020aca1216000000b003c5efa0d896mr4070482ois.19.1712805346671; Wed, 10 Apr 2024 20:15:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712805346; cv=pass; d=google.com; s=arc-20160816; b=LuyFXvh+3jPFiMdElro0p7jzTjkTaf1HC4jYjADg7fD+qB6pntzqVa9hEBxb0Qw0iK H5+O7zPAGqBoMFfunCRmd4KL5TspN8QEZef23ceZ1zV3YCXGk10OEDFkJ47KMS8HCS9a j3abwxx9xaVvT4QjYd4mYVPoJfaOrwsxhAHSNIOWVdikG1ZIUgiIgsq536t1VtVNSNKh +XLNG5n8xN9RMz9f3ibv5g6Gx0EncZ03Zp14yWPRyzNZZoeWnFaIaFJ3RADyNkAX29p/ 7IzZ3E4ixPSoy4u/r6GhM7WLNescr34erSgToZvfbsE3C31Bkh9SJEmC/KSJc1VPZht9 LZMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature; bh=t51WvI2Qx262LLAouhMk5thtN1jp3w0RJoVx+37/Lik=; fh=f4KQnOf4DL3FZ4rINpxCCB681RH9plJXTbAzdkN1cKE=; b=zvmklzQH8h+OUZ46Gr/n3ux9YFj1LOJuddhmuHD4sXl9+3TDUZw+RhJZNtUNinJdDz WHhOC6Cukv8BxYMBW5FRojjLCnqeMRx8u0SpHZGtOjSHzDtPexj563muOT6ltgRynJe8 E5SlZF7rmOoMgoOpd2ZE6+t7KHAjzX0yYqZqTNX4y/iMpkJR4f3Ng6kuc9SVD/IGMazR AIimXfmO0+fe69PSS/R2DLg8ZSOxU6cZe8jS5JdthfFNPh7Ba5FMG1NFgfDtw02G8K1n KrfcpAiqhRX8R2tUjPM4OFEYJli7GN55TxA0tFyJV+Y1c0s+UcZ8bYNdrYp7hZbvP5vG +yFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=U2UqyohN; arc=pass (i=1 spf=pass spfdomain=qualcomm.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-139694-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139694-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v30-20020a05622a189e00b00434ae31ed72si649247qtc.540.2024.04.10.20.15.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 20:15:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139694-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=U2UqyohN; arc=pass (i=1 spf=pass spfdomain=qualcomm.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-139694-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139694-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 650F71C23519 for ; Thu, 11 Apr 2024 03:15:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32C3013B7AC; Thu, 11 Apr 2024 03:15:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="U2UqyohN" 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 E771E23BF; Thu, 11 Apr 2024 03:15:37 +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=1712805339; cv=none; b=jtFV9HNj28A4w2ud+lRBLswPy8lSfANTolU6mt/CLIst4KepGKAkniHYALLdUzuPXiEARotYRs1yS8eS/g1t4eWfpxnPbiYahrU9SuqkBQ9q90/2HlRIY/oHzM+3C483nksnL6DyardDfsZn7p7tCzA1kjfiA+/OsKDcUyeSqFs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712805339; c=relaxed/simple; bh=k7bJjv4Czmo4cxqrTSoKS1JJYI9xhBsbNr58H6WlT6E=; h=From:To:Cc:Subject:Date:Message-Id; b=q/1gZ9AjgSyoc9hqPse1TTFx91iQvaln0hTb5tCm5Vup+YSsfcrSqDc+C6TNPbABu/czYqO2ShsytfFRTG7LPnlUPJOqYhvfZ2ehNFHQ4vQGSAA3R1Gf8WwQOJ560928QWiurWTiwTRDSx9wxe7akZW6S29HiaF+SqQoJwKEjIg= 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=U2UqyohN; 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 Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43B2LGsb009463; Thu, 11 Apr 2024 03:15:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id; s=qcppdkim1; bh=t51WvI2Qx262 LLAouhMk5thtN1jp3w0RJoVx+37/Lik=; b=U2UqyohNkguJ1c0fRCeOhFqIGpWx 28USloHb6pcjo24BcE6HDOLg4fghRowCVQSNrkn4NS81Clo34N3i542zv7qpUSQq xkTA2gIxEfDVnfqp3pLU54Qfxb+lTV98qa2hJIyz/0eI3yXmWIFrlo1NnE8+4xSa jaPbV+ct7JpG6pjQK3AL1wT+89bPIYEage1HpJUa1HHRTwWnsHs45sP2vVdHK3d0 siwR99FPd17dsc8kGsDIWuReuSNGyPQMHugxqSbwaPNOMv6VpSTi3Ghg3UGxDMg9 GxY5bx3n/ObJACUxO7GmL4o6/XoYSz8DILRfDY3H+OXaaCoQkvHhNEi5FQ== Received: from aptaippmta02.qualcomm.com (tpe-colo-wan-fw-bordernet.qualcomm.com [103.229.16.4]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xdrkpbgss-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Apr 2024 03:15:34 +0000 (GMT) Received: from pps.filterd (APTAIPPMTA02.qualcomm.com [127.0.0.1]) by APTAIPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 43B3FW2M018361; Thu, 11 Apr 2024 03:15:32 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APTAIPPMTA02.qualcomm.com (PPS) with ESMTP id 3xayfkm15r-1; Thu, 11 Apr 2024 03:15:32 +0000 Received: from APTAIPPMTA02.qualcomm.com (APTAIPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 43B3FWWa018354; Thu, 11 Apr 2024 03:15:32 GMT Received: from cbsp-sh-gv.qualcomm.com (CBSP-SH-gv.ap.qualcomm.com [10.231.249.68]) by APTAIPPMTA02.qualcomm.com (PPS) with ESMTP id 43B3FWt9018352; Thu, 11 Apr 2024 03:15:32 +0000 Received: by cbsp-sh-gv.qualcomm.com (Postfix, from userid 4098150) id AEE4F5ADE; Thu, 11 Apr 2024 11:15:31 +0800 (CST) From: Qiang Yu To: mani@kernel.org, quic_jhugo@quicinc.com Cc: mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, quic_cang@quicinc.com, quic_mrana@quicinc.com, Qiang Yu Subject: [PATCH v2 0/2] Add sysfs entry to EDL mode Date: Thu, 11 Apr 2024 11:15:27 +0800 Message-Id: <1712805329-46158-1-git-send-email-quic_qianyu@quicinc.com> X-Mailer: git-send-email 2.7.4 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: 5rf8oENyhlxQRjD4OekFLk_UZHJ211rj X-Proofpoint-ORIG-GUID: 5rf8oENyhlxQRjD4OekFLk_UZHJ211rj 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-10_08,2024-04-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 bulkscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 malwarescore=0 mlxscore=0 mlxlogscore=639 phishscore=0 priorityscore=1501 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404110022 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Add EDL sysfs entry for mhi controller that provides edl_trigger callback. Add mhi_pci_generic_edl_trigger for qualcomm sdx55,sdx65 and sdx75 as edl_trigger callback. v1->v2: 1. Move all process needed by qualcomm sdx55,sdx65,sdx75 to enter EDL into mhi_pci_generic_edl_trigger() as the callback to edl_trigger. 2. MHI stack creates EDL sysfs entry to invoke edl_trigger callback so that devices need different mechanism to enter EDL can provide its own edl_trigger callabck . Qiang Yu (2): bus: mhi: host: Add sysfs entry to force device to enter EDL bus: mhi: host: pci_generic: Add edl callback to enter EDL drivers/bus/mhi/host/init.c | 35 ++++++++++++++++++++++++++ drivers/bus/mhi/host/pci_generic.c | 50 ++++++++++++++++++++++++++++++++++++++ include/linux/mhi.h | 1 + 3 files changed, 86 insertions(+) -- 2.7.4