Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp62785imm; Mon, 1 Oct 2018 06:44:27 -0700 (PDT) X-Google-Smtp-Source: ACcGV62RJ1wD5KhlF9t0KPOuXeuxwTXMLqYYqBgLjWJoj9W5Ga9sIjzIX+WUwJiBmgB7Gx/gS234 X-Received: by 2002:a62:6cc4:: with SMTP id h187-v6mr11752526pfc.158.1538401467822; Mon, 01 Oct 2018 06:44:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538401467; cv=none; d=google.com; s=arc-20160816; b=FKbbH7yGcHMKat6PI9sI6Dd1uaIOB85eUMCHYVEJvfrsMUyF+L9QBkv5+iYzqVE2bu r3PbII71xhcaucIIk/pzsBv4kdArKh8cxosp50v+fqfVQTY5dDo9nL0KJzpmMMUJNGEQ SXKvs+NSBcWk4p7NkEGUaFYwIXqdFW17dq4bI0H+YGsuvBnzgFZObgC7aJf6mI4ig8t8 87ewkbpFFvo7C8DV4QxYEQpRZryJ8M3CTjzLICQ73qxps2YcJu9p6r5SyXs7nYe0mksi 8Q9Xy0QPneRdOF/PlPSF5HLhy/up2YLwsbAV6lHttF9Wmhc/IkJsNsdXgEmUyhLWnka/ t/Bg== 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 :references:in-reply-to:mime-version:dkim-signature; bh=pGlkwmjfzHbZyX21EsofoTjiqbi4kJWg5ee3EVtewwI=; b=W8hcfBQAtaxFdBpxprTFS3Uw1jUXoE0azk9ezfmKL1CH5Ozab+cuTnDt2ZBXRG5bpA T/foGCZRJk5U7vNbfZTgjU3V/YWr7C6jEpDldXScOwfeo7bCVXwhjWYNap6aRlNHL3gy E6E2f9r6l30C43VMwIaOXgCuq0Ra1sjJkZFyWJNyr5PdUkIEw4ntyGzNdFJ0L9JPtXIW mvW8hqdj6YI/4Vt7C2u52WvR+Rrn5IWqsl6xzTWeIpasxjKAUbHcz6APzzt31SA4SLj5 DCT0UBVOYvlxSskO/h9seSzVKlCN8i4uny1x68q9F2UXNwd4acJmxx/kHtY95dIOFGKI xSFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RoUz13x4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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. [209.132.180.67]) by mx.google.com with ESMTP id z31-v6si12182683pgl.123.2018.10.01.06.44.12; Mon, 01 Oct 2018 06:44:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@linaro.org header.s=google header.b=RoUz13x4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1729352AbeJAUVm (ORCPT + 99 others); Mon, 1 Oct 2018 16:21:42 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:45308 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729289AbeJAUVl (ORCPT ); Mon, 1 Oct 2018 16:21:41 -0400 Received: by mail-io1-f66.google.com with SMTP id e12-v6so9380644iok.12 for ; Mon, 01 Oct 2018 06:43:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=pGlkwmjfzHbZyX21EsofoTjiqbi4kJWg5ee3EVtewwI=; b=RoUz13x4hSrTTxLjRD9GucRRrjgcD72AT0uaOx4qmdTdVG8ARdR4i1TGu+rGgAOV1M s5xil6WhCrPR134w6RP5ZEMj7rIXZPaS67jKNRmaPjLzx/69egdzCYMpea5zX1rUqSVX +UPPBMgtJIiYhNnHQMhMgQmV8oL/B9VSHWdgQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=pGlkwmjfzHbZyX21EsofoTjiqbi4kJWg5ee3EVtewwI=; b=RhvCvAyfG+TMiP5oidpwYNCBITcVTEfBtH6/KhAJVToAGhDlXE5I6JbiQ9kmq6Rfcb L3QTa+JxOw+n0QK3UDoNDCZjAXFED0Rgnry2u57LWLUZc//R+oZFn0NGCVxmqq0BvNoV e5Z3+/05Plj7bRfJncXH2nXt2yE3G2NhzF0txgVfph9Z8wMMPtjiN6OjNOvnWu7s6K8h OQFNrTQtiv+YInJeM1qnqNBA2lb8cKUtYtWM8gcButyhjaucd+yitgznYciKLTiSC51c zby387snW/KzEU3cfjFLMK0WpOAae3h3drVP3kYeWLCTInaXE596i4onhqqRpId8jwZI S8ig== X-Gm-Message-State: ABuFfoisyFEH2c9WqdLXN/bUB6f472BoixpCQ8vUkcOwSZ76GxigrrnN rC4p2HOUMzKJlFrXVeFqyIIUZWKKMSINHjZaZFI1FQ== X-Received: by 2002:a6b:9cc8:: with SMTP id f191-v6mr7388234ioe.266.1538401428380; Mon, 01 Oct 2018 06:43:48 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:3941:0:0:0:0:0 with HTTP; Mon, 1 Oct 2018 06:43:07 -0700 (PDT) In-Reply-To: References: <1537523181-14578-1-git-send-email-ludovic.Barre@st.com> <1537523181-14578-24-git-send-email-ludovic.Barre@st.com> From: Ulf Hansson Date: Mon, 1 Oct 2018 15:43:07 +0200 Message-ID: Subject: Re: [PATCH V2 23/27] mmc: mmci: add variant property to request a reset To: Ludovic BARRE Cc: Rob Herring , Maxime Coquelin , Alexandre Torgue , Benjamin Gaignard , Gerald Baeza , Loic Pallardy , Linux ARM , Linux Kernel Mailing List , DTML , "linux-mmc@vger.kernel.org" , linux-stm32@st-md-mailman.stormreply.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [...] >>> @@ -1854,6 +1855,14 @@ static int mmci_probe(struct amba_device *dev, >>> >>> dev_dbg(mmc_dev(mmc), "clocking block at %u Hz\n", mmc->f_max); >>> >>> + if (variant->reset) { >>> + host->rst = devm_reset_control_get_exclusive(&dev->dev, >>> NULL); >> >> >> As suggested, let's make this optional and not depending on the variant. > > > I done like that because is required for my variant (if no reset, no power > cycle for sdmmc). The point is, I think don't think it's correct to ties this to the variant, but rather I think it depends on the behavior of the SoC. > > If you prefer, I could move to optional with > "devm_reset_control_get_optional_exclusive" > And I add a comment in mmci dt binding to specify that not optional > for sdmmc. (see above) Alright, fair enough. Let' do that. [...] Kind regards Uffe