From nobody Wed Dec 08 12:29:13 2021 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 22C7018C866C for ; Wed, 8 Dec 2021 12:29:25 +0000 (UTC) (envelope-from wma@semihalf.com) Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J8Ggm70WGz3PNh for ; Wed, 8 Dec 2021 12:29:24 +0000 (UTC) (envelope-from wma@semihalf.com) Received: by mail-yb1-xb30.google.com with SMTP id d10so5629437ybe.3 for ; Wed, 08 Dec 2021 04:29:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4zF4++3jN5rj2/1mC21lqHTwQwEx1WQvJo7O/fPeG0E=; b=Wmsa13AxQ/gmY7iTwupVLxC/HO9C5tBJ7vJhmcOMYHrGhVR4Q83JpWlbG9TEpL10eL gvOPtOn38IzPVhNEPhjNzKd+dEfnbD2nDf7lD/EB1At4SBGGr8cavG7J/cIjnqmmCFnS M4eOKlPSrjlrVN4wkEoCiiTOc35Z3ZIaSMgectlqzimkhb2RPL8z2GluGFWR82lHSXOx FZFSfwcIuWKbdE+ObMDBPTDSZaPoWe7bKAOANIbts6NUQrXwpkQeAb+OR5TvIay+9ftG zFlZHdddGpa7cNDx/hj/puKv8wCVF01iC+r4soaqLmPzMUN5ub9nDJApJ31kcYe0tEoj DnCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4zF4++3jN5rj2/1mC21lqHTwQwEx1WQvJo7O/fPeG0E=; b=sS7RMr5XR7j9yyIDL+dkLa+992/3Z20KFZ4jTAcUWAyBNeuvMhbqxYLF2Tc5BY/peN DjojLf/oUgszkveFybIlTZtjEfDydrBR8UAGNnO5DwZLGUuyiKWV9gSOJN9K3Y+pB2fg i0AHmtRlv1Sk8xB0+LYfEHyNRAKXi11X0Sl8MNMUYbOT/7gkU+GSjGxIEuqQFqy3QVFr V6iBAC5RIQd92EO3nSUxhUp/o8w7vWmC9QkFz1u6eJ8OuIOf6IqO1cdv2BpFlocIqCBU gkUlNEu39te50WqqCKuXWDStUE6kDgM7cqcy7oURFI4Gc9wTIVm4pCv8AL/5osPjkB4I eGZQ== X-Gm-Message-State: AOAM533RKcPzvpdYOjOnRaSBQgtwqe3iu4ZlGMdCE/WPPbHn0OTzQZSq iywbT2cW5q7VU8eNX79IEVja26OGNUFD1FVxs3KtlQ== X-Google-Smtp-Source: ABdhPJwng+8go6jMObg6LgqDTIQZau29VTD/xQ5UqUNJSVk1a4VNGHGG89NP0XpqueezxWTNarZkE0q6K2ptvyX59PE= X-Received: by 2002:a25:e746:: with SMTP id e67mr57765271ybh.476.1638966564447; Wed, 08 Dec 2021 04:29:24 -0800 (PST) List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 References: <202112081021.1B8ALYH0041586@gitrepo.freebsd.org> <20211208113328.295de39f3c1b976d5c07531f@bidouilliste.com> In-Reply-To: <20211208113328.295de39f3c1b976d5c07531f@bidouilliste.com> From: Wojciech Macek Date: Wed, 8 Dec 2021 13:29:13 +0100 Message-ID: Subject: Re: git: de9c000cedfe - main - sdhci_fsl_fdt: Add support for HS200/HS400 modes To: Emmanuel Vadot Cc: Wojciech Macek , src-committers , dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Content-Type: multipart/alternative; boundary="000000000000df7ea905d2a1a36e" X-Rspamd-Queue-Id: 4J8Ggm70WGz3PNh X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N --000000000000df7ea905d2a1a36e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ah, sorry, I thought this one was ready as well. Please let me know if you think sth needs to be changed, we'll do a follow up then Wojtek =C5=9Br., 8 gru 2021 o 11:33 Emmanuel Vadot napisa= =C5=82(a): > On Wed, 8 Dec 2021 10:21:34 GMT > Wojciech Macek wrote: > > > The branch main has been updated by wma: > > > > URL: > https://cgit.FreeBSD.org/src/commit/?id=3Dde9c000cedfe77c6da4929178fee571= b1fd0cc80 > > > > commit de9c000cedfe77c6da4929178fee571b1fd0cc80 > > Author: Hubert Mazur > > AuthorDate: 2021-11-03 09:38:05 +0000 > > Commit: Wojciech Macek > > CommitDate: 2021-12-08 10:21:02 +0000 > > > > sdhci_fsl_fdt: Add support for HS200/HS400 modes > > > > The controller requires some custom logic to perform MMC tuning > > and to later switch to HS400 mode. Implement it supplying mmcbr_tun= e > > and sdhci_set_uhs_timing devmethods respectivly. Since the latter > > is called unconditionally when the ios is updated we need to keep > > track of the tuning state in sc and execute the HS400 switch logic > > only when required. > > > > Two HS200/HS400 related errata were implemented. > > 1. In HS400 modes the clock divisors are limited to 4, 8, 12. > > Apply it by falling back to the closes, higher divider when > needed. > > 2. Hardware tuning procedure can sometimes fails. If that is the ca= se > > fallback to the software tuning. > > > > Reviewed by: manu, mw > > I did not review that one, it's way larger than the other ones so I > wanted to have a look later. > > > Obtained from: Semihalf > > Sponsored by: Alstom Group > > Differential revision: https://reviews.freebsd.org/D33320 > > > -- > Emmanuel Vadot > --000000000000df7ea905d2a1a36e--