Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1381101pxb; Thu, 28 Oct 2021 02:35:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8RVLxe3KvCjRrKdBXpKnuwT9uJIkSEMWxzIZR7AZiKoNJIYIZtFRkZWW16MPBt/3hbON4 X-Received: by 2002:a50:9b07:: with SMTP id o7mr4647785edi.104.1635413701684; Thu, 28 Oct 2021 02:35:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635413701; cv=none; d=google.com; s=arc-20160816; b=cjQv67gf6ldFcOtuWbmEIoiCLx8OV7Oc1G1moNBk+oK5FwA0RymlDjcfhvGc56dQEJ uRd9y6ieWRcTjXH1xcHdUBUZkq9jR8vhC1TzxgLIS0eVKMzYZ8mxaPCqz5m4l7Mb/CjG 1xb168e66PYH9wFZ+xTTpqVfEINF7+IFNlsPh9gVH7W6zyu51lsizRjf0jPaLLU576g/ 4wwM4VpXJzOs9WL0tmyP2bvUq1SovQooiu5skE4Lt02tCcbwvsAdzKBczv0x3LvDg4MJ Q3cLV3jmo8VZELtmS6HbFlEDmzl5ax+Q1IFeRI5eRQOD/dFjfzXLuTcW6uL/8iDkj9IH VGYQ== 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=H1cBbZ29iBhIzlADanMboqR5PTvmcX6f2VNyLE4w9Tk=; b=jGmLvPo0BXDYWWdtT1XCYFdeSvymX+jo40tmWm2ifESk/XnhPVLPnkvQ+gMNx1mc3q 0QOyeakX30V0SX4EMkrZKA0uAd4xw22+jBzl8Cg20zNdpUcC9CRqASkys0nJPObjRyim LJWKMCONxZQq64OPl05bOQcEWLMoWg+7EllzqMXDW+E/2yDp1iZR/774YPyy/JskIvn/ qhyWm+2hFvebXkk3hAQEH8XbovWA1WbawJYf9pdSW+L8aSVlnek30cMG+ZmTjuAM7ysX z3AOgT5TEtlxlYO32fsMIcqDeFG/vvqbnaCZUr/AErzgM4EZ0AkDvb8C7J4/Hm1ulcEU ZOWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZF8RwgiR; 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; 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 s24si755438edw.373.2021.10.28.02.34.35; Thu, 28 Oct 2021 02:35:01 -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=@linaro.org header.s=google header.b=ZF8RwgiR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230088AbhJ1Jet (ORCPT + 99 others); Thu, 28 Oct 2021 05:34:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229877AbhJ1Jer (ORCPT ); Thu, 28 Oct 2021 05:34:47 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 854DEC061570 for ; Thu, 28 Oct 2021 02:32:20 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id d23so8243593ljj.10 for ; Thu, 28 Oct 2021 02:32:20 -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=H1cBbZ29iBhIzlADanMboqR5PTvmcX6f2VNyLE4w9Tk=; b=ZF8RwgiR46eeZoRy7bQm9ex9lg/svajTlowMu+8I/nRfgUrrjWGJSl4sMB22wU7Yzo /amQHrUnik25ChBxiQIVRNWRGarvxrwqBWfH5dqMT9GU5jy4sRNGgEF71cLdL2CDAqVT qikRVVu61rlTBpGB7b+ixhzqMJF7B15oRsKr15GP84lQO92p4ldyL+uJ9MVUVxMOsFfh QWbkYGdti4Q2LauYBohGXpFdBS1pQF4Qfydx8mBSrZU/m9NsxdO93pfcRWqvy1OG/g7W IdbctlT1Tu4E6WoZI23e4BP+BHnxdqJXOc1BL2l2bVA0/suNaoegxy8PlicibO70KB7E 674A== 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=H1cBbZ29iBhIzlADanMboqR5PTvmcX6f2VNyLE4w9Tk=; b=pEcfdfKU6Q25g7mXJCd3G3IgEBDo8s/CAd1EvpzrO3I9ynTS3DL5wuiaw56T7QYoBn 2YYWkF83N+SUSx3ASMSihYT7xcnYYkxBRHLsX6Li9eMBCgAmZ8w7Q22isP7SMegViTmc yzqTZwK8RT1OkEEqzAiDFokkjBJFlzR6/J+0IK7XneGL6ahP1on7430mEhKubp2NuEcR 7qOT8ahSFLGDoAagnZJwsXC+7Wn0X/r6F9iTFeU2WMhc0oaGam77JiqbwB5fbCqTsYn9 HgsMypDmGmxqH1CVgr9JLQLd2+mawYeaU7JBdi5o5iJfSq81UfJ2g1zHyvF9hitF2kHN 28Cg== X-Gm-Message-State: AOAM530X1fmMzLr/Y/8H7EH9lOG/LQgLel2svLbRzbydXcV+ohoz6s5r w+O+vmXV3unkdqe5IHYo943B77lEDvRyT5izfnCIIA== X-Received: by 2002:a05:651c:11c4:: with SMTP id z4mr3422469ljo.463.1635413538930; Thu, 28 Oct 2021 02:32:18 -0700 (PDT) MIME-Version: 1.0 References: <8ecc5c79c1dd0627d570ede31e18c860786cacca.1633519499.git.hns@goldelico.com> <470A96FD-DB24-4C32-BC9F-AE2F617FBF2D@goldelico.com> <2013308.OSlt1BDEiP@pc-42> In-Reply-To: <2013308.OSlt1BDEiP@pc-42> From: Ulf Hansson Date: Thu, 28 Oct 2021 11:31:42 +0200 Message-ID: Subject: Re: [RFC] mmc: core: transplant ti,wl1251 quirks from to be retired omap_hsmmc To: =?UTF-8?B?SsOpcsO0bWUgUG91aWxsZXI=?= , "H. Nikolaus Schaller" Cc: Avri Altman , Shawn Lin , Linus Walleij , Bean Huo , linux-mmc@vger.kernel.org, linux-kernel , Discussions about the Letux Kernel , kernel@pyra-handheld.com, Tony Lindgren , Linux-OMAP Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [...] > > Combining your suggestions we could do roughly: > > > > in mmc_sdio_init_card(): > > > > if (host->ops->init_card) > > host->ops->init_card(host, card); > > else > > mmc_fixup_device(host, sdio_prepare_fixups_methods); > > I think I mostly agree, but why you don't call mmc_fixup_device() if > init_card is defined? (BTW, mmc_fixup_device() takes a card as > first parameter) Ack. > > > > Next we need a location for the sdio_prepare_fixups_methods table and functions. > > > > For "ti,wl1251" we would then provide the entry in the table and a function doing > > the setup. But where should these be defined? Likely not in a header file like > > quirks.h? But there is no quirks.c. > > I think you can place your function in drivers/mmc/core/card.h. There are > already add_quirk(), add_limit_rate_quirk(), add_quirk_mmc(), etc... FYI: I don't mind adding a quirks.c, if that makes sense. Kind regards Uffe