Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1577168pxb; Mon, 8 Mar 2021 00:37:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGBPSdWCecmgjWGvG3Ys/hLm/b0hO40IDAFjvh2UOJNQ9Wwd6zq601lfeeYDDykkwsRRF0 X-Received: by 2002:a17:906:bccc:: with SMTP id lw12mr13804918ejb.268.1615192631417; Mon, 08 Mar 2021 00:37:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615192631; cv=none; d=google.com; s=arc-20160816; b=ZeqiPosNc0TpqKAQ9sPze6EWgF6K9CGRHDjpynkVY9vq/HnuDSZVX/UTS/mAcW7B/O inE+OgjIAF/+HFKMKkpjtDCPCEYAt1aE2Pt1KtfssRN61gRVqitiKZhtt4ucsp6GEjCt OgG0Tt3xXmHxrX0tt/I0nr9Il9CAYGLj1LoBROkggO7ctnFok5OmdaL8Yl4ep74b8ei9 ul5tl/gU6R+d1e1emH51AyjngNW6RLK2VGnD/YwFEoko0lUgEMVIj1FUEjigLtYiJ9ya FRzDFRR2+ulsbHdA0useoVHhdu+52nwspQ7Y2N2gr9QXL/poET7+4w6Azatc5OW2/SoU lDQA== 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=6qYg+DJBSG1Du8y4MYkkOeqRrd9rwS5CN17jsGP6xzU=; b=N/1MpSO9iKts3WzFo1M2gLkptzo4tdQzYku0H5bY5mLbxB7PskLiWF5P9kDlRiRLlu yIBn2sOGW3YxzyASJlYeW+MksUYemjM4XLhFb88XcwQUKLI+ZFWr1oI7z1jK+YM+8Mjy OsJAlJdoDJoDekfXMe3n/VNQV9M6/s2ivUj+ZCe/hHnh4ZaKk/f9gxZRfllDFEPMvJe0 g7kDSpS7iL1orStUoRVhCdNg0bUnoROpqSsLQ3jXSLtno5sN6DlJDNREq6iPpIcZNkrK cxMWILmCLimXwSe/GRrQcxlZjEgWpU+GsuFDAGM0bwtr+2km47f90fnzXpYiMtL+80BY X9ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=WA6IpcBH; 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 s10si6351573ejy.131.2021.03.08.00.36.49; Mon, 08 Mar 2021 00:37:11 -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=WA6IpcBH; 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 S233591AbhCHB77 (ORCPT + 99 others); Sun, 7 Mar 2021 20:59:59 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:56212 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S233588AbhCHB7t (ORCPT ); Sun, 7 Mar 2021 20:59:49 -0500 X-UUID: 5829353be91c45ce80dc07f32882201d-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=6qYg+DJBSG1Du8y4MYkkOeqRrd9rwS5CN17jsGP6xzU=; b=WA6IpcBHguky+rMLAFcyeVeWfUfnqQYsRTb61ouCgT1I0ZyCZePG80OX9mfkEuH61webF2JR7kblsyqAwLYBVgnRR6TuJQkIfPfOXB4TsBGTJ/4vYovdhyD7mruRBO+S5rJJBhN+k4ZwSNlS88y6kVXiEGZMfT45EsTO46FcwVY=; X-UUID: 5829353be91c45ce80dc07f32882201d-20210308 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] 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 1233242520; Mon, 08 Mar 2021 09:59:34 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 8 Mar 2021 09:58:37 +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 09:58:36 +0800 Message-ID: <1615168716.32109.6.camel@mhfsdcap03> Subject: Re: [PATCH 16/17] usb: common: add function to get interval expressed in us unit From: Chunfeng Yun To: Alan Stern CC: Mathias Nyman , Greg Kroah-Hartman , Ikjoon Jang , "Matthias Brugger" , , , , , Nicolas Boichat , Eddie Hung Date: Mon, 8 Mar 2021 09:58:36 +0800 In-Reply-To: <20210305153312.GA38200@rowland.harvard.edu> 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-TM-SNTS-SMTP: AA76056FEB5929E229E6F99F439BC3A0267241E9DCA4D6CBEACABBBCC2768C852000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gRnJpLCAyMDIxLTAzLTA1IGF0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