Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2648939pxb; Fri, 5 Nov 2021 02:12:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoxGPjOCJnNNJMmXAAOwMDn3Kj0dlMeef4dW/dyfz7dFpEVsPgwKHz34iXNodIp+nGhMYV X-Received: by 2002:a05:6e02:218b:: with SMTP id j11mr27964023ila.264.1636103577197; Fri, 05 Nov 2021 02:12:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636103577; cv=none; d=google.com; s=arc-20160816; b=z1IEKeI0VtOaMePSERL3uOSOifzC1kVX8WuckqAMV7q1hwtW2Uy1qW4Abxlod9jxYU JY3FbnQCepyJVUR7um0q2/VzRCYmiOJ87g0meIyeqIu1+sSsrXKKR+fKu68tVge177Du WuDrYEJVQQh4SrrttQFsXkw4H2spaF2LU/1lMUtN6SB034OCvzZ/ON4TWpLSw7V+uxOc wxCPcQ5sXU9pPtlGlYSvRoif/adbqdYdThqVMlJ0lCDPWNpZ6XmPXNR/PcRbdDXRLVbG aZeKv8JoJX1bKJgRBUTLtqtKgcmM3O1dTQO1JGZ2e9oIYPDtzpVyy+bWDVwDOoadF98z vBJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=e7xfcz9krTQc9FROwiWEKD4HCySxX7lxf7ekiUwaVrw=; b=Fw981rZyve++l2fjh6BlgPbA0dEBhI6wKimIkmfXcwScNjJnorptB4XQB9VTxhxDel lYFhZT2Q/30faMojdW+WaP3A3iPDBQFnF1P1snKwJ2aQ9/llY7MlySARRlVLulKdMflS 85xiYyIVNSR+XUFKzJiP7AEVmWXu9XEbqnAhtrZy1SPTRLII+h8rBUqmupZW7yj0obQX 60FjUPhSPQ934CR8cQUVtBUBgblqgEqhhPekEMKOC88Kdwlmrf3eY2/9EF+agaovFYoh tWrj1IPT/GJSF4EyePumH1NpI+4hEuWX0EXxaSh8xIrfe9y3AO+93R94wbzNJwWoh6mX usHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b=Jkvl5x8i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g1si6395482jat.50.2021.11.05.02.12.44; Fri, 05 Nov 2021 02:12:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@goldelico.com header.s=strato-dkim-0002 header.b=Jkvl5x8i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232890AbhKEJJD (ORCPT + 99 others); Fri, 5 Nov 2021 05:09:03 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.51]:16169 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232836AbhKEJIy (ORCPT ); Fri, 5 Nov 2021 05:08:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1636103152; s=strato-dkim-0002; d=goldelico.com; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=e7xfcz9krTQc9FROwiWEKD4HCySxX7lxf7ekiUwaVrw=; b=Jkvl5x8i7dqbmqyMRflT2LmzPr+cIJR4zPc6R1lyKj9RQdovrPIdnVxTR7bdAMQ14b I+EZO/FWuNLQQI0KvOG69CUPfS/HtCzY8YMI1ZsCEiyHIfaVMDdJtBGenAUs+iM/r0++ 6yPiWiCvnEr0wHMIe3+LRSmi53yN2+NxFA/R+5ZrpdUW74Fe9v++5RVx+UO0UeSBssjr 4UhFWEK1nhTVAVk8a8ahGP0Jfz21yThvdMZWcYnL21tFKWSJbD83tZ4JY6CUgkGmZ5ux v+Riki0ucnIEkatTHFE854gJU7mefdsuS4vzqQrY/VF/K2NMorCJ5TnW1SIIk9ktJa1K fpHw== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMhflhwDubTJ9o12DNOsPj0lByOdfL1X0" X-RZG-CLASS-ID: mo00 Received: from iMac.fritz.box by smtp.strato.de (RZmta 47.34.1 DYNA|AUTH) with ESMTPSA id 902c63xA595q8uI (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Fri, 5 Nov 2021 10:05:52 +0100 (CET) From: "H. Nikolaus Schaller" To: Ulf Hansson , =?UTF-8?q?J=C3=A9r=C3=B4me=20Pouiller?= , Avri Altman , Shawn Lin , Linus Walleij , Tony Lindgren , Bean Huo Cc: notasas@gmail.com, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, letux-kernel@openphoenux.org, kernel@pyra-handheld.com, "H. Nikolaus Schaller" Subject: [RFC v4 0/6] mmc: core: extend mmc_fixup_device and transplant ti,wl1251 quirks from to be retired omap_hsmmc Date: Fri, 5 Nov 2021 10:05:45 +0100 Message-Id: X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RFC V4 2021-11-05 10:05:51: * remove const from char *const * (Ulf Hansson ) * use for_each_child_of_node() to scan compatible children (Ulf Hansson ) (see: https://lore.kernel.org/lkml/CAPDyKFpr0kpRXoUACNNSwe8pL1S9wJPjnX+GFGS1PNezKCDYzQ@mail.gmail.com/) RFC V3 2021-11-03 14:00:13: * patches have been split into smaller ones a little further * propose a new macro for setup of device tree compatible quirks * directly include patches by jerome.pouiller@silabs.com in this series RFC V2 2021-11-01 10:24:26: * reworked to not misuse mmc_select_card() but add a call to mmc_fixup_device() right after where host->ops->init_card was called before to apply the wl1251 specific quirks. Device tree matching is done by a new table passed to mmc_fixup_device(). suggested by: ulf.hansson@linaro.org based on patches by: jerome.pouiller@silabs.com RFC V1 2021-10-06 13:24:13: H. Nikolaus Schaller (4): mmc: core: provide macro and table to match the device tree to apply quirks mmc: core: add new calls to mmc_fixup_device(sdio_card_init_methods) mmc: core: transplant ti,wl1251 quirks from to be retired omap_hsmmc mmc: host: omap_hsmmc: revert special init for wl1251 Jérôme Pouiller (2): mmc: core: rewrite mmc_fixup_device() mmc: core: allow to match the device tree to apply quirks drivers/mmc/core/card.h | 37 +++++++++++++++++++ drivers/mmc/core/mmc.c | 1 + drivers/mmc/core/quirks.h | 69 ++++++++++++++++++++++++++--------- drivers/mmc/core/sd.c | 2 + drivers/mmc/core/sdio.c | 1 + drivers/mmc/host/omap_hsmmc.c | 36 ------------------ 6 files changed, 93 insertions(+), 53 deletions(-) -- 2.33.0