Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13544420pxu; Sun, 3 Jan 2021 19:35:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJzm0cxTq+yTNHbdVQktcqiUXOOvg8TnOp6ZXjyjr0kH2aWyy1+xKeI4rNwjkULgBe55PZJl X-Received: by 2002:a17:906:c83b:: with SMTP id dd27mr66269977ejb.356.1609731352704; Sun, 03 Jan 2021 19:35:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609731352; cv=none; d=google.com; s=arc-20160816; b=TLzdgX0jnJLXagShklz6Yi0VlioNMkI/ZidRwq2Oe/XhgYL9SqZq+PlAHDRLykx7lE PzM8He6V9pUe/80Gy1plfmi+pezRl0ROwC6cbm6fGVNDvHsu64KM4k+hQ4z/+HbfVjdS hIGomC+NZ08S0GlIA0qcBfw/7ohaMXly8/uNu4/1w7rP/kWRuViLU6cTLu6jf5VsifzL Lm0YwvJe9nEvReirLW5Q8VNr2Fbyvnt4sNI+nKTMug6UeuI7cvqsIXU5PvszmqDucVls fRaBvaYI/GfwBpzS/j6WO/gEs/0f/0z9sT8r5+n8mQbPXRspIxTzpflXiHHcGN/tVy6K 9cEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=W4h7VEEQ1SJDAqirlSl2LHtoqTSs4S5gx78iQcVHrUs=; b=UcQKThRpj5mZhRS58PJ3kX3bTRrLudAVuFKJRTwm3e33+2d7DAQ+QSbY0pi6G8RxXE Zu845oxUL+PrLtBwMRL2zqimxEKc+Uti/6Gy2EcK4iZaOljUkxCyM/zDemwLVXCJAN0L d/7HHVCNAtzbG4BTJmJx18K0DtlQoPsM+z0lQqmtEMFGouuk63qKrnONYLzvka3DYBbC iEu25o0By66fP+vl4nbZXNN0V0tGETl2ivs6FtuDeeknPvgwDhL6rGi6FVo0IvqvRrTl KJNdga9DY+Ib3zLonZiOXfOmU25CI5zZoakaVEhzC7R89f1Cf2GFiOcBwuVAiEK8jfxE abYw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l15si28271270ejk.413.2021.01.03.19.35.29; Sun, 03 Jan 2021 19:35:52 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727498AbhADBCz (ORCPT + 99 others); Sun, 3 Jan 2021 20:02:55 -0500 Received: from mga18.intel.com ([134.134.136.126]:20452 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727485AbhADBCz (ORCPT ); Sun, 3 Jan 2021 20:02:55 -0500 IronPort-SDR: k2oE00TtrAR43YOSAbkckNgXjxxHg3aptFT5Qb0zyUd+FKHd9lOaVy5Pg2/MWs4SBL+elulGVB htpwAe+LigQg== X-IronPort-AV: E=McAfee;i="6000,8403,9853"; a="164601975" X-IronPort-AV: E=Sophos;i="5.78,472,1599548400"; d="scan'208";a="164601975" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jan 2021 17:02:15 -0800 IronPort-SDR: sH8gU3O2rlIm9+0YZpkmnWl1Q89iMOi9CKRHmDtmsYNjPtcpqeeyj2ERf70Eu3d+qLl1jM80V3 w5cNW2f4w0fA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,472,1599548400"; d="scan'208";a="378205379" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.141]) by orsmga008.jf.intel.com with ESMTP; 03 Jan 2021 17:02:12 -0800 Date: Mon, 4 Jan 2021 08:57:32 +0800 From: Xu Yilun To: Fabio Estevam 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 Subject: Re: [PATCH v2] spi: fix the divide by 0 error when calculating xfer waiting time Message-ID: <20210104005731.GH14854@yilunxu-OptiPlex-7050> References: <1609556386-19422-1-git-send-email-yilun.xu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 02, 2021 at 11:11:14AM -0300, Fabio Estevam wrote: > 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. Thanks for the catching, I'll fix it. Yilun