Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp943422lqt; Fri, 7 Jun 2024 03:35:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVczvvsZYdOIZJAWUvcJsF6Y6G7AbOhH8Rk2FhOh3VMXRXrAfNLqXM16J0nj/LkdeTUZRl2bx17STnkQ9gtUIyCZvpiFtHrU3LfNAC/8w== X-Google-Smtp-Source: AGHT+IFMBa2XTTRHw1VchY5TbKfMU2rcwTGDXVG8p9IVrL+u8jDgYrvTLwzmpJR9bMidiVKhsB6L X-Received: by 2002:a05:620a:a1d:b0:795:1494:33e with SMTP id af79cd13be357-7953c31d267mr170752085a.15.1717756556328; Fri, 07 Jun 2024 03:35:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717756556; cv=pass; d=google.com; s=arc-20160816; b=zxmfNjwddSsG+bz84IUXm4zh3h8LTQH6YUN8VTvCeVsuEAfLTQMFEkaUOybiYTUvU9 zF/jUaMs2sCEQwkg5ZhMzMOIGE8KZi2K/Q4MDsM4PCfe0lUN1WJYv6NNVzME8vueWp3n fmBPscaGsGukGijy3Jgw+AcguoEKKRwexShFD5QhlSHLaj962Ec3AHioKAMXRNZ1pNj7 RhHyi8PlgPUcK1CvWxrS6792rTNGowVwMhjP213WQYIpnFnnxGJLRmI5gbJe4WQpY+dm UxaDDENgCwvZerdOzEsvrrRwH9lD0RhLYZS4U2gVjiAK205D8ipGG/HZLyN5d3yu+PYB QpFA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=6SZT7Vg8SBdcI7/up7vQsqWryzwf0Hs49+SBIRhYVR4=; fh=ddfLTCMrQBCqctq5DLfWaK6D9aJe9rgdln8VuHjV+vE=; b=URzGvtIOZqS1qrZNBn3lcc5bU0Jxh0WCctoaFucimv31jc91qW4F8B2Dq4Wf8Gp8wi ls4Z8siZ4RIDbFC/R4W+nilp70Rl2glmDeVRXD/bS6iVICG8DfZOarM6BBYY/L1vGeeG dutmv21UdTgsbJsBXVY6HIWMnANObCJHjspuqWDURRPW0FZVlZ1JKeFtIeFCmAQMWVPb N/m+hvCKL1RFD5fA1gFgqIopRIoFV581UewwchE242xVf6SpRUrqAmCE3eOsoaCn2dKw pVfAlHV80DulO9qPUnlu5wmrMUS4gKE+/y45ObEaXEWfAf1/8K2IM8ttM+y/QS4iNEhw 6HsA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=CTnzQumF; arc=pass (i=1 spf=pass spfdomain=opensource.cirrus.com dkim=pass dkdomain=cirrus.com dmarc=pass fromdomain=opensource.cirrus.com); spf=pass (google.com: domain of linux-kernel+bounces-205835-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205835-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-795332ed77bsi341791485a.419.2024.06.07.03.35.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 03:35:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205835-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=CTnzQumF; arc=pass (i=1 spf=pass spfdomain=opensource.cirrus.com dkim=pass dkdomain=cirrus.com dmarc=pass fromdomain=opensource.cirrus.com); spf=pass (google.com: domain of linux-kernel+bounces-205835-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205835-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 0B4B61C2226E for ; Fri, 7 Jun 2024 10:35:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 250D715ECED; Fri, 7 Jun 2024 10:34:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="CTnzQumF" Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE9F3156972; Fri, 7 Jun 2024 10:34:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.149.25 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717756476; cv=none; b=sQrdi5sxuLyefX6Nf5Ho76YC9FZr/UttswkqTl2RjaBBaNvZxsRYCAUo8+dSXr2E1yzU1x8dn1MCeD2thvHtk5j/rZbO6L2sVfyfyP3C29h/dQ0lLwS4NB+EbfpvHRQG/AKRMflaBPH8i3TgCzLZKtDWhAmmsvVOdfS6MI2aFLc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717756476; c=relaxed/simple; bh=dyVyLefOikmRtBPVetXROQZZVtQIp30035Nayce89c8=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=OKJZNtpdyiKyDeag+/itrFVSNj6Wcz9rnsWPOEYfjA/sas7IX1xIhHTNzAS4Uuus5SxFYNF2vh+F8fqAl5preU+UnjJZCf2xE8WqHTSqdV87lYtiCvz3UM0OhUTr0b52mAcMi0KPwkdy50QpFB0lSrC5i+fWXDriYLg9Uw9+SyY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com; spf=pass smtp.mailfrom=opensource.cirrus.com; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b=CTnzQumF; arc=none smtp.client-ip=67.231.149.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=opensource.cirrus.com Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4576TmmW026247; Fri, 7 Jun 2024 05:34:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=cc :content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=PODMain02222019; bh=6SZT7Vg8SBdcI7/u p7vQsqWryzwf0Hs49+SBIRhYVR4=; b=CTnzQumFs6+eYyrhaDAbYS0vp51rbx/e k4wC0JFdINUNzhptkuOFfjze6zE70q3/DXba2T06vTzxHNpij4y/57BVJL4fWv4N p5GMz+6Se2dhM1gJZgDW+Gm/t78hLeeCYso36lA4GfbM6bY8vi855F+J5XvSHv2u unS0QqcBhXQEd3/XXKflYntyMWVoZ2HzFubuZivX4o5Bl9y/XPufE/RHLAD4CtH+ Yg6pCRjBH4+9X2RIP6PcP4poaunnMiHRm3RU3kIPTjyrC+5iBbiP5gbV6xscFKEd 4ACgzC2iW9HH22kpWYiMMmLa+9Zc7Mi3SmaKiT+kiLvwd9Df2omH5Q== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3yg11xxb09-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 07 Jun 2024 05:34:25 -0500 (CDT) Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 7 Jun 2024 11:34:23 +0100 Received: from ediswmail9.ad.cirrus.com (198.61.86.93) by anon-ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1544.9 via Frontend Transport; Fri, 7 Jun 2024 11:34:23 +0100 Received: from ediswws07.ad.cirrus.com (ediswws07.ad.cirrus.com [198.90.208.14]) by ediswmail9.ad.cirrus.com (Postfix) with ESMTP id 86686820249; Fri, 7 Jun 2024 10:34:23 +0000 (UTC) From: Charles Keepax To: CC: , , Subject: [PATCH] spi: cs42l43: Drop cs35l56 SPI speed down to 11MHz Date: Fri, 7 Jun 2024 11:34:23 +0100 Message-ID: <20240607103423.4159834-1-ckeepax@opensource.cirrus.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: FntvNQd4mgZmpgeX5L1JE-4nfhYJj5Tg X-Proofpoint-ORIG-GUID: FntvNQd4mgZmpgeX5L1JE-4nfhYJj5Tg X-Proofpoint-Spam-Reason: safe Some internals of the cs35l56 can only support SPI speeds of up to 11MHz. Whilst some use-cases could support higher rates, keep things simple by dropping the SPI speed down to this avoid any potential issues. Signed-off-by: Charles Keepax --- drivers/spi/spi-cs42l43.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-cs42l43.c b/drivers/spi/spi-cs42l43.c index 902a0734cc36..8b618ef0f711 100644 --- a/drivers/spi/spi-cs42l43.c +++ b/drivers/spi/spi-cs42l43.c @@ -54,7 +54,7 @@ static const struct software_node ampr = { static struct spi_board_info ampl_info = { .modalias = "cs35l56", - .max_speed_hz = 20 * HZ_PER_MHZ, + .max_speed_hz = 11 * HZ_PER_MHZ, .chip_select = 0, .mode = SPI_MODE_0, .swnode = &l, @@ -62,7 +62,7 @@ static struct spi_board_info ampl_info = { static struct spi_board_info ampr_info = { .modalias = "cs35l56", - .max_speed_hz = 20 * HZ_PER_MHZ, + .max_speed_hz = 11 * HZ_PER_MHZ, .chip_select = 1, .mode = SPI_MODE_0, .swnode = &r, -- 2.39.2