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: 10794611 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 8DB9B746 for ; Sun, 3 Feb 2019 10:47:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7CCD52C14E for ; Sun, 3 Feb 2019 10:47:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 705DC2C150; Sun, 3 Feb 2019 10:47:49 +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 2B8562C14E for ; Sun, 3 Feb 2019 10:47:49 +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=wKXfNxScUpHAE3sZKppNi3NNYhb6mazd0ID1qpJGqII=; b=Xh9x+DJzEA7GGT HSPfRHAmhrs/wVYUmkb0BApGZfDoWc+c/zkAJnU/Jlhs8LtKK/HaRq4ytT1/ixl7er1XXkTKv9gr0 3875CnJXrALNfosNidF3LCFQYN7FnK4PH2g3f4F5boMIcRaNqfkjchrsaN3LbgukD5Fm+8lNcEPof 6nEbUJu1whImjrK4DCrbrONHBVu02DuY9zHIS1S08MUNrEx2rMYn8UFuXUXrULWQbOetxW+ukrQ4j ZeMxRdXzLXrGRxao7vgF1k6Pfb2nfvwrUKBijogz4G5mttzgje+JGZj7X6xtTXu2R7czBDvlcljsz 5qbOYSHorHqK+KpBV8Nw==; 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 1gqFJT-0002kv-6O; Sun, 03 Feb 2019 10:47:47 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gqFJP-0002kF-J9 for linux-arm-kernel@lists.infradead.org; Sun, 03 Feb 2019 10:47:45 +0000 Received: by mail-wr1-x441.google.com with SMTP id z3so440941wrv.3 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=bwfTY8oPECYS/qFHhBEop9j/Z677/hDXUX0klu0G6d9PmVQYJN/0ySP5nXyonRMUYn qV8AlI6ASrkLAIjQYDKAQ+kvrrdE3JdWucznvqvtcfAFftcBwAJMlNJUSFrk+wvFGOVO AdK7yF92lYZIoG9FTxDsHEdqypYjSkbzV7X0w6SqVsJAoqk7NFY7svm5B/e9ZKpa+UKp epEejBfYxnsOC4QALnim/YtAPovFZCBAUxd2AsbouOUi/Xj5HZ00Pnm89DEcXtvQ0sym u4I/pXZtyq1d1t+Pfb2Ug9/Zb8cri7j4oqGk6WvRzX939pwfcEzlQ8+774aa3AbBL6y5 tspg== X-Gm-Message-State: AHQUAuaBNhCLVEGW7r6rcl+nFGLv7ILzidY4ikoQUe1PHUQXUrqyEX76 Hg9RicSjrcM2BcyjkGvrsT3U5Q== 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_680777_F71854A1 X-CRM114-Status: GOOD ( 11.71 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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,