Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6656618rdb; Tue, 2 Jan 2024 08:52:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IFAGh0XT3JQpefj/arwX3d0CL7PiJlI65mQ8ywRgvK4TMSKm9IVVkQynt38H5G0b2gXHM0K X-Received: by 2002:a05:6359:410c:b0:174:b7d7:f6f8 with SMTP id kh12-20020a056359410c00b00174b7d7f6f8mr16551615rwc.52.1704214370460; Tue, 02 Jan 2024 08:52:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704214370; cv=none; d=google.com; s=arc-20160816; b=A+KdZQYL4aRId+iJ/9IXnNe2UA8SS10N5p8Bupzt17wtcx/a1iRibZ54hrxKQ+d+UF 3o4FZ9OS5EN4mtZrzIqE1QReh7pMAuZe50bEEb0KmBJsrdUJ+gVUk2pZXBSxoYDrUr8v Ow3MdIcHy4qpaQ6z2BMBxK28rDl3uO0KhsBl7DBPuusomv+kV8kyunr74xz7XFPsZBeY 4FdMTNNqVFDvFwNGethmdcPS5r9CJuMSgpDeEQv84VhqwHJ/kUJE+TBFhngV1EYtDtiQ fOVPEMQaN+bapEUTINcPVVifQ2LvcUoQ2eqI7BlI1VgKvSL38Wl2hFf6HA9pTJPGsLI5 SScw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ifO/NEppT1CbRu/NcI3ouFKTjxSAdUhF41XTwHgvz9U=; fh=a234lnWudtnnxDYOD1p/ZrRelOWdoJV5gzD+eD3bm5M=; b=KUjKD0sQjLwUyW7KPjsyM+OrjXga9dliALArGKHrQZcEgyQhNPQrjTzCDRqjH8/noO vBjQ0hfq5tgHWrAW8mLP2hGnfeq2jpjNkhqkyBkKe3+ICLxfO3fLzMu2jjkZWbpE3Tb7 +I8ouYj5/kSSx1qhR5nV3I2o35YIqvSG/R59CjLa1DxWDC1a2OtnO9Mv6P8AHQv4WDtg Eg4R0Ag9g007lNKKpnQI7XxpsLnXW6miouhgRI2guJz1FXyjYojwxnwbTAUolIooXTPj m+7MnCHBf76AIdt4u1S3FoEzvyZsvRfnC/u1REkjVvACRHya3MmkhLiuGxNGZYLx8l7e 6GuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GAk1zDmy; spf=pass (google.com: domain of linux-kernel+bounces-14616-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14616-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bg17-20020a056a02011100b005ce52db08fbsi9737538pgb.695.2024.01.02.08.52.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 08:52:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14616-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=@kernel.org header.s=k20201202 header.b=GAk1zDmy; spf=pass (google.com: domain of linux-kernel+bounces-14616-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14616-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 C8F72284E07 for ; Tue, 2 Jan 2024 16:52:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 659BD14F9B; Tue, 2 Jan 2024 16:52:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GAk1zDmy" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8F79514F8A; Tue, 2 Jan 2024 16:52:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2AB9C433C7; Tue, 2 Jan 2024 16:52:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704214363; bh=R/bH2SJHxYJQr2krHs+SPvNR7ecZ5sreLbG58UhOGss=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GAk1zDmyKQ3PNobxZIxsEz6+paS7sh14rfXLXdUcIDreR2OXm0CTvyc/S8KLH8Z6L 9OQlAHKlFV9LiJfausFEHjwegOa4SgJYfDD/kg5xu0w1jfH8vR8FSdBnzWcFtFzjDb pH5aj/sdgL275cyVZvWICZZsxOX3b+xDeTB4jxHuYXwlO5Ugs4Gb1wiNXddASO15O6 /zdk+ET/cjHrE5XuJiizUlhkiHckJQfkXSqG1YbfcoYqz24Qv+I9bzjvkJ9Tu+x24U +MjPREv1ctXPCPklPLELDxdnMgScTtZj843nizmEzeRr5HvSHo9h8vibtVa+8Vdptu GHKEYqEAr6mcQ== Date: Tue, 2 Jan 2024 22:22:29 +0530 From: Manivannan Sadhasivam To: Jeffrey Hugo Cc: Qiang Yu , mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, quic_cang@quicinc.com, quic_mrana@quicinc.com, Bhaumik Bhatt Subject: Re: [PATCH] bus: mhi: host: Add sysfs entry to force device to enter EDL Message-ID: <20240102165229.GC4917@thinkpad> References: <1703490474-84730-1-git-send-email-quic_qianyu@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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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. - Mani > -Jeff -- மணிவண்ணன் சதாசிவம்