Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp376991pxx; Thu, 29 Oct 2020 05:00:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyubiUQln/KemfRRTcKjvXsvrgu0HTPpdiSiZWDhiu3a2drEbws7KiWiFysEvX/lzjD/pBL X-Received: by 2002:a17:906:4b0f:: with SMTP id y15mr3538319eju.198.1603972801196; Thu, 29 Oct 2020 05:00:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603972801; cv=none; d=google.com; s=arc-20160816; b=AmkyZV9jgqwcJnL4V8G/J97SMOH31uxWXAd9tD+zFNgxw0S5e5YgcHZjlpP0o5m7eg xNeBFJkgYfLLMMCTw4Wgzv9qYUxiZ6OK3LwLhuZQUxK1IM2IXM3pkqtHgHigq7/tw+3L px28Wjs63AAKiZOAQgdM01PQ5QnjT+93WQYgm7L+UZTwqzay5ss8wZuabA46RFkSgRBZ 1piBp9xaquEQvZNlrcCGOGuucsXyQKWCu0c4itUUMG5Y3dOo1ghNkKtAvHBEfOg7PmOH vW3BX/PoS7ht+Ynq12pFn2W4jx39SYSX8Smfy1ilqUYzmJ/9LX9CoQ7T6F283f5fjOU3 0vzw== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=w81tqkNi8KcOCSO6o9TBab5iqr6LPY1HHHGmMqfxeO8=; b=eXfjsuSM/J9wxTCaDX0PYTTn331ASwJbIe63yhjtVNWyihSYm/+j2LI0/7QZ9bdA8O 6iTgMtnK7K/tum3eAURa+ZIZ6GAzvD+GGLEBaZFFuvgy8tKXFvZjMR1SOHyzBPb7F6zS OGtathGGpX+9n02njBKBfq+qmeqXGfCJwvYxedeUpS1KUKhTQQYIUjFih3cLYwOIVjrm dZ2pc47iZeSgnyvzYG98hiQ16RZuaoVQ3NK8h5p1HuENYJzn7l9EdoCE/P8Xoe4nfLI0 hTYFLTf3wIEL9Lg1+wICu95xXRwYLIRt9zNdFGQ9Ji5uTtXflUZCAPAYVIU1SxhrHkGi 1lag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=G3J5aB+R; 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 co5si1868420edb.493.2020.10.29.04.59.38; Thu, 29 Oct 2020 05:00:01 -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=G3J5aB+R; 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 S1725982AbgJ2L6D (ORCPT + 99 others); Thu, 29 Oct 2020 07:58:03 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:57201 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725832AbgJ2L6A (ORCPT ); Thu, 29 Oct 2020 07:58:00 -0400 X-UUID: 9964eaea5bdd41298466a7dbc16c86c7-20201029 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=w81tqkNi8KcOCSO6o9TBab5iqr6LPY1HHHGmMqfxeO8=; b=G3J5aB+RGC+u4v9nbdL7YFjWk5X8tUNypVJIXeECWfr0arEBSnEjKgjXMxcyCVWhHPk9kSdlBl/PFKCXQHbQ3ZwmIluJjaKT7S5q9NR6c1r6h18/uioxXb+F6rdw6QfDzQNtac7BUo7qFBoitqppnDjKdPCe6RsphL6zRzgjsWg=; X-UUID: 9964eaea5bdd41298466a7dbc16c86c7-20201029 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.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 739349024; Thu, 29 Oct 2020 19:57:53 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 29 Oct 2020 19:57:51 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 29 Oct 2020 19:57:51 +0800 From: Stanley Chu To: , , , , CC: , , , , , , , , , , , , Stanley Chu Subject: [PATCH v1 4/6] scsi: ufs-mediatek: Support option to disable auto-hibern8 Date: Thu, 29 Oct 2020 19:57:48 +0800 Message-ID: <20201029115750.24391-5-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20201029115750.24391-1-stanley.chu@mediatek.com> References: <20201029115750.24391-1-stanley.chu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org U3VwcG9ydCBhbiBvcHRpb24gdG8gYWxsb3cgdXNlcnMgdG8gZGlzYWJsZSBhdXRvLWhpYmVybjgg ZmVhdHVyZS4NCg0KSW5zdGVhZCwgZW5hYmxlIGhpYmVybjgtZHVyaW5nLWNsay1nYXRpbmcgZmVh dHVyZSB0byBrZWVwIHNpbWlsYXINCnBvd2V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