Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3607962ybi; Tue, 18 Jun 2019 03:42:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOiLxhHrwqpOP5bN37LPye00Sg/WFn1GOUR1TmGAlBNpHDz2tqFFLzDa990jHxazZkgq6N X-Received: by 2002:aa7:9514:: with SMTP id b20mr12917587pfp.223.1560854556734; Tue, 18 Jun 2019 03:42:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560854556; cv=none; d=google.com; s=arc-20160816; b=fqb4X8y0moKEP5rDhNdl7X89Z4tJYOB90wW/E7lFEjwY+J61zIOyDyoPxZ1/mR+Y8d 1TPUvA2vN5L8TIu1AZiqKJWJ8FnpNP4n6/fZhDZKtVdXiUHUEuSfPxR5Oqzxp0OQn/+g lTpZp+3X15Ba6Vll+VNR0DaGiKx4hrea6K5H13quexX7LzXCJ0AEdkvEN9GQ86JZzozW K6Ylb8QfJB2tSb14bXjUJABhznsf2fJ/MZsyAqV6cEXUIeTvom0xDmnW/Sx98p5/TQlh FT4dtNZbMnOfDbvaK1u9JAjo3HwT//J+81uZmVyO/eJt0d6D3bY2cxBjRho2ettdQUsK Tp6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=QUjvDqJpac2tWAcPmVihCXHdjeBt4L6Xc+eSlRSPug0=; b=RMXXr3vUr2b/Uhl02NVVuN3Izk4qfKxzuC5yRZErQRCoiv0obRVNYL4N777gfpy9/v DBOxO96F1BsGV98UaV+9lP2VZ1O5F4jXsX73phuDjG6UDvfRBo+nThuow/Z+U5qkLqU8 sOePmdT4RPNcdnmpgoTvqzeWSINnL2rAKrcwvb0Y/+02HmxyX3V8TCFd8j/KEUOQFWGi +/BA6JGRwznaqmtpI+4/XP/sfK3zJDQpiNTtl8wl8VITUTo45ERTd0hkWH8CqOvPoJZf yUShQwUCjsl3SOkci8+jriuvJNIbgupgN3/LUzr44Y7jtt8h8vEBzXZnmGb+2yhQODAk hexA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="ftTL5A/2"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k24si40755pll.257.2019.06.18.03.42.09; Tue, 18 Jun 2019 03:42:36 -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=@chromium.org header.s=google header.b="ftTL5A/2"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729425AbfFRKj6 (ORCPT + 99 others); Tue, 18 Jun 2019 06:39:58 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:35384 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbfFRKj6 (ORCPT ); Tue, 18 Jun 2019 06:39:58 -0400 Received: by mail-qk1-f195.google.com with SMTP id l128so8197607qke.2 for ; Tue, 18 Jun 2019 03:39:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QUjvDqJpac2tWAcPmVihCXHdjeBt4L6Xc+eSlRSPug0=; b=ftTL5A/2Ms+voYrgMwb0dpQCUamHvrh22tvxMVuC9NnC3JtDe3uVt5r2uGu92c3lVy tcdup6uFgVItOwnTjFZSAmXhKsGUm1pW8QvHu5JBkAmG8vtDJDIs+7Qgy7qKiWxmhexW 6tzVtilLa+4W5twTAqf+LoZoKU+0mkkuLRsdY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QUjvDqJpac2tWAcPmVihCXHdjeBt4L6Xc+eSlRSPug0=; b=j8xG69m/fcJVQ6fX/Pb1ScVwMwgoA4dInoaVN04yI+5K+AL5YfRlMV6qzjDRH40eRx NOLZ2qPN63ol+Tj3GZRMW/G0L7VI7AOE8hHSGPYsA//6Fd/PgQaiFwkhvFem6MN+eLTt raz3bfsPVMLSkt7qLJbTTz4pE7BXgLKQK1a2jCQV+b3W7UZb9efjFrazB4vETT5esL3c iYT+NhGd/ahcFfqYJ2uX+zyPD3dlTVS/9BTpwFTsxWi7f/dbPsiMnLcUCcsBgCNay4je F1N/86Gea2TTWj4JOGoGXzhHrW4+wE+eaPcGcIaCHCEfmJgLHHdngJF4i7d5YphQplJB XUmA== X-Gm-Message-State: APjAAAWXiXzFWSFBT/w8BH0C6YtYcTDsOcisqA9YPLTT7AkVWBOCKDjH G2uu+Uc13llUISUSNyFcis74C5foSqv45FJ/QR6Tiw== X-Received: by 2002:a37:a244:: with SMTP id l65mr76059118qke.118.1560854397557; Tue, 18 Jun 2019 03:39:57 -0700 (PDT) MIME-Version: 1.0 References: <1556417825-13713-1-git-send-email-wgong@codeaurora.org> <36950ff25c0747629e60ccb68819e93a@aptaiexm02f.ap.qualcomm.com> <87pnour4jg.fsf@codeaurora.org> In-Reply-To: From: Nicolas Boichat Date: Tue, 18 Jun 2019 19:39:46 +0900 Message-ID: Subject: Re: [PATCH] ath10k: remove mmc_hw_reset while hif power down To: Ulf Hansson Cc: Kalle Valo , Wen Gong , Grant Grundler , Wen Gong , "linux-wireless@vger.kernel.org" , "ath10k@lists.infradead.org" , Claire Chang Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, May 28, 2019 at 9:46 PM Ulf Hansson wrote: [snip] > > In the end, it seems like this needs a more detailed debug study, to > figure out what exactly happens during the re-initialization of the > SDIO card, rather than just papering over the problem by removing the > call to mmc_hw_reset() in the SDIO func driver. Hope this helps. To close the loop on this, we fixed this on the platform by driving a reset/enable pin during reset: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1657506 (device tree for this device is not upstream yet). The problem has to do with the fact that on re-init (without power cycle or reset/enable pin cycling), the device still sets S18A=1 in CMD5 response (that's incorrect, the device should set S18A=0 if it's already using 1.8V), so the host tries to switch voltage using CMD11, which fails, as the device is already in 1.8V mode (that's correct according to the specs). Thanks, > > Kind regards > Uffe