Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1648010ybb; Thu, 2 Apr 2020 05:02:10 -0700 (PDT) X-Google-Smtp-Source: APiQypJrfg3xYTOMKtNJhJsBxaxxUGW5/PJWpFPYOm2B0V0y6vIlIYsIxNBDy0wM/Jh7NQSw/Pmn X-Received: by 2002:aca:a895:: with SMTP id r143mr1856708oie.150.1585828930242; Thu, 02 Apr 2020 05:02:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585828930; cv=none; d=google.com; s=arc-20160816; b=k8/EoXpeBWHxrSvH8yRbi0yanyDWjR3xK8NoRLZsWcailFlfRmh8+5iu6uNDlr+rkR bjRtdLY/ar81EhZl7F3kZXG9A8x1wqV//olkf94zXf0Ug3XOUTNpbLMQzFgax8OJ1ht4 Zq9Jg1vh2YMdpU94QnE/u4bG2f8IdE6I+7D8zOEx0QWJuE+QQ5TbyXMKweGXfvszPrc/ C4+8V8nGMmYuASt2m/I35FKwt2XKzhhY69rF6usl+gQVOsRynoGZDo7z84gT/npj6dcv /VtuBuGO1nMH12BEvo+oowq8Hupj2GRjwmjQL+pjb+5mPAEJwyHZdeLvcVrwooFVftYJ 6SxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:content-transfer-encoding :mime-version:subject:from:message-id:date:dkim-signature; bh=4oJ0PmhhTWYh4uxcwtxpZUtJ0r9wSPeBq6FC/GLGiBI=; b=DrgCwuSfAPNnd9oZ4JYs6Y30YDZ45npGpoadd1EmPkoUh4kwFgQPdvKWkTNXfuqUY/ gZCaky6EOWwM4EhRJxuX7c6FWeFLrcLJ24zUPv8KYlBBN63tc21Sez7Ggug5DzMLTtxQ xWOHhC2s4Ujhfu1M3wsGfN1j3HNkSO2nLBbyjlOahgshHWAFi/CTDtvMfa9EAaCLiIqv lTljPtWpCgCYmJCOzIhxmz8Oja4mqcKqs9U6gQY45zmNglOi5txK8hjNU/BaLU6czUVH bLrvqbr/6wI/fbH7j8fOFb8dt4XqDqfcheKDrLLxUl2nkwOv3PNiZMBaW7Jr3mgP5s7g iQHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=YpVB3Y0E; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s139si2248681oih.7.2020.04.02.05.01.55; Thu, 02 Apr 2020 05:02:10 -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=@rere.qmqm.pl header.s=1 header.b=YpVB3Y0E; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388136AbgDBLy4 (ORCPT + 99 others); Thu, 2 Apr 2020 07:54:56 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:57265 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387722AbgDBLy4 (ORCPT ); Thu, 2 Apr 2020 07:54:56 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 48tM1p09thz9j; Thu, 2 Apr 2020 13:54:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1585828495; bh=SUZOg/tdo/PI/jczvgr7ZOhvxU+amuVx28JA0/7SYOQ=; h=Date:From:Subject:To:Cc:From; b=YpVB3Y0Ew1pROTQ2fQHIls1smJnMniRdywu9QNwke2+AA2git5jCCmMilOtF78E2z wr1B7bLsRS9IAlWZbulnUKLVQaOs55Q5zc9Tl4gldMHHl/+6ZMaPmp239MwtI4Y8QY Vm7t1Ri0KfV+1/hhu9fGSs4s0cgLIyHPaEZVys1vaXXpNIRB3m41Vi0P9jVRrUx8HI U+bfYJgDTG1Eb2zvVQEXwkkO3916m3388AU732dnIrpVGBBROlRHSftibYQavam2yk 9KCwVPq79KUrXkp289+XqZ29LgfzCgpRzfw1jye1E8PvUdIojuRzYk5ro/01rRjmm/ 6Pu6TJY90ujXA== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at mail Date: Thu, 02 Apr 2020 13:54:53 +0200 Message-Id: From: =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= Subject: [PATCH 0/7] SDHCI clock handling fixes and cleanups MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To: Adrian Hunter , Kevin Liu , Michal Simek , Suneel Garapati , Ulf Hansson Cc: linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set combines a few of code improvements for SDHCI clock handling. Besides small fixes, most value comes from simplifying the code, so it's easier to understand. Michał Mirosław (7): mmc: sdhci: fix base clock usage in preset value mmc: sdhci: fix programmable clock config from preset value mmc: sdhci: fix SDHCI_QUIRK2_CLOCK_DIV_ZERO_BROKEN mmc: sdhci: move SDHCI_QUIRK2_CLOCK_DIV_ZERO_BROKEN frequency limit mmc: sdhci: simplify clock frequency calculation mmc: sdhci: squash v2/v3+ clock calculation differences mmc: sdhci: respect non-zero div quirk in programmable clock mode drivers/mmc/host/sdhci-of-arasan.c | 7 +- drivers/mmc/host/sdhci.c | 126 +++++++++++++---------------- drivers/mmc/host/sdhci.h | 4 +- 3 files changed, 64 insertions(+), 73 deletions(-) -- 2.20.1