Message ID | 87374ceqtz.wl%kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 80FC860224 for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 15 Dec 2017 08:26:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F63A29E16 for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 15 Dec 2017 08:26:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 643C329F1C; Fri, 15 Dec 2017 08:26:28 +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=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 297D529E16 for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 15 Dec 2017 08:26:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DF8C96E79F; Fri, 15 Dec 2017 08:26:22 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from relmlie2.idc.renesas.com (relmlor3.renesas.com [210.160.252.173]) by gabe.freedesktop.org (Postfix) with ESMTP id 369046E767 for <dri-devel@lists.freedesktop.org>; Fri, 15 Dec 2017 01:22:39 +0000 (UTC) Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie2.idc.renesas.com with ESMTP; 15 Dec 2017 10:22:37 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id 749115A6AA; Fri, 15 Dec 2017 10:22:37 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.45,402,1508770800"; d="scan'208";a="265172855" Received: from mail-pu1apc01lp0024.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.24]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 15 Dec 2017 10:22:36 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=efhV4F5liDAcAZelDuit0VxPCqR1AZkhxUeds1mmbx4=; b=NV4DBfKmkQNuWvbZ0yZDpl1tY0tcJCcrjSEoN7Tb9OK0TcNZA7CvKaH/vLLbehsaJQ15Qpcme3ezarkAusfloWy2dP9btls+DIC094KUhfpj9bl5Z0S4ZZnKDRh7pnOfocymkV/RYfCSiNLpHcmZFVeyEQgAxEYEalTOjZCNEb8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.138) by SG2PR0601MB1887.apcprd06.prod.outlook.com (2603:1096:3:9::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Fri, 15 Dec 2017 01:22:34 +0000 Message-ID: <87374ceqtz.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Subject: [PATCH v3 1/2] drm: rcar-du: use 1000 to avoid misunderstanding in rcar_du_dpll_divider() User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>, David Airlie <airlied@linux.ie> In-Reply-To: <874loseqvp.wl%kuninori.morimoto.gx@renesas.com> References: <874loseqvp.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Fri, 15 Dec 2017 01:22:34 +0000 X-Originating-IP: [211.11.155.138] X-ClientProxiedBy: KAXPR01CA0047.jpnprd01.prod.outlook.com (2603:1096:402:1a::33) To SG2PR0601MB1887.apcprd06.prod.outlook.com (2603:1096:3:9::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ffd3904b-bcf8-4f13-a3ca-08d5435a526c X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603307); SRVR:SG2PR0601MB1887; X-Microsoft-Exchange-Diagnostics: 1; SG2PR0601MB1887; 3:vCjvSzyclRXR3hUV7BAnLqymB2znZLVHcXiPBHjBn1fboBPOf67kc8l4UdA6lLjNwMaISCljOfUliNUKoiMxocMhCWmKRHZPXH05O40OtGKHBIaEsOZXvxpkN9hoi56PULIIVYIJ+4/joTiX4dud0RF4kvvC3wNbqL518wU3XbNJMBa4YyIMkMAs2i2oXXn2UOUOXa8D3n2mJYGep/EQi5gzDF3C5IM2AzoG4gkqYw0i+TLtG539RmNrYD3aQoUY; 25:hhl1LzlvZr1BrDNPBsyeIoUie3dlaaE7kqlQjwDJNEA9mAyJev63F1ERqL1eonX+Wbzuto4/6Jr3c/eMWoXEV0X5vjRx8hkIyRCfreLgCIq0pdAuYRHhr7tYdcksax7g0jfVaaLaiPq0urEAO7AOi2jcUZJNlrMMZ5VtL2gvEllWLyMDJRv7Q0IkrduZ3ndS+XQy5i6nDT2N8R8aHbWplmUyRglJspHp66hddCeuJVv+j7Wx+XeL5r3/9uDtIyyN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rYEMX1kc8mMVEcIwO5cXHNIZpZNLcPev9Lb41ELrLuJFIszoFa8oQOT6lYT4WB+o3rTETpzcadueYjhIqwiXIlb/WTmf8EiARNwDD1Fi1egZWRhZll+SjZGc9Xxuhq+KQ== X-Microsoft-Antispam-PRVS: <SG2PR0601MB188767B7738FDE5809EF816AD40B0@SG2PR0601MB1887.apcprd06.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231023)(3002001)(10201501046)(6055026)(6041248)(20161123560025)(20161123564025)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(6072148)(201708071742011); SRVR:SG2PR0601MB1887; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:SG2PR0601MB1887; X-Forefront-PRVS: 05220145DE X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(376002)(366004)(396003)(346002)(39860400002)(199004)(189003)(478600001)(7736002)(4326008)(305945005)(8676002)(16586007)(110136005)(2950100002)(58126008)(68736007)(316002)(66066001)(16526018)(47776003)(54906003)(50466002)(5660300001)(81156014)(81166006)(36756003)(86362001)(105586002)(76176011)(52116002)(7696005)(106356001)(23726003)(6116002)(386003)(69596002)(2906002)(59450400001)(25786009)(3846002)(53936002)(6486002)(53416004)(97736004)(8936002)(83506002)(221023002)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR0601MB1887; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: renesas.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SG2PR0601MB1887; 23:T1NRAx+phB8KXU9i6RBmkEQ4PnrJlV9e8v0u438?= =?us-ascii?Q?EkUusdbfeD0NB4pWcbJ5GOiSKO8E2EgKVANeL9FXu6HcXvcT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jwM9qK4tPDL0kNYFP7MJUA+1mlwUznV5t06Do8zucorUFML0Lb+AZVfjRCNkPmzqnBMPMCIgjXJkm260CDibl1uHAFsxXjdkxFWCtWPO5 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SG2PR0601MB1887; 20:nCqRYUcgK/X3dOdm0fD2D80X/LK/3gJpuxUP9tABsbqnH6Od5VREHbeYq22kRteBz4M7gdZOljgiKUhsJcMtdjjY0b+srNKwrEDA2V5wYcm0FE8A80whXR7X7q6UPzttm09bGT776RF+TacUb7kGoehVP1+Hl+FsMuScrxKdHCQ= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Dec 2017 01:22:34.3481 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ffd3904b-bcf8-4f13-a3ca-08d5435a526c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR0601MB1887 X-Mailman-Approved-At: Fri, 15 Dec 2017 08:26:18 +0000 Cc: linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c index 5685d5a..6820461f 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c +++ b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c @@ -132,7 +132,7 @@ static void rcar_du_dpll_divider(struct rcar_du_crtc *rcrtc, output = input * (n + 1) / (m + 1) / (fdpll + 1); - if (output >= 400000000) + if (output >= 400 * 1000 * 1000) continue; diff = abs((long)output - (long)target);