Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp12643446pxu; Sat, 2 Jan 2021 06:13:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJw3RTKrEVBiS1dW0G55sYn2Nlt1jAjtdebjGHnBdCWQBXh+6VAwgCg/llyeZMeOTT5sCPoN X-Received: by 2002:a17:906:a011:: with SMTP id p17mr59573526ejy.30.1609596810371; Sat, 02 Jan 2021 06:13:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609596810; cv=none; d=google.com; s=arc-20160816; b=ipQtVeTNczgpqWM9+PQfBirFlRVpwl3Cve8RbMK4xoJL005UvT4QjxzFXByicZ9HcZ S4muXczHBa38l9fQvJ33zuhisDhENWdjPtdZ4EU1de8lK6FNJ/UlVYd+hn8nLiexvjWU VdipFO72ydA96avXbxj84rbhwVcI3biEqr0D50G7Jj7u80rXLwbpNzspLLIM/nGi5XuR JKBeBJAi9Hf8sMIoJnxlDy6y59RtNgDH0cD7G/Uc/rfotNuV1uBDL5GfdYlHZO35DOtq /EXQ+zqr8QrTKBZJ+vcELzKqkzIakje5jOUnqqm/RWzpMEqpwnd5VcgB6K1oaXz/39Qh r2Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=lKECTOna1BDF0maAnj4w2Lve7i91JSIa8BduewhrksY=; b=SuZYh+wAIFnt+8njiVVfo+nsnP49oKiGgSs0i9BwHR03npO9cBaEpPrl9KPwdRo1t6 iR/u4eVzciL8quNgV4P7FtzfTJxPgpXj3dclPrC897DljTeKs2PquJ5PhSDRqUoQqq3r 0UxOOMsscjUmE3S2f8DkYjhgukvcBaP0vUBC39wUsnJVODDRYs6ycFAFPrcxW0N9Y3JE NzWdIHsBUKT7+KtWODyUR6PB2id9EfFMlimbvYImVw5IWms2cbnmlfMNY3Cw97rb6H8+ 30suoBeNgEbT9bMPpEFskydDWL7s0wGvowBitSShn66c3wYXR+Dyxb/109YUI4/ipaIF yeLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NDuuVGNs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n27si26157333ejc.673.2021.01.02.06.13.06; Sat, 02 Jan 2021 06:13:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NDuuVGNs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726642AbhABOMI (ORCPT + 99 others); Sat, 2 Jan 2021 09:12:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726561AbhABOMH (ORCPT ); Sat, 2 Jan 2021 09:12:07 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53AC4C061573; Sat, 2 Jan 2021 06:11:27 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id o13so53528087lfr.3; Sat, 02 Jan 2021 06:11:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lKECTOna1BDF0maAnj4w2Lve7i91JSIa8BduewhrksY=; b=NDuuVGNsXQJ3AgFeDJGw5lU+T4JvAqjJly4DhRp0dpIRlZPeN/zPOZ1H2GufeQC49+ uPl0d9GiHfqLvxL8xuXQOKdJWCNFKMTjvBAMutHuHJc1leS0a9QzSUpXmLDYdke375e8 OX5dij6iorXtxeC9d1YkYmSSJ+VoLgrbkrVAndZBTmePVUeo0TN7Ns7+eoPkzMeJtxKn bDnB1zhkCyE7X0XTI/c9FqSSOd2Jz/2PS4sgSszIMDiRiskbER0xpU3kv0Hg7LbSQaFo RC7D+7RWqQ6P+opwSQ9yQaqyolwywlE8zSx5hSMgt4Tvve45kYMsntoqzIZBFDKUjROJ SlKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lKECTOna1BDF0maAnj4w2Lve7i91JSIa8BduewhrksY=; b=jHSQGBhKmHttbFtvm2zrkAO7wPqSygTuBtUIqoYS5O4i039OHcvoR1z8QaVZYStH+O jj9NX9Hk28rJZivBgaabM8wyZA3eGSjvPV2NJUAb0yBo6La1Y8pPg4zfkinKoMYUrWf6 bKQjMjcpO1CN6WWccsh251xBaVglF2mnNl98XCnXBt3n/tVcxIrlSCM0IayagC9/PMyp WnTsfug35McYpYlh8Ym4oBSrY/Ukl95+CgL5+p1oJ5KdvYRzSgYeLy0jVHOH0yQCRbyM zZSowkRzLpTgN5uvnQC3Wwouk58J5hy+f1kO/IPUEFa9ieBTXKD9ugg70XGByqPXCEtL o8UQ== X-Gm-Message-State: AOAM531vqhh9JvhhkfdtgaC4p06kITR/BE1DP8SGlcTZ8BXu+pmpAS0J +za77iLOU+xmcN7GeIwp1OmI/ve3qUfND+nuKicaC9SJKHs= X-Received: by 2002:a2e:b80c:: with SMTP id u12mr30996412ljo.490.1609596685750; Sat, 02 Jan 2021 06:11:25 -0800 (PST) MIME-Version: 1.0 References: <1609556386-19422-1-git-send-email-yilun.xu@intel.com> In-Reply-To: <1609556386-19422-1-git-send-email-yilun.xu@intel.com> From: Fabio Estevam Date: Sat, 2 Jan 2021 11:11:14 -0300 Message-ID: Subject: Re: [PATCH v2] spi: fix the divide by 0 error when calculating xfer waiting time To: Xu Yilun Cc: Mark Brown , linux-spi , trix@redhat.com, lgoncalv@redhat.com, hao.wu@intel.com, matthew.gerlach@linux.intel.com, russell.h.weight@intel.com, linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 2, 2021 at 12:07 AM Xu Yilun wrote: > > The xfer waiting time is the result of xfer->len / xfer->speed_hz. This > patch makes the assumption of 1khz xfer speed if the xfer->speed_hz is You missed to update the commit log to 100kHz.