Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp632127rwd; Wed, 31 May 2023 03:16:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5QKflBMxUwsuUmfY+Y1zAFR6sVG2AiJCg48KeTn3EvFN2wk6KCjVOTH7JP55pRIJbZi0ct X-Received: by 2002:a05:6358:9219:b0:123:961:4635 with SMTP id d25-20020a056358921900b0012309614635mr1680429rwb.6.1685528209502; Wed, 31 May 2023 03:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685528209; cv=none; d=google.com; s=arc-20160816; b=GpZweURDnZ0z+OywL0or54UZIaQTHBSNdoiBdmQN05Tez9CIvM2zOgdr+La56BuNJh Ndj8rNfsrYVXF0vUxHJYkYUJZ0glh20fmRC1hFJo9n7MPYgeUUiKSZwTSNGiCl/IP2fG 9QSUCLuoOnoRwLZAxVaUXilorqYxUbf6zYwqHmDnODTHM+Bqr2El9lIYyFsX9qJih7iV lH8iratsUemgBqyQgchtcDiwJfOVIRtCWQCyiqj5Z9IgXGMRjOTzyFXBVcHepGNilYsu oqrVSWQS0If87w3YoYW5v9z4K43lwoNP0ym57MibIboNWI3r/2YgIYTwp6kg9n1IlpR7 dvSw== 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=BOc0UBOtHPdYEoOqTP4iajGTGug0Xs6mCkm+zIdi5v4=; b=cw9GStzFyohA+on3kzs0i5B9pyAMVCRwpbhkG658AjVC0pK6YJlJXRUc/w2hvE64/T j6JxsdWt2VhItxKQ6FIGr1RzDPA3ggA96mmDy+BjmnSXf4R4CCskgwDbLlUapnFr6MUy aLcK3pT7INuNNn1gzfNoH5gvXZX+te15Z9ABl6fJLLI0fc/AsBs1SIKwj3KfCrKkCqB/ ZvkujnHbwIf7SGcmyrbRXy+KLW4nmYVm5cBWa0a7OTfq+LJkWMbAgy+gBYFMgtfdnZBr MNAbtkR5XTjbp0NiCZPtdwhvn82bKjYj+wwW6qi4kdLB+Sz4ccYzqaruEg0Bv4bjaX0Z xg9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="beEXgrl/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w198-20020a627bcf000000b0063b77e2123csi3280315pfc.26.2023.05.31.03.16.37; Wed, 31 May 2023 03:16:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="beEXgrl/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235627AbjEaJ5p (ORCPT + 99 others); Wed, 31 May 2023 05:57:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231495AbjEaJ5m (ORCPT ); Wed, 31 May 2023 05:57:42 -0400 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECAE6129; Wed, 31 May 2023 02:57:28 -0700 (PDT) Received: by mail-oi1-x233.google.com with SMTP id 5614622812f47-39810ce3e13so3907978b6e.2; Wed, 31 May 2023 02:57:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685527048; x=1688119048; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=BOc0UBOtHPdYEoOqTP4iajGTGug0Xs6mCkm+zIdi5v4=; b=beEXgrl/jUImnnx9RoObOda6LFybucDQby4FKmALz/o9bThirL16WsPMVYZHhUScYE SM0QcqROK2TTDqibYc5/86ft3km8fg/x1+UcO1yYZ9d+WW7NocBhHBWv+3pvGWOsc0lH DPF+Ud57Xeq/io94Qss7DEgR6Lzxby6VQ0At22V1iwCw77lQI7+wYvAh2cxtXknpDOQ4 a5S4jpe+mfjBWF0ku1O7sSPXJ/mnXFTTgK4p6CyBKYRdBrIynarSapfLHY/2RKEFD7d/ R4zC42p+AfiX5jYoSvgSAw574buaOLloZvcS/EExEIurA002MD645s91v73t5VjLrbpp t+dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685527048; x=1688119048; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BOc0UBOtHPdYEoOqTP4iajGTGug0Xs6mCkm+zIdi5v4=; b=GviZXCXj+7iXXYdVxsVToczFOPPblDYIUpaw7BDfJ08hFkLGFngCa0oW5p3txPbK2a sx+wx4o+MQQsD2AQkFB5EK37Cxi7FPktCHL8fvlWyz/Si8LSTBlyCvSXDW76rp1ReeJA /ikj4dAbWjyGCxpPIdg6dHpUyoRkTQX+/MlgeEzA4R8rbhrDzpNvu3p98wv/Y/mrT5Du yegM9aoxTdUaEJSr4ETrwEmZSBRqLm9biXmkx+7SoV8EzUGJISE0C6T2U0NeqfMz5Bky VKX8+CJmR7MsuTVuPYZFwSrpyKyBcnQ8UE5JVpNkHP5vMZKNHmleWys9MI+QVcwy+j2a TboA== X-Gm-Message-State: AC+VfDzwmK1fD8xw/fH+P5OtqJoqIla926hShgJnySoWV2tkC+3aaxoP qBcQD5rZFfmubDjckebC/vVl+J0re54= X-Received: by 2002:a05:6808:b15:b0:398:26f0:6799 with SMTP id s21-20020a0568080b1500b0039826f06799mr3491208oij.13.1685527048125; Wed, 31 May 2023 02:57:28 -0700 (PDT) Received: from localhost.localdomain (2001-b400-e454-8dbb-0ba6-8aef-0dad-9e10.emome-ip6.hinet.net. [2001:b400:e454:8dbb:ba6:8aef:dad:9e10]) by smtp.gmail.com with ESMTPSA id f16-20020a656290000000b00514256c05c2sm852002pgv.7.2023.05.31.02.57.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 02:57:27 -0700 (PDT) From: Victor Shih To: ulf.hansson@linaro.org, adrian.hunter@intel.com Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, benchuanggli@gmail.com, HL.Liu@genesyslogic.com.tw, Greg.tu@genesyslogic.com.tw, Victor Shih Subject: [PATCH V3 0/3] Add Genesys Logic GL9767 support Date: Wed, 31 May 2023 17:57:18 +0800 Message-Id: <20230531095721.392664-1-victorshihgli@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Victor Shih These patches support for the GL9767 chipset and add support SD3/SD Express mode for the GL9767. Changes in v3 (May. 31, 2023) * rebased to the linux-kernel-v6.4.0-rc1 in Ulf Hansson next branch. * Patch#2: use msleep() to instead mdelay(). * Patch#3: modify the if-else condition and content in gl9767_init_sd_express() function. adjust the order of definitions. ----------------- original cover letter from v2 ----------------- These patches support for the GL9767 chipset and add support SD3/SD Express mode for the GL9767. Changes in v2 (May. 30, 2023) * rebased to the linux-kernel-v6.4.0-rc1 in Ulf Hansson next branch. * Add set SDR104's clock to 205MHz and enable SSC for GL9767. * drop export sdhci_check_ro() function. * Patch#1: add gl9767_vhs_read() and gl9767_vhs_write(). * Patch#3: use mmc->ops->get_ro() to instead sdhci_check_ro(). use msleep() to instead mdelay(). modify the wait time for Power valid to CLKREQ. drop unused definitions. ----------------- original cover letter from v1 ----------------- These patches support for the GL9767 chipset and add support SD3/SD Express mode for the GL9767. Changes in v1 (May. 12, 2023) * rebased to the linux-kernel-v6.4.0-rc1 in Ulf Hansson next branch. * enable MSI interrupt for the GL9767. * add support SDR mode for the GL9767. * export sdhci_check_ro() function. * add support SD Express mode for the GL9767. Victor Shih (3): mmc: sdhci-pci-gli: Add Genesys Logic GL9767 support mmc: sdhci-pci-gli: Set SDR104's clock to 205MHz and enable SSC for GL9767 mmc: sdhci-pci-gli: Add support SD Express card for GL9767 drivers/mmc/host/sdhci-pci-core.c | 1 + drivers/mmc/host/sdhci-pci-gli.c | 406 ++++++++++++++++++++++++++++++ drivers/mmc/host/sdhci-pci.h | 2 + 3 files changed, 409 insertions(+) -- 2.25.1