Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2641049pxa; Mon, 17 Aug 2020 15:13:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytcJEVNXoRFFXToXRUukiMXaMLlI9Sw1Jxq/FGUfjkCW3fIBQ3HblQLgDqcNqFrGmRulrh X-Received: by 2002:a17:907:2126:: with SMTP id qo6mr17036644ejb.536.1597702413084; Mon, 17 Aug 2020 15:13:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597702413; cv=none; d=google.com; s=arc-20160816; b=hxh5VWUdN4aoSr7ToPWesRyvbFQ9+dB/8jQ6O8q/sOM8Par4NfAjeoOfRyJnJ4MyTp 93o9iXB8JU6K4VTjLL639g3dsdSu8Ixiosx4qHbE5tcgrmbRP4Im12apzZVUImR8yhU5 ZgezmNvlA98o2O0daSeqjFnJcETLg+vqFA9OXcwwOdstabVtaPFK58Ow5yWP7ZPL6Amn OjXVTMJ5YENzumdmyK0c8MTDSO8myh6UBnLRJYLTqdIfixWUGIJf0g61Rbzc72DldlB0 K9J14PH9hN/tNDFfTvWsGWwnuriOqFvL4kVYlTAiGF5NSvMln1WNeYQkmETcs8X62abi u8Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=M9qfxxRR/LXgVCOjAx/R669A6M26qRumF93qZK4XZE0=; b=KYNeCwOjmSyqja+HxzqVROvPBYhr9bfPRvlL5RfOymOQE4ZxGMnK0uziPA7CHFo4Zp dDYNq/9QyfqnEc6Q9fYEbKmSR//GYgozUx83BEtXbgUIm07AZpFodkucfM9D+YpQ/zvk s+8v5D7XsHK4p5BVd3A+GYep+uROZEA4o7vN+xlavOwqD1FmoDwE+yemzCKbHR8QaM+4 cgUTUaYRuvFhzz5yrjd/5xXl357hhmHTLUHcejtjMNLw8H+O/m2xJEQnYdHhz3NXjowX Mr/g8wtfsdxp8Ps/idAaqXck9Jo5yzp670s0KrEtTzmt+hQSjXXYdoTKXWvpwpqCErU4 eTEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SoEWyVPs; 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=fail (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 li13si12214000ejb.423.2020.08.17.15.13.10; Mon, 17 Aug 2020 15:13:33 -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=@kernel.org header.s=default header.b=SoEWyVPs; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389091AbgHQQw5 (ORCPT + 99 others); Mon, 17 Aug 2020 12:52:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:50490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731033AbgHQQDA (ORCPT ); Mon, 17 Aug 2020 12:03:00 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B46D1206FA; Mon, 17 Aug 2020 16:02:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597680178; bh=K1hirN2sBpFZcADEX5DOg98QwrA5CvrnN4JSkIwDI64=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SoEWyVPsje7hKVULu5p0gel6Y+kA1kgBl580r7HfTlynm4dnmPE1qcZo8SgyZnv6y 8Vc3HjK5wXHGzJvyefb2EiSJbRRGASUjGnUNhqd9k/KmHGeJ3Cmz41OfwlD4aHYQx5 C7NH+z38Fr76peUYYQf7gEt4EM4SCuphVfUQH+Hc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shirley Her , Ulf Hansson , Sasha Levin Subject: [PATCH 5.4 082/270] mmc: sdhci-pci-o2micro: Bug fix for O2 host controller Seabird1 Date: Mon, 17 Aug 2020 17:14:43 +0200 Message-Id: <20200817143759.860041110@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143755.807583758@linuxfoundation.org> References: <20200817143755.807583758@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: shirley her [ Upstream commit cdd2b769789ae1a030e1a26f6c37c5833cabcb34 ] To fix support for the O2 host controller Seabird1, set the quirk SDHCI_QUIRK2_PRESET_VALUE_BROKEN and the capability bit MMC_CAP2_NO_SDIO. Moreover, assign the ->get_cd() callback. Signed-off-by: Shirley Her Link: https://lore.kernel.org/r/20200721011733.8416-1-shirley.her@bayhubtech.com [Ulf: Updated the commit message] Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin --- drivers/mmc/host/sdhci-pci-o2micro.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/mmc/host/sdhci-pci-o2micro.c b/drivers/mmc/host/sdhci-pci-o2micro.c index fa8105087d684..41a2394313dd0 100644 --- a/drivers/mmc/host/sdhci-pci-o2micro.c +++ b/drivers/mmc/host/sdhci-pci-o2micro.c @@ -561,6 +561,12 @@ int sdhci_pci_o2_probe_slot(struct sdhci_pci_slot *slot) slot->host->mmc_host_ops.get_cd = sdhci_o2_get_cd; } + if (chip->pdev->device == PCI_DEVICE_ID_O2_SEABIRD1) { + slot->host->mmc_host_ops.get_cd = sdhci_o2_get_cd; + host->mmc->caps2 |= MMC_CAP2_NO_SDIO; + host->quirks2 |= SDHCI_QUIRK2_PRESET_VALUE_BROKEN; + } + host->mmc_host_ops.execute_tuning = sdhci_o2_execute_tuning; if (chip->pdev->device != PCI_DEVICE_ID_O2_FUJIN2) -- 2.25.1