Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp992986pxa; Wed, 19 Aug 2020 22:48:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFc/Y8a13rA7V69f+KKjoUXlXqNRmpifzAciOggXSmosqhkysMjyx2o+QeizjEnsEHRDpR X-Received: by 2002:aa7:ccc1:: with SMTP id y1mr1400577edt.317.1597902518752; Wed, 19 Aug 2020 22:48:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597902518; cv=none; d=google.com; s=arc-20160816; b=jiwGqblCT/wEc0JBf6NBEduVXZC0ereJGDye/YMxk3RI9202CDFqBCZcM9J02BVs7v 08uG/xAT/J5JlqsydzfrHhacH929BwqlbwME1tbhF1fAq58t823e6YC2a+fC1RfuBQfl 5euHg1/KtGUiLto3QPPxmb0ud3xnAkljlSDWP089NijzqSxr9KW5jIWZHrb0Ugo5T71/ GPLWAeNEvt27NXfYtFfrwd1Wy82SRbryQaCXfX/U4HlQZ9GhRZgx/dQTkw4bqoZTZ9ag r45T6MDFBneFaECPkQtirh6yUik6XVReb6C03zKCLYp3ttmVFYGaNBtDiSTBPz0ILT6u iYAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KqivLJ82o4nQcvuVJ38MnC9qLo3O961PB6uECAnVwuo=; b=x38e7Ys6UfVJym0ynZWj7CMi5hChblrbD0ViF2tJjIp5zQTKlXyqaeTMLI1B5nZU0o 8ZzbzxxuPrSvwHnPxM8i0LH74mq2XLDqVmzSVTH0X02QUtCIiLalgEhjV5CFy8f9q9SG sAx2NC3dQkxnXrp2gtGYHLJ27Wgv04YblN2dKVzZUMXOtxd4E2Ewmg3WpehvD2/Smctw v5VxbS/knPU6jfj7XgDY5lSuJsuI4mRbU0RA4C3UXwTxT8LBYdML05HG+09v0ckmEi+0 EHrwcSwlZeWCNiPjOzcaLIMB7rmuFgbEeYDQJ7MAoHxLSUfFgiTfoBBGwrzJZLHpVVBy KLOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=uwfDNSQo; 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 c5si829269edq.89.2020.08.19.22.48.15; Wed, 19 Aug 2020 22:48:38 -0700 (PDT) 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=uwfDNSQo; 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 S1726766AbgHTFrd (ORCPT + 99 others); Thu, 20 Aug 2020 01:47:33 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:32006 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726815AbgHTFr1 (ORCPT ); Thu, 20 Aug 2020 01:47:27 -0400 X-UUID: 3e35ec2fe11e42379a08392de7f0f51b-20200820 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=KqivLJ82o4nQcvuVJ38MnC9qLo3O961PB6uECAnVwuo=; b=uwfDNSQoBKHKf12TeA1ZtPrzf9xu8n9m/NMSGEF1XxMHo6x9nyIiHglkvLvQNu1gL7/uW4oHRD00Cfvci8sIUZNN80TvHwxkw/QV3MdbHcc7eicDzHK1EF5uoec7baqB3ubKBwgSELqBX6PMZMszYqC3BRAmuN3z65VYHuP9OkM=; X-UUID: 3e35ec2fe11e42379a08392de7f0f51b-20200820 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1521420158; Thu, 20 Aug 2020 13:47:14 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by MTKMBS31N2.mediatek.inc (172.27.4.87) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 20 Aug 2020 13:47:12 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 20 Aug 2020 13:47:11 +0800 From: Chunfeng Yun To: Greg Kroah-Hartman CC: Felipe Balbi , Matthias Brugger , Chunfeng Yun , , , , , Lee Jones , Mathias Nyman , Yoshihiro Shimoda Subject: [PATCH v2 04/11] usb: xhci-rcar: convert to readl_poll_timeout_atomic() Date: Thu, 20 Aug 2020 13:45:42 +0800 Message-ID: <1597902349-8998-4-git-send-email-chunfeng.yun@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1597902349-8998-1-git-send-email-chunfeng.yun@mediatek.com> References: <1597902349-8998-1-git-send-email-chunfeng.yun@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: A432BAA91F560CA8F5BAB65220EE2453B9D32BEB3EF465235A28FB7C317A19F42000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VXNlIHJlYWRsX3BvbGxfdGltZW91dF9hdG9taWMoKSB0byBzaW1wbGlmeSBjb2RlDQoNCkNjOiBN YXRoaWFzIE55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