Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1060891pxj; Fri, 21 May 2021 05:40:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzr11QwIJhjjzkdRt/i9LLsXaeHsNICqIckro3FIPK8bZraNpX5pNlI5j715dJCMX7b5xqN X-Received: by 2002:a92:700a:: with SMTP id l10mr11267160ilc.44.1621600850459; Fri, 21 May 2021 05:40:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621600850; cv=none; d=google.com; s=arc-20160816; b=mbYfifZo/phBJ2d9VMpgjBXc62Doev/ddX64QSHVM5rmqM1/wBoFt7cFAYwMveLzyy 3/nMimkjdpmx601ejGs+Zka0YoivrU/7yJakIL9VFVzT7NhPT8UNetdlB85oaV67Dlmq IYSrYGRiytLHXsMNwBOsBovmhdWRUe2+3P/H+HHcs/VcNU3+JOYkP27VCmR5c5+o1t3Y o/ZnVaOzMco1XFNpE/icbTDYn4kyQb13UyAMiywpFPrZljiouo0hfn8YA0771sKTjjOz Ne8QVloti//we9xgoOTSeZSSdhZFEFGPHb9+T8StX6XOm0o9QTv+mCB4Vu5+n5PdZg0g QwGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=NUqGCt9taRX6PyEnCOKnq8JQtI9Kwhdrem2iqtGlg4M=; b=xE9c/UtbGO2M0PWUIIHOkhXURBsXsBLFWNzUXb2hwnhMdBwMSivKXSkJN3rBe19VLC G/E3ua87aIfBAl9xDFuyJX5pk2X8ClmctoL/dEcs08s4tkRl0CwBr4JsROM4mItzds97 0ZeduNyD/IZkwyDQRJq8OkSJj8O4nndnjdV/3fCay0jeUkbDSNSD6FDCr9+g1BeRaBei 36Ma22HXmCFuJ8gSyKvE2zFjsCP/3jCN5OhidNIYwgLtOsF2IVUwd5UgF+7v7TmR96dc X+HHUa9hic8C9X6uBot8VHqb4MpPnnWg+/JpJZg2XDEouml88H2DoKHmEw/Qg62BtLDu nrPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SEFLuS1U; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s13si5163468iow.103.2021.05.21.05.40.32; Fri, 21 May 2021 05:40:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SEFLuS1U; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231895AbhEULq6 (ORCPT + 99 others); Fri, 21 May 2021 07:46:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232483AbhEULqu (ORCPT ); Fri, 21 May 2021 07:46:50 -0400 Received: from mail-vs1-xe36.google.com (mail-vs1-xe36.google.com [IPv6:2607:f8b0:4864:20::e36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 680F2C061574 for ; Fri, 21 May 2021 04:45:26 -0700 (PDT) Received: by mail-vs1-xe36.google.com with SMTP id i29so4477633vsr.11 for ; Fri, 21 May 2021 04:45:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NUqGCt9taRX6PyEnCOKnq8JQtI9Kwhdrem2iqtGlg4M=; b=SEFLuS1U5hYfqoREJO9tqK/ELftITohb7vG9Rqh9wGAg2GLCH58O5w4LCOaj4bbdIp fovJ63xJvf5iFZkjZ5Sc1kElYZgh7lxj5JY7B6hPRr0ctKOIrlkgZ0SPjAREyElrdGjb Z07q8VzmoR6FkLFTAINS0ivPgHKDzLhQY1Dd5TaBZDSJZDCBysj8qFv/Jdyr7jrVren3 r9MVYYGStKITeyaOpHUUV+l5fcs5EiuUVTj/ZAqh18OjKZgNuoKj/85K7Xp2FQMaQkml U9nEPvPHB/BJxFXH7zhTF6EpvoCJMLsxVNWDmcC/lEaRmg5DxOwvLjl2VZZr0AWb1BeL EL9A== 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=NUqGCt9taRX6PyEnCOKnq8JQtI9Kwhdrem2iqtGlg4M=; b=dHVIz7E9C54/QCb0AUA1sVaZtMelyRlRltXHOLp/GUyLVKqwrKrUrZxVqyduHOm5ey nqkSyGOeRQ4XOY5Sqd1gG3uySTkdM2h+xlpJVp/P+zAHAljx+uYMRJEv2euflVdAwd+k 6i+s9i0MVFxvlisIEKEwIzDldYN0+mUgf/uYq1BpJOV1U2NvsDOLfUumkuHwFp6yS3W0 H3h/unL8oHL+H7mM8phT6UTtmFFG/zUu/bg4zDjERXwe+FLklyUGfYKoQrhqoH+pNFjN 8blI+yjZ2FW5rjYbFteKJtbaLsA7crC0z9IJYDUlCsOo3eQwzr5Lws3umiubLb4vB0Pi bjjA== X-Gm-Message-State: AOAM533Ki8dx6wC++Ei/ezdVKT2nZdVN9V7C5AO1yF9j0TrDrgzfnCFy XdUvEIGOTZ+sReXdh3Dy6xEaWUxE6CSGTXGQG/zSQQ== X-Received: by 2002:a05:6102:7d5:: with SMTP id y21mr9553392vsg.19.1621597525574; Fri, 21 May 2021 04:45:25 -0700 (PDT) MIME-Version: 1.0 References: <20210509224226.348127-1-linus.walleij@linaro.org> <30a7bbeb-d588-4780-bd6c-d99f72898138@broadcom.com> In-Reply-To: From: Ulf Hansson Date: Fri, 21 May 2021 13:44:49 +0200 Message-ID: Subject: Re: [PATCH] brcmfmac: Obtain reset GPIO To: Linus Walleij Cc: Arend van Spriel , Arend van Spriel , Franky Lin , Hante Meuleman , Chi-hsien Lin , Wright Feng , Chung-hsien Hsu , linux-wireless Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Thu, 20 May 2021 at 01:41, Linus Walleij wrote: > > On Tue, May 11, 2021 at 10:48 AM Ulf Hansson wrote: > > > I think this boils down to that to allow the mmc core to detect and > > initialize the SDIO card, it needs to manage potential reset pins as > > well. > > > > In cases when the SDIO func driver may need to execute a reset, the > > mmc core provides two APIs, mmc_hw|sw_reset(). > > > > Does this make sense to you? > > I think so, in this case (Samsung Janice on Ux500) the boot loader > desserts reset so we are fine, but I think it should be utilized properly > somehow, the vendor went to lots of trouble to put this reset line > there physically. > > What is my next step? :D Have a look at the mmc-pwrseq simple DT bindings. Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.yaml If things are as simple as I hope/think, all you should need to do is to add a mmc-pwrseq node where you specify the GPIO reset line. Then from the mmc controller node, just add a phandle to the mmc-pwrseq node and things should just work. :-) git grep mmc-pwrseq should give you a bunch of references of existing users. Kind regards Uffe