Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4484603ybi; Mon, 3 Jun 2019 11:42:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyL+xPHN1ItxKx66z1UsUrt0fvr3bisKpPahxIosEG+2vJ7iU9KE1Y6jremI0/hgBY9GEae X-Received: by 2002:a63:445b:: with SMTP id t27mr7400416pgk.56.1559587340004; Mon, 03 Jun 2019 11:42:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559587339; cv=none; d=google.com; s=arc-20160816; b=yKYhujt6YT1Qv/ZGAs2+oEv0Whg8ovgCdIObKaP3/kiIKGy+RDfIBmsM6w0O24mQOs uaLcNGW1ZsQ6hRhjDbqIl/5VAxlRDKv8TQ9yjK/bnnl0uiADgzWnV/OmRvOwaIJVUqKC AG6zDPvnODoRxlpxfDSBBpTXJ2cDtrUufxfzNH2bTx2qCY/KUmRffNiMI+UMty+MvTJx bzxxX8b0Bmq6de9Xe1DqPG2Iq0A0CZJ21plo5hs5u6kQEh7d9zp4fNwgN/rpGaX1fsGH u+Y25cyXOAqayMQkufgTFki2eZpmPw3xo6lDY1bII5ZH10TwyA6D14hn2lsEjIBxcJO1 /wGQ== 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=VsSotgwA1nxU4EAySnnvJ5ZgB7iMM3DB2x56bZwTUg8=; b=KF9C58IkXQTEd+UDyuMslcLpossHNmzovfGgribgz1THQ40UGsVbfTYzOq/VAqcf8v FDG72rW8Gsk8JpAAkZ4LInG0F+6D2XhXnIVU9Js4qjNTSzQUjpDYgJbDvmGB+kw9nnIi UJodxcWYWPLtVJ2wSpp1waNkWpsnBv3F8xcjzfQCCl/Df8eK+bUtwJI04WKrjO6ryXd1 lm3+KnH+IrGGehS5xvhl9yr2QL/1LXTD6YaTOSwXl8cdi9uCzbSJtvKbF16yiLl2qdph D6rT7O/n/++8FWOv+vMMB/mmLxBWsS4Q1j3n9jKo6IO7DCOlCJkleiVMue33xFL4e1ar MD+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=a09cCL26; 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 a94si6959528pje.19.2019.06.03.11.42.04; Mon, 03 Jun 2019 11:42:19 -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=a09cCL26; 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 S1726693AbfFCSl7 (ORCPT + 99 others); Mon, 3 Jun 2019 14:41:59 -0400 Received: from mail-vs1-f65.google.com ([209.85.217.65]:43264 "EHLO mail-vs1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726663AbfFCSl6 (ORCPT ); Mon, 3 Jun 2019 14:41:58 -0400 Received: by mail-vs1-f65.google.com with SMTP id d128so11868172vsc.10 for ; Mon, 03 Jun 2019 11:41: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=VsSotgwA1nxU4EAySnnvJ5ZgB7iMM3DB2x56bZwTUg8=; b=a09cCL26+bNOhQdoUo4x1wwzRc4g9+ZUKrcQIliCV1lVo86BnM7yonXBOHs3n8ThUp tBeLLscjAUtngd30ZkAshMl1RND5mQUFk5hVmajXhWgn0Q6ATNrv0OJKmvUbmJLKJjZp 7PN3dXgD7aCNGHhYS/nSswGo8LZlcgEqVC4Fc= 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=VsSotgwA1nxU4EAySnnvJ5ZgB7iMM3DB2x56bZwTUg8=; b=fUgoU3d88pCR5491Cf7Z/mWlDFkyCkOpXWEUH+ix1gN9TQRBiuBlDRWccif0fdS319 xzO04APmovFynXLI1cMLJRI8bYMpj0/D2g1VQ+GAPFpC+i++lIGlQ0kr7BUhtWkKSDic 77sSuevIKJN26Ec75tguv8KkblEYp9CoSBC1f4KWlWIOYTD7/1eXkKkSa/0uNGiJa83W sjfvmLfHkjODZLj+zE6YeiNqpr27PM5TZ93DGKIFt4AbO4zLLNi9KM65+27b7Um/LMsO Rh/uKg8PMaztcyddWcVfW6PQ1/YJOLFgM7qjUAF8lMCckzTrxA7wEc/Ve4G5Pcs6cHMG vyjw== X-Gm-Message-State: APjAAAWM8Ks0XImChGhTRazggdiGuPsYu+XZvs+nbhxTvSo6PP05JCIb qxCeo6hT0PaQfSfQtOceUcooe1mPqDs= X-Received: by 2002:a67:e9ca:: with SMTP id q10mr1840484vso.105.1559587317645; Mon, 03 Jun 2019 11:41:57 -0700 (PDT) Received: from mail-vs1-f44.google.com (mail-vs1-f44.google.com. [209.85.217.44]) by smtp.gmail.com with ESMTPSA id h13sm3766596vke.50.2019.06.03.11.41.55 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 03 Jun 2019 11:41:55 -0700 (PDT) Received: by mail-vs1-f44.google.com with SMTP id q64so2241489vsd.1 for ; Mon, 03 Jun 2019 11:41:55 -0700 (PDT) X-Received: by 2002:a67:ec5a:: with SMTP id z26mr9662027vso.144.1559587314889; Mon, 03 Jun 2019 11:41:54 -0700 (PDT) MIME-Version: 1.0 References: <20190429204040.18725-1-dianders@chromium.org> In-Reply-To: From: Doug Anderson Date: Mon, 3 Jun 2019 11:41:42 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] mmc: dw_mmc: Disable SDIO interrupts while suspended to fix suspend/resume To: Ulf Hansson Cc: Jaehoon Chung , Shawn Lin , Kalle Valo , Heiko Stuebner , "open list:ARM/Rockchip SoC..." , Guenter Roeck , Brian Norris , linux-wireless , Sonny Rao , Emil Renner Berthing , Matthias Kaehlcke , Ryan Case , "# 4.0+" , "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List 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 Ulf, On Tue, May 28, 2019 at 3:49 PM Doug Anderson wrote: > > > 1) As kind of stated above, did you consider a solution where the core > > simply disables the SDIO IRQ in case it isn't enabled for system > > wakeup? In this way all host drivers would benefit. > > I can give it a shot if you can give me a bunch of specific advice, > but I only have access to a few devices doing anything with SDIO and > they are all using Marvell or Broadcom on dw_mmc. > > In general I have no idea how SDIO wakeup (plumbed through the SD > controller) would work. As per below the only way I've seen it done > is totally out-of-band. ...and actually, I'm not sure I've actually > ever seen even the out of band stuff truly work on a system myself. > It's always been one of those "we should support wake on WiFi" but > never made it all the way to implementation. In any case, if there > are examples of people plumbing wakeup through the SD controller I'd > need to figure out how to not break them. Just doing a solution for > dw_mmc means I don't have to worry about this since dw_mmc definitely > doesn't support SDIO wakeup. > > Maybe one way to get a more generic solution is if you had an idea for > a patch that would work for many host controllers then you could post > it and I could test to confirm that it's happy on dw_mmc? ...similar > to when you switched dw_mmc away from the old kthread-based SDIO > stuff? Unless you have time to help dig into all the possibilities here to help understand how this should behave across all the different host controllers / wakeup setups, maybe we could just land ${SUBJECT} patch for now and when there is more clarity we can revisit? Thanks! -Doug