Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3520386yba; Tue, 7 May 2019 02:35:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzugfaN+ZRCAquuaqVUleWxa1PKfwz343DrJVkwumlnyOG4Py/ucyOj73VGEesw6ntVc0IX X-Received: by 2002:a62:544:: with SMTP id 65mr39573786pff.46.1557221739055; Tue, 07 May 2019 02:35:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557221739; cv=none; d=google.com; s=arc-20160816; b=xA+AtZUgRA+dxSPR2n+RmHV8mbJ38NdCuPmJZ8jDmuSpUl4Ps3BddzBU2B06yJRaVO sUcSoZ/nxg5Ch1nT3swKPtomZg831UwAggNgpsSLUfkiHf978fdJc96ePnU57fFzkGI6 RlD2BmaDdR4mkiMnYEgQCJ+Cf/ZjzZ3BUlhtM/3gAlgbSwq9ryf5azH5OD/+nIezEQwH EA/62SkWb7TxTrJf7BSHfO3RaeDMKXLf6+M3YxElc90BX7QOZRBbjwnhufHtJrzT24Yd Gj0bKkUkxqXv/Qlm0cRii+dyCWZ42Y0KzPy43B4OvSChE4/rYblJO80bYJoA/FXFsHn/ Dftw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dmarc-filter :dkim-signature:dkim-signature; bh=/ZhCFa9OvBzfHm3wnFoxLbAcWHnjqhKEw3KfL8Pu7LY=; b=tUvmh18HdXwqPPqx+1huOY30MNvwoxLkXlzaGgEaNXAtlavZSvxJLyuLeG3txjFGti nhr7Pl3rm8RZSsSygeV7D9m0XjBHpiqKzzT0L1Zo49UY6gTq9rtHH5mShyrBPt9mo7iq 2PfK1KaIrAnnymIgcD20W7OCaXrO+3OKaoFbPGeQ+cPVRHpU4SpuQzQAn0RCN+X51a1t +c7tFmwIx5HJDrdU1Z6zDYoAL5cExhs8+iyaaLSnexGoJ+i2uBi81erMsPbv2T8oPYfy jxbovsU0p0hrxjmm8N67xuAMpCbyKi+ezLXuYfzUSY1lkEMS2Oz39K2z6/4q4MDeVKz4 4HqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=JTwySL2M; dkim=pass header.i=@codeaurora.org header.s=default header.b=Q3V3HR0G; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10si17640224pgw.90.2019.05.07.02.35.15; Tue, 07 May 2019 02:35:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=JTwySL2M; dkim=pass header.i=@codeaurora.org header.s=default header.b=Q3V3HR0G; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726452AbfEGJfG (ORCPT + 99 others); Tue, 7 May 2019 05:35:06 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:35134 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726286AbfEGJfG (ORCPT ); Tue, 7 May 2019 05:35:06 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 9EA5A60A44; Tue, 7 May 2019 09:35:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1557221704; bh=7K2V1Ddc4Z/m3cpGaaZI/ZeUDtHdniq8QxH66RWvYKI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=JTwySL2MxJhnSsphrzwbkr2srNkgQ6z5bfwEw01fNbht90LtHpD8NlxzUhrdZyRwH rDK8UWngDSyH52SVrKDS/GOuHnAisVS+iqIXmL970S+5rKqNO0b2dz+bO4BuEfWlCN aCe7HXVMPDgcOEtTQ42bZUqQ59LxS1k2yW4vk6/M= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from x230.qca.qualcomm.com (37-136-65-53.rev.dnainternet.fi [37.136.65.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id EDBDC6055D; Tue, 7 May 2019 09:35:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1557221703; bh=7K2V1Ddc4Z/m3cpGaaZI/ZeUDtHdniq8QxH66RWvYKI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Q3V3HR0Ga4X9jUurdGNmv2KfWD5tiLnu+7psiRUJZR2vUeC1Yj/O3yC6FHVpgSQtG PIMpanilxVAoHSuAXm+ModD98ilLLJMXpRXQllKuYlowdquR2/P1Zzrj2Mf5tBmZC4 XlpHRPMZ5sbAILrzSNosezkjESAigxxIH61GgmUE= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org EDBDC6055D Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Wen Gong Cc: Grant Grundler , Wen Gong , "linux-wireless\@vger.kernel.org" , "ath10k\@lists.infradead.org" , Ulf Hansson Subject: Re: [PATCH] ath10k: remove mmc_hw_reset while hif power down References: <1556417825-13713-1-git-send-email-wgong@codeaurora.org> <36950ff25c0747629e60ccb68819e93a@aptaiexm02f.ap.qualcomm.com> Date: Tue, 07 May 2019 12:34:59 +0300 In-Reply-To: <36950ff25c0747629e60ccb68819e93a@aptaiexm02f.ap.qualcomm.com> (Wen Gong's message of "Tue, 7 May 2019 05:05:21 +0000") Message-ID: <87pnour4jg.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org + Ulf to give comments from SDIO point of view Wen Gong writes: >> -----Original Message----- >> From: ath10k On Behalf Of Grant >> Grundler >> Sent: Saturday, May 4, 2019 2:01 AM >> To: Wen Gong >> Cc: linux-wireless@vger.kernel.org; ath10k@lists.infradead.org >> Subject: [EXT] Re: [PATCH] ath10k: remove mmc_hw_reset while hif power >> down >> >> [repeating comments I made in the gerrit review for Chrome OS : >> https://chromium- >> review.googlesource.com/c/chromiumos/third_party/kernel/+/1585667 >> ] >> >> On Sat, Apr 27, 2019 at 7:17 PM Wen Gong wrote: >> > >> > For sdio 3.0 chip, the clock will drop from 200M Hz to 50M Hz after load >> > ath10k driver, it is because mmc_hw_reset will reset the sdio's power, >> > then mmc will consider it as sdio 2.0 and drop the clock. >> >> Wen, >> 5468e784c0600551ca03263f5255a375c05f88e7 commit message gives >> reasons >> for adding the mmc_hw_reset() call. The commit message for removing >> gives different reason for removal. Both are good but second one is >> incomplete. >> >> The commit message for removal should ALSO explain why adding this >> call wasn't necessary in the first place OR move the call to a >> different code path. >> >> > Remove mmc_hw_reset will avoid the drop of clock. >> >> This commit message makes it clear the original patch introduced a new >> problem. But the original patch fixed a different problem and that >> this proposed change seems likely to re-introduce and the commit >> message should explain why that isn't true (or how the original was >> fixed differently) > > The mmc_hw_reset's effect depends on the hardware layout/configure > software's behavior, recently it will effect the clock of sdio for the > platform I used. And it will still work well without mmc_hw_reset for > the platform I Used currently. If sdio cannot work on other platform, > I think it can add flag in ath10k_hw_params_list for the platform to > call the mmc_hw_reset depends on the flag. I don't see how you can use ath10k_hw_params_list to separate SDIO controller functionality, I assume that's the real reason for difference of functionality? Maybe this is a bug on the SDIO controller? Ulf, what do you think? Any suggestions? Full discussion here: https://patchwork.kernel.org/patch/10920563/ -- Kalle Valo