Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3715477pxb; Mon, 24 Jan 2022 16:09:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUnRu2YCjYDcZ/uTXwetkygPwqNNi5H/j3uIPqIkvoRtO4Q+CbmFE/JaLOt9PJ9eUpQiAg X-Received: by 2002:a17:902:9a09:b0:14a:a0ad:555f with SMTP id v9-20020a1709029a0900b0014aa0ad555fmr16448811plp.119.1643069352909; Mon, 24 Jan 2022 16:09:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643069352; cv=none; d=google.com; s=arc-20160816; b=ZHUlUG5gjV0/7bEmZIoo4+rYsxY5bJuNvrmHSbbd01qhLTUkZHZ/6qLC3bjOSYkT+m x7s1bWfJ0Or1njgEbal3i2L0WBsfBLvHansQgNXOr0EqcxzE9vYyH3dH5EMni9K5Fjkx T8KQgAEDagG1t6vKRO4PMHyDrWKjl4N0c9s69TJdqUH0aTBxoF3Syse0IPX6F1AIQAe1 lP/prcOiTZBW37AKcPV5H72Hn5AuYzkD58a12HWAayjmIwTAE+w/T6sckKWxuGAzAqwK a2gvFQtPtDXnJNffmjOEMFUYyQSDyLoXBydiwexsneaMQeaWZy0OcvQ5Pd0fCO3iYNu6 Ku/w== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2upCdmmPfbxZoy8hiJ9vByiBCbXx4YhE10wAmyW28vg=; b=hE2sUgVLY/nE7OIjZRAjiT9gcvgZz9OkyqZv2z/uKTHuWuZAav70WyYor4ylTaSKdt oMsKW0kfGVC2IP1Bi96Q4+WFVrOksf0lhJeUqOMkIJNC+86O53nQPagfu2E5wfhaulQy Ete9YhUlnaIr7kNHqmhYpLagR96vpJAMaOQauniCxsi5IPePh1GXrYEOZ3F5+b4GXbv7 dE/CZCqILIoJ19ijuOE4bpyfupS3ZjZJMXUMHFCcWzp+qbnl5l8qQ5lFb39yJJ6AEpbX AJXFSNnSC+7ODHo6CYs+lSXpHMlvZXqp0OZHKjRYK97y9rdxA1/OezTV5e89Lb2R1n0S grEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cRTetLi0; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 8si1184069pfl.267.2022.01.24.16.09.00; Mon, 24 Jan 2022 16:09:12 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=cRTetLi0; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2370642AbiAYAFt (ORCPT + 99 others); Mon, 24 Jan 2022 19:05:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1847528AbiAXXUA (ORCPT ); Mon, 24 Jan 2022 18:20:00 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9047C06F8FB; Mon, 24 Jan 2022 13:27:40 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 769A06136E; Mon, 24 Jan 2022 21:27:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 501CAC340E4; Mon, 24 Jan 2022 21:27:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059659; bh=wnlzurwnqQUQibaZHONoMred/MZWh5Vz2vdlyjP1zDE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cRTetLi0fCNRZnNZUVPjgi2fHD5hyl/0jJAwL+Q+nGwdpHAeKASv2006WaA5skQYU F8X9PWrCkxp6a6Q9DbqQVEPTpQWLXB3zeNf8HYQ6Jh7GgCNq00xOC38cIuunH2R5bd ij5vO5nEND7Ke2UdOEwefqEMXMOuF7RYwKN+IUcM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "H. Nikolaus Schaller" , Ulf Hansson , Sasha Levin Subject: [PATCH 5.16 0657/1039] mmc: omap_hsmmc: Revert special init for wl1251 Date: Mon, 24 Jan 2022 19:40:46 +0100 Message-Id: <20220124184147.454092568@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 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 From: H. Nikolaus Schaller [ Upstream commit dfb654f1885f05baf506cdfdbc3f7efa1d847d54 ] Due to recent changes to the mmc core, card quirks can be applied based upon a compatible string in child OF node. The quirk needed for wl1251 (SDIO card) is managed in the core, therefore there is no longer any reason to deal with this in omap_hsmmc too, so let's remove it. Signed-off-by: H. Nikolaus Schaller Link: https://lore.kernel.org/r/77d313b97d1e18b0eb7ed2d88d718d960f329bb0.1636564631.git.hns@goldelico.com [Ulf: Re-wrote the commit message to make it more clear] Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin --- 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 9dafcbf969d96..fca30add563e9 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -1499,41 +1499,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.yaml - */ - - 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); @@ -1660,7 +1625,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.34.1