Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp764017ybh; Thu, 12 Mar 2020 10:39:58 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuAeyB99k8emW78zPc+R1EAkFPRvEuDIeLVRJStsBSQytTbqfw0BpQGFjkFF4cpUbXveKg2 X-Received: by 2002:aca:1108:: with SMTP id 8mr3510455oir.93.1584034797933; Thu, 12 Mar 2020 10:39:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584034797; cv=none; d=google.com; s=arc-20160816; b=VjfDIgq2xyOd0u4JC1m2ikwYqYGaHC90hI6csxWUPWhcmUj9Qfw9ocvq3/FxInlWCf 2WfKZ0vpzNHPGFNIhb13Ki6q7nV/tAKswE5mEQO1RrBqiMAshxlgjU5nvOmzDCfp4F8/ NTLAaVelM7hyXABGQSPF8Zd+Svdsd+9KUVE3hPAARKVz8854l0bVxrkZcxiMKKVz95Wm bPX2xvEPMcslPrAfq2oJp8GPmqplBKkDHeiMc/C7Bd6aPwS5oCFWYtx89k4P5ovFgU+a yEsW10DAvQR1pdCTB77PQwDIgQnBivT/1EdifrwOZ6RiH9MtWZq9DHV/IvJwk17pDb9I QH3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:in-reply-to:subject:cc:to:from :date; bh=DAUw78mj1oHBgVLRI6R2A2IPQOWCKASlK/7b+gmgIn4=; b=IN39+y2UMX8o4+vaQ6G8A9mEzFSqENlKkdTj+Wtw9gYVi7eidBhyZhoF1o+IH/25+x YrhJARSjbc5Gj13/1yR9Mj48gFjbVc1AGYjUg7OOl5UyZRy8/ty3pafY6YJYKcA7b3Pf GquL/6ww0QVGJ0Z2R9XbPeG9e8BcdmJoDQCXYUo3hF/mEIQcWY4byXyXofoAzyGmYnUy KtrxEOngWOO7lhMOaUMRJj9JThoe8KSg0WphrbQjgSKKvZVZGOTxfqNj+N1vnh6KzVBL P24CHJcb7v51T7+alMfeLISrpyEQGpDyiO+g+dhO4+OKMUpKwCPI1JwXuZQMfm9e4vYj 4jnA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11si3119905otb.252.2020.03.12.10.39.44; Thu, 12 Mar 2020 10:39:57 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726610AbgCLRjQ (ORCPT + 99 others); Thu, 12 Mar 2020 13:39:16 -0400 Received: from foss.arm.com ([217.140.110.172]:38908 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726127AbgCLRjQ (ORCPT ); Thu, 12 Mar 2020 13:39:16 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 79E0530E; Thu, 12 Mar 2020 10:39:15 -0700 (PDT) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F293F3F6CF; Thu, 12 Mar 2020 10:39:14 -0700 (PDT) Date: Thu, 12 Mar 2020 17:39:13 +0000 From: Mark Brown To: Neil Armstrong Cc: broonie@kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Mark Brown Subject: Applied "spi: meson-spicc: add min sclk for each compatible" to the spi tree In-Reply-To: <20200312133131.26430-6-narmstrong@baylibre.com> Message-Id: X-Patchwork-Hint: ignore Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch spi: meson-spicc: add min sclk for each compatible has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 8791068dab979819e01f41736953b9b2e462867b Mon Sep 17 00:00:00 2001 From: Neil Armstrong Date: Thu, 12 Mar 2020 14:31:27 +0100 Subject: [PATCH] spi: meson-spicc: add min sclk for each compatible The G12A SPICC controller variant takes the source clock from a specific clock instead of the bus clock. The minimal clock calculus won't work with the G12A support, thus add the minimal supported clock for each variant and pass this to the SPI core. Signed-off-by: Neil Armstrong Link: https://lore.kernel.org/r/20200312133131.26430-6-narmstrong@baylibre.com Signed-off-by: Mark Brown --- drivers/spi/spi-meson-spicc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-meson-spicc.c b/drivers/spi/spi-meson-spicc.c index 710b4e780daa..b5bd3a897e8f 100644 --- a/drivers/spi/spi-meson-spicc.c +++ b/drivers/spi/spi-meson-spicc.c @@ -132,6 +132,7 @@ struct meson_spicc_data { unsigned int max_speed_hz; + unsigned int min_speed_hz; bool has_oen; bool has_enhance_clk_div; }; @@ -685,7 +686,7 @@ static int meson_spicc_probe(struct platform_device *pdev) SPI_BPW_MASK(16) | SPI_BPW_MASK(8); master->flags = (SPI_MASTER_MUST_RX | SPI_MASTER_MUST_TX); - master->min_speed_hz = rate >> 9; + master->min_speed_hz = spicc->data->min_speed_hz; master->setup = meson_spicc_setup; master->cleanup = meson_spicc_cleanup; master->prepare_message = meson_spicc_prepare_message; @@ -736,10 +737,12 @@ static int meson_spicc_remove(struct platform_device *pdev) static const struct meson_spicc_data meson_spicc_gx_data = { .max_speed_hz = 30000000, + .min_speed_hz = 325000, }; static const struct meson_spicc_data meson_spicc_axg_data = { .max_speed_hz = 80000000, + .min_speed_hz = 325000, .has_oen = true, .has_enhance_clk_div = true, }; -- 2.20.1