Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp210471rdd; Tue, 9 Jan 2024 01:23:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IH+HnLggFEWuVGdSa7RQcoIXE7ucSiUJOvSWstLLKXaZ1IHo/96le3m2x17QYb35nb1BP+g X-Received: by 2002:a17:906:1c04:b0:a28:e7f2:43bb with SMTP id k4-20020a1709061c0400b00a28e7f243bbmr362509ejg.53.1704792181479; Tue, 09 Jan 2024 01:23:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704792181; cv=none; d=google.com; s=arc-20160816; b=TbtUxG+5s4PUiT2+Ldzwy6erGDTMCkUa3/5iA6FEvSxjeTLgOc5bzcYFUUk5gn7YyL u1wsC3eSciKLBe0kSAtCxQ7fhK+ioLnmkKq9lpIGK6guHPxjOfBzzqZG3qYLggvJAfaw F4ynq2nRDRFJvZPyX6BaWVjn9q90x7bRzWIYJq6R7hvPtZiXgfvMXic4AYBLF/WRfnWA NwK5cgSf9TPBEmMA8IGwEg8z3sC2bh7JawwWOL03CXb5S8cHc+qq3BcrAzL8CwoCyq6k Dw+MhoUX2CcohTd9dN/z4ZhuAOt4URKbrUjudR55aZUJNGa0gvTJ7uP40hJvLM7w5c+2 8uvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=HzuWPpbwZVSHJ1aJFEu6jy0rsDjgywdk2juJPX406wQ=; fh=LKt2TmxjWS0maX52hi8g5SCDjb0w4BUOLLKbaLuJGxo=; b=sggGL93v6aKM8l+IHEHFh/8ub/KVXFcEs9GundVVmHMdrEuXusn9gyYV2bGeAn8fyb sZzD31tHtn4SEut+JheNhfB5bOgzHsT56IAlSe4N33Fh4V3Vz/ojkNdpPQMIeVH1wDiV 6ww91H+4yatgRpgSwZ/s6y6T6POBt6dAlppml3/5Y2xvK2qBa3SCcTm0MY0lmkhe3n9w ynAxIllp8zwroYtO9uPx1Gp2T8DycWKKw5BP+FyWOiOoDUb6lq7POZkVNrW5gl3CnYq7 d69UjyZ6f/CKc9zRNkINLmWSxnmf2kWq0WjoUOBIdmKPlKrL9q5S8AwZ/3J9XOy0ROev 83tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=OANuaXVM; spf=pass (google.com: domain of linux-kernel+bounces-20656-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20656-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q15-20020a17090622cf00b00a26db115098si635487eja.629.2024.01.09.01.23.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 01:23:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20656-linux.lists.archive=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=OANuaXVM; spf=pass (google.com: domain of linux-kernel+bounces-20656-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20656-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3ACA11F25057 for ; Tue, 9 Jan 2024 09:23:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0D9036B00; Tue, 9 Jan 2024 09:20:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="OANuaXVM" 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 CD4882575B; Tue, 9 Jan 2024 09:20:45 +0000 (UTC) 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 (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 4093SbOe010422; Tue, 9 Jan 2024 09:20:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=HzuWPpbwZVSHJ1aJFEu6jy0rsDjgywdk2juJPX406wQ=; b=OA NuaXVMe7jOQsTbcorcqhluaRKmT7dEhtPVjQLw1a9DG2Lw1LbzC0Oku3DNCbVZ8G iSM6OF0SB29N1a4PdHanmKvUGjZjP67brVG5D/GUZ4hO0bJmy5xm7EAhL+rX96eT DAjAIGeiJTXecWl6sypeWl7akQvdHUzNbTpLaFrRO4g5wLSTcPdfZ3HRszpVUlkA FQTqmS3PUWjdNEfZIr2m5osBPPURA9EAtTcmvYxx/5EDvyC2ygW2+hH+y6KMKCb6 uQgQjmp6BOodwhomD/T9xDiaD2+EdUw8UDMBn4sTRgVoBNkwfBadcH1+HSV2bFSL X+x8Il63RpvFWhSoe+/g== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vgwhs8p6x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Jan 2024 09:20:43 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 4099Kg0x026714 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 9 Jan 2024 09:20:42 GMT Received: from [10.253.78.145] (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 9 Jan 2024 01:20:39 -0800 Message-ID: <90c0a654-a02f-46e2-96a9-34f6a30c95a0@quicinc.com> Date: Tue, 9 Jan 2024 17:20:37 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] bus: mhi: host: Add sysfs entry to force device to enter EDL Content-Language: en-US To: Manivannan Sadhasivam , Jeffrey Hugo CC: , , , , , Bhaumik Bhatt References: <1703490474-84730-1-git-send-email-quic_qianyu@quicinc.com> <20240102165229.GC4917@thinkpad> From: Qiang Yu In-Reply-To: <20240102165229.GC4917@thinkpad> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: QAzX4sz7Hd2CUePXAnk6Lnk9hhMDNg2n X-Proofpoint-GUID: QAzX4sz7Hd2CUePXAnk6Lnk9hhMDNg2n X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_01,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxlogscore=931 suspectscore=0 lowpriorityscore=0 phishscore=0 mlxscore=0 adultscore=0 spamscore=0 malwarescore=0 priorityscore=1501 impostorscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401090073 On 1/3/2024 12:52 AM, Manivannan Sadhasivam wrote: > On Tue, Jan 02, 2024 at 08:31:15AM -0700, Jeffrey Hugo wrote: >> On 12/25/2023 12:47 AM, Qiang Yu wrote: >>> From: Bhaumik Bhatt >>> >>> Forcing the device (eg. SDX75) to enter Emergency Download Mode involves >>> writing the 0xEDEDEDED cookie to the channel 91 doorbell register and >>> forcing an SOC reset afterwards. Allow users of the MHI bus to exercise the >>> sequence using a sysfs entry. >> I don't see this documented in the spec anywhere. Is this standard behavior >> for all MHI devices? >> >> What about devices that don't support EDL mode? >> >> How should the host avoid using this special cookie when EDL mode is not >> desired? >> > All points raised by Jeff are valid. I had discussions with Hemant and Bhaumik > previously on allowing the devices to enter EDL mode in a generic manner and we > didn't conclude on one final approach. > > Whatever way we come up with, it should be properly described in the MHI spec > and _should_ be backwards compatible. Hi Mani, Jeff. The method of entering EDL mode is documented in MHI spec v1.2, Chapter 13.2. Could you please check once? > > - Mani > >> -Jeff