Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4842720ybv; Wed, 26 Feb 2020 04:04:14 -0800 (PST) X-Google-Smtp-Source: APXvYqyQzUcrbFmEgeo+Ip7D5Z+Qq5eSVa1BgCHzY+zmfUz0V+SPWydvokc6KNbjlZjPgTlBWCKo X-Received: by 2002:a9d:268:: with SMTP id 95mr2764534otb.183.1582718653883; Wed, 26 Feb 2020 04:04:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582718653; cv=none; d=google.com; s=arc-20160816; b=D2NeeWfOAYDsPa1PSyWumicETTgqMxbeYUUgIxrmIVYxl4ltFjs9uYXi9/AaalCijX eP23x8cMyFmYCHj7ZO67DxOzSnAM2FUT1LGzPoaX6Zxp8B66iA1zBtUyPjXRlakws+Mq B5SPi/FALiIOoGgqYqC3mKOu/KARUsChcf6CBLp0I08Ow1H2BlwiCEZIYDmI3dVDYbLS IykafwqUkxyj9jdEjlY73K+gk0U0uwW1kkSjatyDJkyX9CVQO7Cre7F13fWUNdmx3Reo qArVUrIQYPiapjH3RoH78h4YS5vkn0p8aXQBgw9W7M3mxqll9OBni+QpaLGQveU5T2Ux SsGQ== 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=HeqaTDjIL0PTx6tfNZRsJGOB5wSUUqHsQNV/Ncz2fJc=; b=JLKcH7AXMhxU5aH2firdDKxOhJbGpxfWwDfU79bG501oUk1BqF9b54QGevn2t21sZx PO3bDc+mHbNaB4kygyjv0a1sTGR8huhntGzkRuwIhn5U6r1Znu2Tn2yG4S9r1d/zWSl2 kspubXLP2s4IhNDAjpPpZUsPf3cNhkVzGRihUCebodsSAkDPpUP1GX16XodT52uo9T3A sBzCX1Fha3yYZO2K0uAYx3K7V8aqa9rshhzRY4rJKL6Pe4i5F7DZOfaFnToITVA4L7Td PIK8CD1IF/hjvrVaEJ1d9INLq5L4yocrKFYQ45BlLvZIBTC+R/1gAutpYW5LBS5xmIlv ajig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ENbT1nfH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id u204si1012907oia.55.2020.02.26.04.04.00; Wed, 26 Feb 2020 04:04:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ENbT1nfH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726963AbgBZMCP (ORCPT + 99 others); Wed, 26 Feb 2020 07:02:15 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:6851 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726272AbgBZMCP (ORCPT ); Wed, 26 Feb 2020 07:02:15 -0500 X-UUID: 618771a74bec4bba8d11e5bc7ea6f553-20200226 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=HeqaTDjIL0PTx6tfNZRsJGOB5wSUUqHsQNV/Ncz2fJc=; b=ENbT1nfHLPmaa1KnVt+jRf/tknKxc2p2KiK+s6CU1rwJAp+Lk3CSRMzwDpCHeadWl1fqHuy8hhUWvULtNVcLJGPLWkNfldClAau63AQr7JW2Wod7LrFdac8b6i7YmPCYva695mdKqQLe76+fThWjqwBTnhRst8AF2MHGbGBUrjI=; X-UUID: 618771a74bec4bba8d11e5bc7ea6f553-20200226 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 804146539; Wed, 26 Feb 2020 20:02:07 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 26 Feb 2020 19:57:57 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 26 Feb 2020 20:01:57 +0800 From: Macpaul Lin To: Matthias Brugger , Shen Jing , Sasha Levin , John Stultz , Andrzej Pietrasiewicz , Vincent Pelletier , Jerry Zhang , , , , , Mediatek WSD Upstream , CC Hwang , Loda Chou , Al Viro , , CC: Macpaul Lin , Peter Chen , Catalin Marinas , Miles Chen Subject: [PATCH v4] usb: gadget: f_fs: try to fix AIO issue under ARM 64 bit TAGGED mode Date: Wed, 26 Feb 2020 20:01:52 +0800 Message-ID: <1582718512-28923-1-git-send-email-macpaul.lin@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1582627315-21123-1-git-send-email-macpaul.lin@mediatek.com> References: <1582627315-21123-1-git-send-email-macpaul.lin@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 272F8CE54AD6E67D73DACACA69671537612B9D56AD5648D8354972DCC44EFC2F2000: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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