Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp2097523ybb; Fri, 29 Mar 2019 19:04:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9dtDSS8S9715BPgkmToKq1bG8IhwoH+c2LtXKHTCjVVNNfYaLEkutMK+Jww+shHoE43R7 X-Received: by 2002:a17:902:b617:: with SMTP id b23mr49475117pls.200.1553911493650; Fri, 29 Mar 2019 19:04:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553911493; cv=none; d=google.com; s=arc-20160816; b=YWNnn28bFM8Y/g3GHay5kQJiT9mVQ2URRkZKoNrY8x4DLMnVeRiloI+x8sT96dXZe1 c/wQTotrdOZqLqHbBs3CeP/TQejjW7A9aF0tcsNOG346/FDq3CG0r4/fy9iPTWuZ97Uz 0O174bVR29Ws1omJh55bVlAWmsBMcvaTqPE4XGgR2rn02yYQQWGS+92M6oj4is5slZ4P NE1zCOCQdPTMz8ahq1iFX8lW90yS2IhqG+gxH0wmPxsuBFLf7Ao7jiavhO0vzIWKYJEk qH+AjJC9v/wuWyWEu09ksqLRA6RbKtCZ8EK2hSGaTiPHiZEUhq8zkm5tPa3XK3bxhyGK +UMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=wUnSfqfA+j6+siQ1D4bG72ZxAGfv1+HKUsfbbh9u7UQ=; b=tFJl144/l6cCFe7f06wmmqiytH0JoMlTJPxdwWlrpQzfBgvv9nbFWOgJjNyQcBzTKQ Yd+td+2BI9OXmUCUuaAPdFdZlOuLKHxvXydNyX1g+wb6aNF3sJChWVSPWVXkkNn0EPC8 kXgIhLrROT2ZB6tF9ichShKtjQiM5B3rJ2pJHbraDGiSbmEdqzag6AllkkPKWiuKw7aM EYd7s2NMQHpbUKRqMUpCeWgMYnVGjP45uAVavLldvNoHp5mEKY2NnG+5YwlJR8swoM4F +ZLbaBovBt1GbM5wGMoxylnDTMZ1qD4qnV+NNg1sGS0d8lsfSLchsF48PaVoiGI4mH6q rMOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u10si3189823pgh.255.2019.03.29.19.04.37; Fri, 29 Mar 2019 19:04:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730236AbfC3CED (ORCPT + 99 others); Fri, 29 Mar 2019 22:04:03 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:2099 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730107AbfC3CED (ORCPT ); Fri, 29 Mar 2019 22:04:03 -0400 Received: from DGGEMM406-HUB.china.huawei.com (unknown [172.30.72.53]) by Forcepoint Email with ESMTP id 518A5EDF6931E36797A6; Sat, 30 Mar 2019 10:03:59 +0800 (CST) Received: from DGGEMM423-HUB.china.huawei.com (10.1.198.40) by DGGEMM406-HUB.china.huawei.com (10.3.20.214) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sat, 30 Mar 2019 10:03:58 +0800 Received: from DGGEMM527-MBS.china.huawei.com ([169.254.5.15]) by dggemm423-hub.china.huawei.com ([10.1.198.40]) with mapi id 14.03.0415.000; Sat, 30 Mar 2019 10:03:54 +0800 From: Nixiaoming To: Stephen Boyd , "jbrunet@baylibre.com" , "mturquette@baylibre.com" , "rnayak@ti.com" , "sboyd@codeaurora.org" , "soren.brinkmann@xilinx.com" CC: "linux-clk@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] clk:Fix divide by 0 error in divider_ro_round_rate_parent Thread-Topic: [PATCH] clk:Fix divide by 0 error in divider_ro_round_rate_parent Thread-Index: AQHU5g4qGuS4E91IJkeHCCRnAu+mCqYirwcAgAC2brA= Date: Sat, 30 Mar 2019 02:03:54 +0000 Message-ID: References: <1553850324-25625-1-git-send-email-nixiaoming@huawei.com> <155389932276.20095.12054188967513679921@swboyd.mtv.corp.google.com> In-Reply-To: <155389932276.20095.12054188967513679921@swboyd.mtv.corp.google.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.57.88.168] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMy8zMC8yMDE5IDY6NDIgQU0gU3RlcGhlbiBCb3lkIHdyb3RlOg0KPlF1b3Rpbmcgbml4aWFv bWluZyAoMjAxOS0wMy0yOSAwMjowNToyNCkNCj4+IEluIHRoZSBmdW5jdGlvbiBkaXZpZGVyX3Jl Y2FsY19yYXRlIFRoZSBqdWRnbWVudCBvZiB0aGUgcmV0dXJuIHZhbHVlIG9mDQo+DQo+UGxlYXNl IHdyaXRlIGRpdmlkZXJfcmVjYWxjX3JhdGUoKSB3aXRoIHBhcmVudGhlc2lzIHRvIHNob3cgaXQn cyBhDQo+ZnVuY3Rpb24uDQo+DQo+PiBfZ2V0X2RpdiBpbmRpY2F0ZXMgdGhhdCB0aGUgcmV0dXJu IHZhbHVlIG9mIF9nZXRfZGl2IG1heSBiZSAwLg0KPg0KPl9fZ2V0X2RpdigpDQpUaGFuayB5b3Ug Zm9yIHlvdXIgZ3VpZGFuY2UsIEk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