Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1663495pxb; Mon, 8 Mar 2021 03:22:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQ5ZcC2ENDaf0DvuWLrao4EUmS4MvIt2ef/oI0IYuncYJLxmmaWcG4mmKvBcVJ3K3HK1y2 X-Received: by 2002:a50:d753:: with SMTP id i19mr21449665edj.43.1615202573794; Mon, 08 Mar 2021 03:22:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615202573; cv=none; d=google.com; s=arc-20160816; b=Sgt7pJ82dHzjmtV+ZN18hC8m0aOje2KrjetvujKWnzJs3L+BSvSPXQy7LfDCAzmtrn 1czb/wdMo5ap9XCE9PEySFZNQspDa9bu6hXNaXEnnZr5jypeEFt3lzVU4GqlvmTk+1JZ H01qH4qgul6hl4zMyhf0pmcqJwZa5Yz7oemiMoiyqfCZ3+Cv/3OiGFF7HIKiRDS8dR/G Ruw4PFtgVTiyTIjg0e5nEY+mAK+/3FbWZpy9Je3qptGIi1J17I9Ni3QH8enzvNtAgkON nrRJPjHe5T9qRwAMQxUCYU62+ul88WpuAaA/GhOu3ihcksG70U8Fqok30MWApl5Jr0Zf bJBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=WRBBl42OmvF/JPWrQ4eU/UZvz8wqfDrdOuxM4KcfRPw=; b=eeo/ZZeX7FW61TlkMuf2gf2b3lzBpalxz2tYRPh/V5Yf2RDrjhkbJAgIngUXUo4pzc ZarzD1whPw4ljqXoZEW/+Q55eFAXN7OEHJ1uDXf6d3fiTGA9Qry+gOLd2i60H/RmIo+C BchnV8xHIH4cfi3pURMW9/FsTUfE28Icfybr3vLgPtKttyQF49Xi5bpOBHu9dTxAhyTR e4Svi/VkMQxhf4DGxJR9n9AhIOxCFGaxujWpK2MduZ1iyhyUkVM1JjeNAPc+RM8zOGeA gcoerKetiiZJET9m/3LQzDlPgTRQMuTc2c03HXIoiX9bYsabYN/Mm1TTC4uSfIO2hl9r +Z4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=NwGGS9B3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r16si3965734edw.458.2021.03.08.03.22.31; Mon, 08 Mar 2021 03:22:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=NwGGS9B3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229813AbhCHJsK (ORCPT + 99 others); Mon, 8 Mar 2021 04:48:10 -0500 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:54810 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230124AbhCHJry (ORCPT ); Mon, 8 Mar 2021 04:47:54 -0500 Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 1289VcbB010106; Mon, 8 Mar 2021 03:46:55 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=PODMain02222019; bh=WRBBl42OmvF/JPWrQ4eU/UZvz8wqfDrdOuxM4KcfRPw=; b=NwGGS9B3bqGznpTtAJKdUdDfntO9qG+VriMwwd+BInZo47Z9ew2QhiNxwubCQpW/G4L/ zNQOaG6ffrmd5SizxzUyvx62ImPAtRaYMjeeuFDbgara0FMf7pHO0X5fwb2VXjVK85oB A58N4PzO4KmXYzxrGgCbo7WxXEe5aEYQPxWKpued5AdZRGh+HeOG4vOmErTyDGV8YKtX cXowPixyMSm/kjvUX1wG+7+gTRuKVuW7hCb1ourUFjP6rA3YzF2XQbVSDDlYQQvJTPB+ gCL3cFehC/gomifByGU2bEgZxGwFij8y9TRbPp66cG2NrBBDb1ntN294gCIQhd87ISxK BQ== Received: from ediex02.ad.cirrus.com ([87.246.76.36]) by mx0a-001ae601.pphosted.com with ESMTP id 3748199qmx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 08 Mar 2021 03:46:55 -0600 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 8 Mar 2021 09:46:52 +0000 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Mon, 8 Mar 2021 09:46:52 +0000 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id DC0DD11D6; Mon, 8 Mar 2021 09:46:52 +0000 (UTC) Date: Mon, 8 Mar 2021 09:46:52 +0000 From: Charles Keepax To: Shengjiu Wang CC: , , , , , , , , , , Subject: Re: [PATCH v2] ASoC: wm8962: Relax bit clock divider searching Message-ID: <20210308094652.GH106851@ediswmail.ad.cirrus.com> References: <1615170877-25918-1-git-send-email-shengjiu.wang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1615170877-25918-1-git-send-email-shengjiu.wang@nxp.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 suspectscore=0 phishscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 impostorscore=0 mlxscore=0 adultscore=0 spamscore=0 mlxlogscore=999 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103080050 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 08, 2021 at 10:34:37AM +0800, Shengjiu Wang wrote: > With S20_3LE format case, the sysclk = rate * 384, > the bclk = rate * 20 * 2, there is no proper bclk divider > for 384 / 40, because current condition needs exact match. > So driver fails to configure the clocking: > > wm8962 3-001a: Unsupported BCLK ratio 9 > > Fix this by relaxing bitclk divider searching, so that when > no exact value can be derived from sysclk pick the closest > value greater than expected bitclk. > > Signed-off-by: Shengjiu Wang > Reviewed-by: Daniel Baluta > --- Acked-by: Charles Keepax Thanks, Charles