Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1576347pxb; Mon, 8 Mar 2021 00:35:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJzt/WRdMeZYhflVMA7JqF+VdwYt1Jg8rzOuip2BGvqTgvDKth00zZbaHxKH92pOxsgO+YE3 X-Received: by 2002:a17:906:7384:: with SMTP id f4mr14104284ejl.196.1615192528139; Mon, 08 Mar 2021 00:35:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615192528; cv=none; d=google.com; s=arc-20160816; b=MYRFMX5JdIE649kkFszVY+AvtwLy5Tixgb30dsIV+A7+IW0/UxtTpI6jkUUDjlxcGh dMN2aQj3T2cGZM+UoLMqAF7kJA0ue/o/XpQ5Zav1iemyO9l/7lLaW+rALBm5ErzqxTf0 xmV70AYDoGi8hU9p17Jf2FU5MimRfQknbk9jOd79o2OnXnrHGehpoIl29lweiW89O6w+ 9Da/pkhhnFISaomOaEoDZn5zXfVAZpro/BQjwRAjZhJVEhZW6ShHQca5n0Fq/+9M2eiz Sit72QrmBDi/Kg5wXAZa75b6xrXXHM13bgtZLB9OSFVaxAYl/7+ott1CcN8+BXLfI5/m 9C1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=h9EFUsdAxVRzuiXK7xWjWP87blcUdQUpQQm0u2fICNw=; b=ScDKy+gxEwO3W8JWkek2uoEOVdmsUIhACf/+YkRMUJvM4PFdCVCWs+f0c22pjxQPmb w5RfK0UbzAhYLIVB6bC7FfgEmaN51q7PN+W+Or+F85IrzF0ZRMgzkUOVSPaT/W1WUVtw JERJM5HpDVRujr5K6ovD5r/embfXJYwKjSVJUDkqqkgE4MXYjpvrW6jFEmC/qtfh6hzc lDuugVi8oMn/j7j41u5pKJnVBS+iLbPm3X0KCl5xeqHno+qER8fdBOdAyV2R44zRMRro uE1PwxpTcEr7XptH4rhFYHtuf5WHZs0U4gIw6LubkwHlQi4SoL10EFEg6o3iQuVvILZh kNfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=n491iP+j; 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=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j4si6441582ejm.600.2021.03.08.00.35.05; Mon, 08 Mar 2021 00:35:28 -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=@mediatek.com header.s=dk header.b=n491iP+j; 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=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233610AbhCHCDx (ORCPT + 99 others); Sun, 7 Mar 2021 21:03:53 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:58981 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S233603AbhCHCDa (ORCPT ); Sun, 7 Mar 2021 21:03:30 -0500 X-UUID: 8bd91272d3124da98a3d0da25188a2dd-20210308 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=h9EFUsdAxVRzuiXK7xWjWP87blcUdQUpQQm0u2fICNw=; b=n491iP+jrdJnh4XyGzeRmrVX+IfLITLtfny/ydVs9HrILSLBFDWlqCK7A23M0cEleivwuUud5MMgbgmYfU5Cz5HxUTJlOA24qdIVw7kNeoifj9KbOICD5nFq2RsCWa/bBOF2Qc6fHx45czldN8cra/pgj1ildZXcSZdmNwjwbLo=; X-UUID: 8bd91272d3124da98a3d0da25188a2dd-20210308 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 264082348; Mon, 08 Mar 2021 10:03:25 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 8 Mar 2021 10:02:23 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 8 Mar 2021 10:02:23 +0800 Message-ID: <1615168943.32109.8.camel@mhfsdcap03> Subject: Re: [PATCH 16/17] usb: common: add function to get interval expressed in us unit From: Chunfeng Yun To: Greg Kroah-Hartman CC: Alan Stern , Mathias Nyman , Ikjoon Jang , "Matthias Brugger" , , , , , Nicolas Boichat , Eddie Hung Date: Mon, 8 Mar 2021 10:02:23 +0800 In-Reply-To: References: <1614934975-15188-1-git-send-email-chunfeng.yun@mediatek.com> <1614934975-15188-16-git-send-email-chunfeng.yun@mediatek.com> <20210305153312.GA38200@rowland.harvard.edu> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gRnJpLCAyMDIxLTAzLTA1IGF0IDE2OjQ3ICswMTAwLCBHcmVnIEtyb2FoLUhhcnRtYW4gd3Jv dGU6DQo+IE9uIEZyaSwgTWFyIDA1LCAyMDIxIGF0IDEwOjMzOjEyQU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