Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2763471rwi; Fri, 28 Oct 2022 10:54:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM43f3MI3GYy8XZTT9WL0i5uBdFwMVS6YjpoJ5GYUbCvznRDCF/RBdABLrDd9ZjX7dOha8/s X-Received: by 2002:a05:6402:50d3:b0:461:ba8a:8779 with SMTP id h19-20020a05640250d300b00461ba8a8779mr577963edb.411.1666979685574; Fri, 28 Oct 2022 10:54:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666979685; cv=none; d=google.com; s=arc-20160816; b=Vrqb8IJ8mgDS/XtddPAdswlN2eTRBqlJikSTG+ZcqyIo/I5OAfkRM6gWzze2aMGgAQ 69b5uscVK5s8kth+o2brTCDR3oNOEzJinYUOj8fCLzOUW6LamAL7MsAlbT8L2OA6MUBu +HftEgyqGVBYZkbJUX8mMVyW+MJNEfNYs1HyVPWxHrwUDhULR+K8iuJMCzUIf11qLJQe 88TEgr7jgulaUYxVG7MvLPwl9eWWpVjv/2GLqjxDhYQpbaXhuFXt2hBhOukjK+jQpUVR wG0nhzFx5CKF/pf630PF7uVQSHAK6eRwxC2TLlXJnANBotds3oQTGgZwHI3GJtpXNqNJ 5GFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dHDJApRWEu/tkTHVz9iP7gq1sG+BNGNQv1i9LnLUi5o=; b=Fk4gWRFpQt4a7ReP4Qyk6xj+ubHPJzS/wieUbUchDJcMBqaChlNovZ49qc/g00rJGo ftpjR4q8E0wrJ8wS185y1oNXqcPhgVoH2+OkZzqPBh1Li7jgAkhTOfFHPpgObD9Kn+Qo y9S6Sc7EroTw+F+lkNjwia52T4k1KFAlcovQIwXc1KvSwTPEfz0otL09fLzHW0fe2Ds+ eH+itgAXnWbvijcTibSWqdesAJ5R1gulJSy+m4roPJ7T1D59Wo5eHGmxkvTBrjYck3Oc nQiRZ6hE/1mL3XLmZ7FeyMErzXVCuMImNHY0OzWOExkzxEbqtscUo441nSkufTwllt7I x+SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dkfovKxx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hz5-20020a1709072ce500b0077a6429787dsi5612290ejc.157.2022.10.28.10.54.18; Fri, 28 Oct 2022 10:54:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dkfovKxx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229867AbiJ1R2r (ORCPT + 99 others); Fri, 28 Oct 2022 13:28:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229819AbiJ1R2q (ORCPT ); Fri, 28 Oct 2022 13:28:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D29C1DD8BB; Fri, 28 Oct 2022 10:28:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2A142629DD; Fri, 28 Oct 2022 17:28:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C145C433D6; Fri, 28 Oct 2022 17:28:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666978124; bh=jT5rZEE6y+PXjgFd1192RTwBkHZ3W7K2exfQwkqp5s8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dkfovKxxnRrnYNPYtCgcC6ZmL3f/A2ILV5eU7Hh1LkxQReOWtQuX1z90izLuCmwVq xj6vW74Ka82Z44L5TxRJ6f4gkarToWZM5GM3aG+6oa3GZaDg1r8nABS/C477isWyjG xQumJbfCp5jvRDUgS3Xn2mQSVHxIMmNMWtiFilo7cRQnlU80v0H3rdFkl/vkaA1nyh G5isAcpzgySvfDjQZh6WoRMNAqeNSue2mnImsxArRJaN8CtxKZZmftcwl7V8x8lun0 icpmpqdI2cs5wbRjadXUTDT56S3xayy2viy9D82KRcxVn0jkskp3vy8PPttC1xPrLb kWLtL+tfCeTHQ== Date: Fri, 28 Oct 2022 22:58:36 +0530 From: Manivannan Sadhasivam To: Qiang Yu Cc: quic_hemantk@quicinc.com, loic.poulain@linaro.org, mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, quic_cang@quicinc.com, mrana@quicinc.com Subject: Re: [PATCH] bus: mhi: host: Use mhi_soc_reset() API in place of register write Message-ID: <20221028172836.GF13880@thinkpad> References: <1665376324-34258-1-git-send-email-quic_qianyu@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1665376324-34258-1-git-send-email-quic_qianyu@quicinc.com> X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 10, 2022 at 12:32:04PM +0800, Qiang Yu wrote: > Currently, a direct register write is used when ramdump collection > in panic path occurs. Replace that with new mhi_soc_reset() API > such that a controller defined reset() function is exercised if > one is present and the regular SOC reset is done if it is not. > > Signed-off-by: Qiang Yu > Reviewed-by: Loic Poulain > Reviewed-by: Jeffrey Hugo Applied to mhi-next! Thanks, Mani > --- > drivers/bus/mhi/host/boot.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/bus/mhi/host/boot.c b/drivers/bus/mhi/host/boot.c > index 26d0edd..1c69fee 100644 > --- a/drivers/bus/mhi/host/boot.c > +++ b/drivers/bus/mhi/host/boot.c > @@ -118,9 +118,7 @@ static int __mhi_download_rddm_in_panic(struct mhi_controller *mhi_cntrl) > /* Hardware reset so force device to enter RDDM */ > dev_dbg(dev, > "Did not enter RDDM, do a host req reset\n"); > - mhi_write_reg(mhi_cntrl, mhi_cntrl->regs, > - MHI_SOC_RESET_REQ_OFFSET, > - MHI_SOC_RESET_REQ); > + mhi_soc_reset(mhi_cntrl); > udelay(delayus); > } > > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project > -- மணிவண்ணன் சதாசிவம்