Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp912190lqt; Fri, 19 Apr 2024 14:38:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFZbqET0eVnItTCfettiHL3rSmE8mO86NUQ2xY0qonghHrmKw4tsj4xMjuWUxlCiWrwX6twbnUoZfYLaGLfQcvuBSTeJTxWByvXJyE4Q== X-Google-Smtp-Source: AGHT+IG4j/ZDIHdGKp9sOMGWhybBZ8eVQu+OIfYBsHEnNLD4+0iqTaG4rmbdcFGkUFbNlL5pW/H0 X-Received: by 2002:a05:6e02:dd2:b0:36b:ffc4:cd1d with SMTP id l18-20020a056e020dd200b0036bffc4cd1dmr2077074ilj.5.1713562716858; Fri, 19 Apr 2024 14:38:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713562716; cv=pass; d=google.com; s=arc-20160816; b=SJnphgoIc0Nh2QBH9hxu9AmgH5xOj/W73aj7u9tpirDDR1dWdE+28yJTugLvq+lMfF YzzxOng2Td2LAw/xux+hMcLU0Fyu1WqkwcWeQWHV70ArxqagDhYmjYSUCahoFssbPS+M dawQZzSwkd0xPSxT2bv6Z4t9sGipIPtxvRNz97oRnnozlhlNf2dI/riYKlBFcYejCQIf wL1XkOOxqZA4cnCTUb+x8zc1f4pfA5kVYJd1TuWbgQBVmc9RMaEFKtxGkIH9iOZX79Bb kNdipn6YPNF3jhu/8Os7jrO+cXdY2L2pqjVzAFI+InlhTI+iNtjxPZ2FK0m5T/DVb3/y rVmA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:date:to:cc:from:subject:references:in-reply-to :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:dkim-signature; bh=mvlAGfAA1dpSHwoNQqk6yoKk8MhHUYLf1wO+6CpQT9A=; fh=lEvlZqIn+C13+Cuskd3JdGPrMfktjOmzs5RAtaItPIw=; b=MqWvqMcOM0FIdNCqNm2zXJGh3cTxZPHmA7Zbd4FMUwmg2QV5S8Wc9ZB3Wv0t6L0SMt 75dCq8TG1BDCPFy69C0yZH3MokPNLVk66+K5pNmT75RcP89JzM5sfBHd8Tly5StQJnnO T/ZKllFXk1QkIP6ANqjsZ4+Q96P/I70Kcbso+2Udoc1uYzACGas6Q4eVb/KPHUAfw//P awmyLkpjNyRaRrYlndvhSx8Hit8vJ6lBBN0qLhmGQhxIfPAqu8RqoS8Ua5VxA7/ONXZ+ D++ESTU6mK3JgOBw5Ze/dLTkoYa5Bq8FRLPx2S6kHjTe3MmSvnvZy3GEMMtISNu+cu0q KVSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="q/lY6Xyo"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151975-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151975-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f2-20020a0562141d2200b0069b0f2ca471si4777620qvd.30.2024.04.19.14.38.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 14:38:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151975-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="q/lY6Xyo"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151975-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151975-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 8E9311C21BD7 for ; Fri, 19 Apr 2024 21:38:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E60013C9D4; Fri, 19 Apr 2024 21:38:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="q/lY6Xyo" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 71F772BAF3; Fri, 19 Apr 2024 21:38:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713562710; cv=none; b=fVsia2LROtYDXo5u1dZRkLIZ3s/xlr1QfltB17jz6v5HXoViRxl0lPahunJReBDo73kIHZPyMAKhZXNsBDGWju+hNyLkzU6kjpivblrNLrXxr+qRZiXq1ffM2cdaeET8qeQ9ff7MKkmXdH6HvR9Ra5kYwSag0rXaqXqs2knzjG4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713562710; c=relaxed/simple; bh=mvlAGfAA1dpSHwoNQqk6yoKk8MhHUYLf1wO+6CpQT9A=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=kJASqVDp0UzgripF7aSIvlVRtdDLdNJrk1zVCLfTO9fTrKOm30xxboGAaPi2kk7Cc1KPIcli767RQ49C7GJqte/BdyGN+0MbnVXri2Xi2IjVJjkRa1Ij/YZ92dkEoHDkOD9AWYlhcoQQDj4lp2LSvlimUd2PQ28Pw+h+qKe3GW8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=q/lY6Xyo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2695C072AA; Fri, 19 Apr 2024 21:38:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713562709; bh=mvlAGfAA1dpSHwoNQqk6yoKk8MhHUYLf1wO+6CpQT9A=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=q/lY6XyofpQ4pgXSBr2EJkqjmE+Zz+WYXO8otUTSZJNlL7h+AcJLQVDs+6k0GE4MY SOHA6dvW7L0BJdq/N6azYIRyLWCzYCEk2Iu0KWqbu79AEzoEUBCop2dtfZqPT4B0Ob ix6bUSrJ7C7vB364cm08bljAzYOLea1Fp3kvX/6A0xhlO4X7sDacsD/DeFf8eflM+a Zus2ebq8E0G5IQKvBv3hAC4u6w/EHxYxllqvt3RCCO4gcS4HY1WIc4hMC8UHv+iJa5 4SJBC7ZgcCOI5I+riRFUZ/e+iGLa081AbxEWSQFqvzlOUqJFAyBvfHdLVsrU2SYO0o eKHynq6bOrjZQ== Message-ID: Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20240415134532.3467817-1-arnd@kernel.org> References: <20240415134532.3467817-1-arnd@kernel.org> Subject: Re: [PATCH] clk: sophgo: avoid open-coded 64-bit division From: Stephen Boyd Cc: Arnd Bergmann , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org To: Arnd Bergmann , Chen Wang , Inochi Amaoto , Michael Turquette Date: Fri, 19 Apr 2024 14:38:27 -0700 User-Agent: alot/0.10 Quoting Arnd Bergmann (2024-04-15 06:45:20) > From: Arnd Bergmann >=20 > On 32-bit architectures, the 64-bit division leads to a link failure: >=20 > arm-linux-gnueabi-ld: drivers/clk/sophgo/clk-cv18xx-pll.o: in function `f= pll_calc_rate': > clk-cv18xx-pll.c:(.text.fpll_calc_rate+0x26): undefined reference to `__a= eabi_uldivmod' >=20 > This one is not called in a fast path, and there is already another div_u= 64() > variant used in the same function, so convert it to div64_u64_rem(). >=20 > Fixes: 80fd61ec4612 ("clk: sophgo: Add clock support for CV1800 SoC") > Signed-off-by: Arnd Bergmann > --- Applied to clk-next