Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4853644ybl; Mon, 26 Aug 2019 17:33:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4W5lol1PmnG6nv93UoFBwJqzyK3KI70igUMIfh4HE0dTSOzVwEa0nxwKHNPTS1z0jyqwo X-Received: by 2002:a17:90a:1cb:: with SMTP id 11mr14383602pjd.109.1566866008117; Mon, 26 Aug 2019 17:33:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566866008; cv=none; d=google.com; s=arc-20160816; b=WlRoKzU32oaJ+OhKIFeGtMajMZgUNLmPX1cDN/QUsmP9sPLnK5rxrDxOFz5v8ZdRBZ Jxxj02C6SHmLCH2oiHHs8tX2rQwMkx4Ju1Wv7JVkBiVmofFSczVdbfO5A6z0GEDRtFZG ul2m8gW+TAn/XPD/eSuml95vWlTJjHZYJG0/WKQ3FP05C3SqFR15oNYW3ZCbguHGZA1f 47c2WIEMaOQ16NpOfDji/UA3sRGghpGwD+lt1Z8fM2I1eucFXlb360geh8ebMUtcku61 NVJ+o5nKwVeQJXQ2CyXUzaXViJMEky3MNZ7rHxDBGkeua1gfKfl2/0HmJx//4TlOYclK X8BQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=FmTDIjwDZHURui17fbI3myXwISZRJiWLOpeT3PDq78E=; b=SImXv1/DhoNm15QeEP9ZOi+jWykWLuDtKhfI8XygrMiWICh+5jYxxfBIBlPAPYA1Uv 3xyGnibtm0/SUQp3Hrb7QuXDvCGL4lbU/37/XrIWeCrC40fUnPCDjOjoPu6A5eLJ+fFg 3pd/8W+ndgGx9FA+WT3XIXqcV3IA0jN7kOgt0Ik9CrjEBjCxXLlz295jHE8zPdLCuoM1 1oUuZBRXPqh96XtRQjwC4sVzD/8IGPpzwJrLL8CceQODgiZrl3SI8h9Bg/VTdD4QtpS1 A3Alk4MyWHJN/pcO5xIH6xEKG/M0jdohTZUVBpciQkMiBzQ820sm4iUOIfF3qG37lX1u Jfbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q6qysXwn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p20si1207189plo.58.2019.08.26.17.33.12; Mon, 26 Aug 2019 17:33:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q6qysXwn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727784AbfH0AcY (ORCPT + 99 others); Mon, 26 Aug 2019 20:32:24 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:41225 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726944AbfH0AcX (ORCPT ); Mon, 26 Aug 2019 20:32:23 -0400 Received: by mail-pl1-f195.google.com with SMTP id m9so10845064pls.8; Mon, 26 Aug 2019 17:32:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FmTDIjwDZHURui17fbI3myXwISZRJiWLOpeT3PDq78E=; b=Q6qysXwnEsq0MbkI5H+rhc+AmTTkSvZvcv31cIDjG+ioedc3t5tsklkg7YdbQG46+6 NQvQYlKTCPRox6rZUSVijO9S5mshnzMIyQDZVvHvod5CEzWKdqM753K8FjLougCjlRSw ZG3whp/D/KYU41hZXU+JXZBn/9TLAqYS2BlHs0+sDHWl9rb7vpLoxwBkMQj9xUzDeAWY 9Hla7mdleRxAzaxZtY+PeEKU/2qY031WXxxvDlaq2XIBqlNcvqM/CdqlE1jGCT0N8dJs jTzUACCZzC487qsfg+f62p2vXVYTQK+7xouzWI8uYPhKmYA3u12Xp3OpX7JjSlZSzAWp HH+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FmTDIjwDZHURui17fbI3myXwISZRJiWLOpeT3PDq78E=; b=ffQZRGbcrNoVq11BLqfL1yky5TfUzolGLNZC9hG/6AIL0gMwQsN2gj4Edn74FH6O4w fCpclQ9CQ4QigfXrHzfqnYRCeojgXo5C31ChVjKh++xlFAtKn2lhATvujftdHVyzX7uI mIDQ7wRyzD0ByVJh+Zuv9VGCwqYoj8LR0cHub/Rm47UZss004obpp23w1HayRygXj9iS Kx9GMl6bXuGOowaoyNEPpy1OT2XbNnAUqtjDyimgPIzhkYYiBVERlJe+FObQpt3V6UD0 jd9PchH17ccHPD2H7WeuyGr0PfVNA52BiBJUuXGHzzxPqu6WNy+nvs0XBNJ5EecOtGWQ IesQ== X-Gm-Message-State: APjAAAX1Oix+DYQLdmdExpqh0hognCHgZug2vZzIDUR0ItxlYLO73qX4 fRO0CrWzHGUQZ1wlGjEw2Ek= X-Received: by 2002:a17:902:ac87:: with SMTP id h7mr6415689plr.36.1566865943117; Mon, 26 Aug 2019 17:32:23 -0700 (PDT) Received: from gli-arch.genesyslogic.com.tw (60-251-58-169.HINET-IP.hinet.net. [60.251.58.169]) by smtp.gmail.com with ESMTPSA id n128sm11554471pfn.46.2019.08.26.17.32.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 17:32:22 -0700 (PDT) From: Ben Chuang To: adrian.hunter@intel.com, ulf.hansson@linaro.org Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, johnsonm@danlj.org, ben.chuang@genesyslogic.com.tw, Ben Chuang Subject: [PATCH V6 0/5] Add Genesys Logic GL975x support Date: Tue, 27 Aug 2019 08:31:45 +0800 Message-Id: <20190827003145.2249-1-benchuanggli@gmail.com> X-Mailer: git-send-email 2.22.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ben Chuang The patches modify internal clock setup to match SD Host Controller Simplified Specifications 4.20 and support Genesys Logic GL9750/GL9755 chipsets. V6: - export sdhci_abot_tuning() function symbol - use C-style comments - use BIT, FIELD_{GET,PREP} and GENMASK to define bit fields of register - use host->ops->platform_execute_tuning instead of mmc->ops->execute_tuning - call sdhci_reset() instead of duplicating the code in sdhci_gl9750_reset - remove .hw_reset - use condition define CONFIG_MMC_SDHCI_IO_ACCESSORS for read_l V5: - add "change timeout of loop .." to a patch - fix typo "verndor" to "vendor" V4: - change name from sdhci_gli_reset to sdhci_gl9750_reset - fix sdhci_reset to sdhci_gl9750_reset in sdhci_gl9750_ops - fix sdhci_gli_reset to sdhci_reset in sdhci_gl9755_ops V3: - change usleep_range to udelay - add Genesys Logic PCI Vendor ID to a patch - separate the Genesys Logic specific part to a patch V2: - change udelay to usleep_range Ben Chuang (5): mmc: sdhci: Change timeout of loop for checking internal clock stable mmc: sdhci: Add PLL Enable support to internal clock setup PCI: Add Genesys Logic, Inc. Vendor ID mmc: sdhci: Export sdhci_abort_tuning function symbol mmc: host: sdhci-pci: Add Genesys Logic GL975x support drivers/mmc/host/Makefile | 2 +- drivers/mmc/host/sdhci-pci-core.c | 2 + drivers/mmc/host/sdhci-pci-gli.c | 354 ++++++++++++++++++++++++++++++ drivers/mmc/host/sdhci-pci.h | 5 + drivers/mmc/host/sdhci.c | 30 ++- drivers/mmc/host/sdhci.h | 2 + include/linux/pci_ids.h | 2 + 7 files changed, 393 insertions(+), 4 deletions(-) create mode 100644 drivers/mmc/host/sdhci-pci-gli.c -- 2.22.1