Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp394036pxb; Wed, 3 Nov 2021 06:05:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0RPgTFY+kcBirnW96NQ0gfzVbvSTp0PtgyL+TdWF6qtTLmSMkEleAP1uNt79w5LdDx9wd X-Received: by 2002:a05:6602:1851:: with SMTP id d17mr1629078ioi.27.1635944741418; Wed, 03 Nov 2021 06:05:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635944741; cv=none; d=google.com; s=arc-20160816; b=V1JHjN6YRQm17TR7CJazajxSv/Qdvfzd4fz8INrkF+XGB43Rvi9ZCK/YwMrE2D6fiJ 9n2bt6bzRJ2FZhzQoCb/QyzDJxA3XsLMO/5PaPREGnCaye4w5RJ4GV6sUg6US9b+YHVi UbO7k6hBItSl+eQjV1ArclheLzyyQTblTM+bAp6uZrqcYYuEbHygBOWNMxBoTvAXufyQ hcOIzCtGcYPtTPUbLpIOoocE3/BoVyX2h19ry8Cka89vIzBnLvu4sLRzOc0ggCIMy45k 8lbxryDgh/NYYA7jbBtQyjSqrtJbPzQ2duxoLCsarV6rqHB7vXotOf9dwxBG43lCOa7B EO0Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ytqJC3tzZimA/vKcRado/QdQBzzBwoUDJjRTyS4f9aA=; b=vm6GdfgJOAUILp7nceRDH9vYaj6Q5tZ2O07asCYlE1BM+7qHFTggpy8raZpnznUABs UZ7leAieuKkP14xfQPBpLYKQ8kg50aOaMsKSqUKZpZkBxqmj6dfJ6FotLeZQauNJXpjn 2cy0e5ccy/N86BbaikGVyFLUdKl3C0PnXhbx+TUkPXSc7/Zv8dG94s2S/HeT5jxEl+Yi 3c4j+WLJUasrp8u6PNr1hAACk6u+DPXEoqrOlMiT5qJjcmzoyHic9I6NuaHarWXDPvsF FjvPhOhaJa1rcPp4+y8la8ld8rVgPHpQnZ5SQ2+K+kVID/1CHkr193L4DzXRS+2hLL7E TBeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b="VJEmWqu/"; 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 i15si2540575ion.80.2021.11.03.06.05.26; Wed, 03 Nov 2021 06:05:41 -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="VJEmWqu/"; 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 S231876AbhKCND6 (ORCPT + 99 others); Wed, 3 Nov 2021 09:03:58 -0400 Received: from mo4-p03-ob.smtp.rzone.de ([81.169.146.175]:30863 "EHLO mo4-p03-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231922AbhKCNDw (ORCPT ); Wed, 3 Nov 2021 09:03:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1635944440; s=strato-dkim-0002; d=goldelico.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=ytqJC3tzZimA/vKcRado/QdQBzzBwoUDJjRTyS4f9aA=; b=VJEmWqu/Nljp2wpz876sJfZB99sohbpACkbKkMy+25TJXQmoDP9Pkn2AcUu28eVhD/ IKjSV/D7E7ltuPS8Jflmw67EbO1thxikAtJQLS799I0FBqa4kB3fNTqwauK+5KdGPz6W m3J/24ul/QQX7Nv86pg2b8SMssDo7wiFHDiKG/2XwE2HPMPIIH5SPlSl5aD7JIS9n6aq ijcqZ31/Dc43tZx74ySP8Iv7GvMLiiBhyMytq87p607PJ1PWIy7Y7iDARMUFVHcjmJQt 96Z4M47OCNbIaSRcbUbKb7vYqQRbvkbVvM6CGziaZ4q7rnkB81EwPOA42tfapfgIy4aI uUrQ== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMhflhwDubTJ9o1OAA2UMf2MwPVbgc7na" X-RZG-CLASS-ID: mo00 Received: from iMac.fritz.box by smtp.strato.de (RZmta 47.34.1 DYNA|AUTH) with ESMTPSA id 902c63xA3D0a0Ej (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Wed, 3 Nov 2021 14:00:36 +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 v3 6/6] mmc: host: omap_hsmmc: revert special init for wl1251 Date: Wed, 3 Nov 2021 14:00:14 +0100 Message-Id: <71f77891793dc29bf9afecd6df45d66a66f73e56.1635944413.git.hns@goldelico.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replaces: commit f6498b922e57 ("mmc: host: omap_hsmmc: add code for special init of wl1251 to get rid of pandora_wl1251_init_card") Requires: commit ("mmc: core: transplant ti,wl1251 quirks from to be retired omap_hsmmc") After moving the wl1251 quirks from omap_hsmmc_init_card() to wl1251_quirk() and sdio_card_init_methods[] we can remove omap_hsmmc_init_card() completely. This also removes the specialization on the combination of omap_hsmmc and wl1251. Related-to: commit f6498b922e57 ("mmc: host: omap_hsmmc: add code for special init of wl1251 to get rid of pandora_wl1251_init_card") Related-to: commit 2398c41d6432 ("omap: pdata-quirks: remove openpandora quirks for mmc3 and wl1251") Related-to: commit f9d50fef4b64 ("ARM: OMAP2+: omap3-pandora: add wifi support") Signed-off-by: H. Nikolaus Schaller --- drivers/mmc/host/omap_hsmmc.c | 36 ----------------------------------- 1 file changed, 36 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 6960e305e0a39..9749639ea8977 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -1504,41 +1504,6 @@ static void omap_hsmmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) omap_hsmmc_set_bus_mode(host); } -static void omap_hsmmc_init_card(struct mmc_host *mmc, struct mmc_card *card) -{ - struct omap_hsmmc_host *host = mmc_priv(mmc); - - if (card->type == MMC_TYPE_SDIO || card->type == MMC_TYPE_SD_COMBO) { - struct device_node *np = mmc_dev(mmc)->of_node; - - /* - * REVISIT: should be moved to sdio core and made more - * general e.g. by expanding the DT bindings of child nodes - * to provide a mechanism to provide this information: - * Documentation/devicetree/bindings/mmc/mmc-card.txt - */ - - np = of_get_compatible_child(np, "ti,wl1251"); - if (np) { - /* - * We have TI wl1251 attached to MMC3. Pass this - * information to the SDIO core because it can't be - * probed by normal methods. - */ - - dev_info(host->dev, "found wl1251\n"); - card->quirks |= MMC_QUIRK_NONSTD_SDIO; - card->cccr.wide_bus = 1; - card->cis.vendor = 0x104c; - card->cis.device = 0x9066; - card->cis.blksize = 512; - card->cis.max_dtr = 24000000; - card->ocr = 0x80; - of_node_put(np); - } - } -} - static void omap_hsmmc_enable_sdio_irq(struct mmc_host *mmc, int enable) { struct omap_hsmmc_host *host = mmc_priv(mmc); @@ -1667,7 +1632,6 @@ static struct mmc_host_ops omap_hsmmc_ops = { .set_ios = omap_hsmmc_set_ios, .get_cd = mmc_gpio_get_cd, .get_ro = mmc_gpio_get_ro, - .init_card = omap_hsmmc_init_card, .enable_sdio_irq = omap_hsmmc_enable_sdio_irq, }; -- 2.33.0