Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2763101rwi; Fri, 28 Oct 2022 10:54:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4clx+TkXoGc9hw8q+4js7ARzD7i+n8WkYkfpUr7xPNj0mgbMr9i1hG48TymfJEx2KFKx1W X-Received: by 2002:a17:907:2bd5:b0:76f:591c:466b with SMTP id gv21-20020a1709072bd500b0076f591c466bmr485049ejc.504.1666979667170; Fri, 28 Oct 2022 10:54:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666979667; cv=none; d=google.com; s=arc-20160816; b=RknzkKS0b2/QUWlyI0U5fn6cqzM8+SilMJnC7c2eL2sf7fKZfNK+HFNFbYR0aKOlB4 i9pt6nlfht9W4W2FYcTpraqMh+zZpYjs/qtgDB8gksfa5a2/GvKFr+Wfv793F04cB4uS hOYHng8BoIRZ0NNrN9KMzdGMITrredQM2LOQ9cC3lPBkqcz+snLtCkf9hmrGNrHGpRpt aaRTgReK4xUFU5m94sHGRXkHin6RMooqAWfThHLu5CpGNCx1lbdPiQ/vwTChMccrnwn0 V6PqXEHJTY5phyG/Dln8qx2pziSLDE715c0c5YBqch0GMSfKbfzxufnWWlDXdafutsvn MuXA== 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=t7+pUMcdiFkUbEU/FF3UVW58ownaCAh+WtbS/UXnLVM=; b=KbLXyhuVV0484gjnYMSWYgXduC6PeNprtM4Y7N8+8K2CxaKnk2mpliGrL6mzjiMpo6 zSDefbo0wcKERnEmvd6ZmB5RLP5g+xZoxEezPBn5RzUu+ngx259sONWSX47Rmg35BrWA P7R7JgvFPXTH5JXjZH5mEIhKwsukyVIlAkT9UXjGATKg+IplKaKWt0fuTOPF1rhIubP2 yGShRVtudjnIdQET9vE85C6IgrPwuv1wkFdgSY1+2zT6c/ipGVzFRZzsbPRHErFPFJzn 9/o4GSbM/1YTniswTL82194Gdu8Xco9x6OIE7W+g9jJ4xq7P9gH1P4WPzrmx0WHjnMo+ scNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="hgrFOb/4"; 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 r30-20020a50c01e000000b00461b661d906si5097713edb.256.2022.10.28.10.54.01; Fri, 28 Oct 2022 10:54:27 -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="hgrFOb/4"; 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 S229988AbiJ1RWP (ORCPT + 99 others); Fri, 28 Oct 2022 13:22:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231202AbiJ1RWN (ORCPT ); Fri, 28 Oct 2022 13:22:13 -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 550D86CD3A; Fri, 28 Oct 2022 10:22:12 -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 E7883629D3; Fri, 28 Oct 2022 17:22:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6164FC433C1; Fri, 28 Oct 2022 17:22:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666977731; bh=RCc4qKIHtkfxg/CFdtsU8GG54g7gSd6z0PMWBWissZs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hgrFOb/4HzKUvv7KCSfPG29Jk88l8NVf52ETzbuajDpZtDpK3IkzcC1BlCOe8/TwW eA7AKPRABd3nb9E6GgduXlhnBrd6xb5+tWF9S+j9TpIzsfCp2/lpBGotm9IgGMbLbF VekBR/bAebefY1Sqtg7KS/PFFh9ZtBpnMSw8CkadZGLtpIPobXDQF63nPmxc+OwAmU Tay8GroEAdj4NKa9yKtVZ9/0wYL5PyGC20nvJEabKlQ+pK/3IoWCRjaf7YiVovKJIH WxvxkX8gt4JG0JVegYJsZWbWylcxm/V4Z7fEmkPwbBdWcrn41Z8ASSZqR9RhbtDQ2K R3uDFIGMvJeFA== Date: Fri, 28 Oct 2022 22:52:03 +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: <20221028172203.GD13880@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 Reviewed-by: Manivannan Sadhasivam Btw, this patch is supposed to be v2... Please keep the version info and also add the changelog for future patches. 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 > -- மணிவண்ணன் சதாசிவம்