Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753566AbeAOBNZ (ORCPT + 1 other); Sun, 14 Jan 2018 20:13:25 -0500 Received: from mail-io0-f170.google.com ([209.85.223.170]:35476 "EHLO mail-io0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753352AbeAOBNV (ORCPT ); Sun, 14 Jan 2018 20:13:21 -0500 X-Google-Smtp-Source: ACJfBouDb3zy9auy39dydeahsNfibmrru+gyV/OUkpVqCNrq0bIQTnYqZeYQ+yPe25bLDVVHpRKA+wCt9BEcoqTZrbM= MIME-Version: 1.0 In-Reply-To: <1515759368-16946-5-git-send-email-patrice.chotard@st.com> References: <1515759368-16946-1-git-send-email-patrice.chotard@st.com> <1515759368-16946-5-git-send-email-patrice.chotard@st.com> From: Linus Walleij Date: Mon, 15 Jan 2018 02:13:20 +0100 Message-ID: Subject: Re: [PATCH 04/14] mmc: mmci: Add STM32 variant To: Patrice CHOTARD Cc: Russell King , Ulf Hansson , Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Alexandre Torgue , linux-mmc , "linux-kernel@vger.kernel.org" , linux-clk , Linux ARM , linux-gpio@vger.kernel.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Andrea Merello Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Fri, Jan 12, 2018 at 1:15 PM, wrote: > From: Patrice Chotard > > STM32F4 and STM32F7 MCUs has a SDIO controller that looks like > an ARM pl810. PL180 you mean. Ulf can fix while applying. > This patch adds the STM32 variant so that mmci driver supports it. > > Signed-off-by: Andrea Merello > Signed-off-by: Patrice Chotard (...) > +static struct variant_data variant_stm32 = { > + .fifosize = 32 * 4, > + .fifohalfsize = 8 * 4, > + .clkreg = MCI_CLK_ENABLE, > + .clkreg_enable = MCI_ST_UX500_HWFCEN, If the asic designed derived this from ux500 I guess it is proper. > + .clkreg_8bit_bus_enable = MCI_ST_8BIT_BUS, > + .clkreg_neg_edge_enable = MCI_ST_UX500_NEG_EDGE, > + .datalength_bits = 24, > + .datactrl_mask_sdio = MCI_DPSM_ST_SDIOEN, > + .st_sdio = true, Did you test SDIO? I think we lack features for that. > + { > + .id = 0x00880180, > + .mask = 0x00ffffff, > + .data = &variant_stm32, > + }, Since ux500 was 480180 I wonder what variants 5,6,7 are... Reviewed-by: Linus Walleij Yours, Linus Walleij