From patchwork Sun Feb 3 10:47:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10794613 X-Patchwork-Delegate: neil.armstrong@linaro.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 26B2B746 for ; Sun, 3 Feb 2019 10:47:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1551C2C14E for ; Sun, 3 Feb 2019 10:47:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 096342C150; Sun, 3 Feb 2019 10:47:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B29FB2C14E for ; Sun, 3 Feb 2019 10:47:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Gcp5xjevv2yp1AbV1nbhm/Pl2dAQZLcj9vHfu5cbgBg=; b=t3ATEE3NSvxhKp jZdoIIX7gEul4CAmDqQTwDuOTln3B9+bBIucX0KlI+emi3kNhFoQ8zk/KdPl3swePNHei+V+BgM2U yQ7BihtYvPX9Bh9OcDqNkqmfNw5SE4R83dU2XqDq0ERMb4N2baJjKvbh6bzUH9YlO5My6iT8y6dxC 34XMw5XbCSkdUtcpnWC4WEALTBlzu+jr0/dYx5OBkfmwYsoSfIfDHdQaP4+S8xftHwRwfhJom1Liu KPEhdBCOhePzR9Ej5w2kplJDUEGwYkemsM9E4N7cNEQLtFq573TfX65c/apJfiw/ff2+tHyydTb0S quW591PmHirr7/ZODtmA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gqFJb-0002tQ-9M; Sun, 03 Feb 2019 10:47:55 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gqFJP-0002kE-JA for linux-amlogic@lists.infradead.org; Sun, 03 Feb 2019 10:47:45 +0000 Received: by mail-wr1-x442.google.com with SMTP id q18so11443149wrx.9 for ; Sun, 03 Feb 2019 02:47:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2oFjeI0j/c0fWIH9q7P4tOfETnpU6mMj5SgV/gv7eMo=; b=gj8RW6JvjXlGZA2nMGj95MdTDvvmvdBAEBBpxo9omiQhsMvRSSX4/3E1RV6tAfk8Zs ldUTXNEiEIdu3SeNgFOiILkixmSVKWvCAsHwf0Ja7JJAMcj2d8eNHCx8/sMOd1Vq/+Ow YmYd8MKH4tcLRge7rLpjS3RAkqsoRLwtZshjLAKfX1gwc6l75JMYAvOSH6I8pV4BphuA +r7gOJBkYC+jk2eUjBFYRyonGP374zLFdNf4Vgiu5Vf9mtV3BCmvLyaB8jFhXwjJ1laP qEs5LCgg+y51cbPJImNkXW6ZhL4wEp9iv7qQ8SeUVP0kTGnxsyEGCYjHovM7TzmeCHVz dzMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2oFjeI0j/c0fWIH9q7P4tOfETnpU6mMj5SgV/gv7eMo=; b=uFmwtG7E5NgwGbfTtjRlzeQXfpgXtB8cCKwBA4Z7WRpxLEBZ+TPMrreZQyscLRr1/N B9r0erYNprGg8/ns07PTmKMIEwaDN9CR15SAAHrtWVIzBKqxYhJFtRTeK8l37teRrLFl vXDXwfJKtOtVIleCKQ1VgjZAAGTiXurPnLEUms32bDEtsRTyqpJUtmU4QwJ3UGffEaVB UK6XSKKqYQeCF5fwdSnEOP+fwIaN1nCUXQLhxI4yLDPNQ+5nfMlMgZbdcPihGryM2B3p eR9WUJwnFKSVUo1ksvPMybGZWk9stxcIm4TkTgIQF7ud4bjk+zGBXpmdNksfhtZiedol WFsw== X-Gm-Message-State: AHQUAuaUeE1tSg6Fa0lCNkleVghHkENO0Kz5G2NrccgGM91OXtIroM3y 8oiAyqLBzaLJltqi2l9eXJywtw== X-Google-Smtp-Source: AHgI3IbOYPIibgyvxsOaUIEAVVMLabHQW5SKNW6m1FuLtW1EswHYkuyRKw3+j/ckYgithODTJMs2Bw== X-Received: by 2002:a5d:6803:: with SMTP id w3mr7005601wru.272.1549190861330; Sun, 03 Feb 2019 02:47:41 -0800 (PST) Received: from boomer.lan (cag06-3-82-243-161-21.fbx.proxad.net. [82.243.161.21]) by smtp.googlemail.com with ESMTPSA id q12sm4702470wmf.2.2019.02.03.02.47.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 Feb 2019 02:47:40 -0800 (PST) From: Jerome Brunet To: Neil Armstrong , Stephen Boyd , Michael Turquette Subject: [PATCH] clk: meson: fix pll settings calculation with arm32 Date: Sun, 3 Feb 2019 11:47:16 +0100 Message-Id: <20190203104716.10479-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190203_024743_723541_97210028 X-CRM114-Status: GOOD ( 10.26 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Hilman , linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP fix undefined reference to `__aeabi_uldivmod' when dividing u64 on arm32. Fixes: 496c0462b46f ("clk: meson: pll: update driver for the g12a") Signed-off-by: Jerome Brunet --- Neil, Feel free to squash this with the offending change. If you prefer, I can submit a v7. Cheers Jerome drivers/clk/meson/clk-pll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/clk-pll.c b/drivers/clk/meson/clk-pll.c index 7946d21a4ff4..41e16dd7272a 100644 --- a/drivers/clk/meson/clk-pll.c +++ b/drivers/clk/meson/clk-pll.c @@ -151,7 +151,7 @@ static unsigned int meson_clk_get_pll_range_m(unsigned long rate, if (__pll_round_closest_mult(pll)) return DIV_ROUND_CLOSEST_ULL(val, parent_rate); - return val / parent_rate; + return div_u64(val, parent_rate); } static int meson_clk_get_pll_range_index(unsigned long rate,