Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1634113ybt; Sat, 11 Jul 2020 17:35:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeKIcAM4QvRONEj551nci/g51+gZ1VyHkvSW2zXikARdQjWnDzxqw6kxGnUZfLtuZZaS3h X-Received: by 2002:a17:906:a28b:: with SMTP id i11mr66474193ejz.524.1594514148797; Sat, 11 Jul 2020 17:35:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594514148; cv=none; d=google.com; s=arc-20160816; b=o7keXvYIPexJM9aWlrWDLnSFA8fnCv8sGnyWACULg6Tc8xy7NDB9ZT540iNBpGO3ow htOolh+mLsqpFk6NP1XdAcHXO6Rxi0gn3xOWYfQGAeMMScYhFpbNtTmpzx5O3GiA7/f+ IdYQJp4DZKdv31Bd4hCyKCSzAE3OCMxemc/Y4oSAWabwrkeMQEkIl+I7qfrSKRKFwTIu kSYFtaHFYGvJAhR4J5qSM5VvZQDcQLsHpKeJZ8vRxIpbUoDwiPO0jOPNr4xjz3VPUpTC lGWJkoyYrrGvwGnKaVUJyd0AFjV/hEf7rmYqcBX5SACO50qUtmI8bwzJv1eXlyW/AeZ0 KKNQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Z1SuMVtx7OA9n2jgiMCXVQ8y0m5FxirhJO+d41akUHw=; b=ah7t4VdhXxVexerZMHcMsjutDPQjKKmvNr9rAtlJSRpwA1eQOXjd/xb9KwInE3AJAJ Q8T6AdlVdY6decvpVUwuXXurZ/BLWKRv/ZAQANCX39e4VlHdaAs+XlefNs9df+d6gHgZ kknOe3UcT66xPLEAJKsK6ur9+XyIjgqkWGQB+CGq3LY0LqkHSUZDuqCuFHGecxesLTsv rmL/etLEdmZpz6GyK313B3R83e5adlKdH5zixuP/h1kqym5ZLXbPaZi3xJjzB9EPHPhD 5sI9k9vjqdxKmxrIrVpFO6s2/JkVa9VZzblmZkYylWGxY6oZ/7akVrKrf/oBrERctvnm zcLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=VXspkkWV; 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 n6si6248555ejs.278.2020.07.11.17.35.00; Sat, 11 Jul 2020 17:35:48 -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=VXspkkWV; 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 S1727914AbgGLAcj (ORCPT + 99 others); Sat, 11 Jul 2020 20:32:39 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:52939 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727063AbgGLAcj (ORCPT ); Sat, 11 Jul 2020 20:32:39 -0400 X-UUID: 118926be064b4de9ae4b29d484b4e5e9-20200712 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:Message-ID:Date:Subject:CC:To:From; bh=Z1SuMVtx7OA9n2jgiMCXVQ8y0m5FxirhJO+d41akUHw=; b=VXspkkWVh+oPvp4y2s+TqUobjolG2QZ23C9mGeuk2KwW9/wJbl0RrDl2ZqFMD+YbrXcmEqhYKlUsfRTp4aTRvPoJtPRZSMbeKaaKUg3MA0NwymTsxr+zGyHOTKCthuZBeTY/F1TbqpbbFmY+BqkRPVjT0/u6lOwWaehbCbvfivA=; X-UUID: 118926be064b4de9ae4b29d484b4e5e9-20200712 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 434282081; Sun, 12 Jul 2020 08:32:30 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 12 Jul 2020 08:32:27 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 12 Jul 2020 08:32:27 +0800 From: Stanley Chu To: , , , , , , CC: , , , , , , , , , , Stanley Chu Subject: [PATCH v3] scsi: ufs-mediatek: Add inline encryption support Date: Sun, 12 Jul 2020 08:32:26 +0800 Message-ID: <20200712003226.7593-1-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 9CC95F33B94D9D190BA186BDF462498E3A2DC36E666D567D6896CF24781C8EFC2000: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 QWRkIGlubGluZSBlbmNyeXB0aW9uIHN1cHBvcnQgdG8gdWZzLW1lZGlhdGVrLg0KDQpUaGUgc3Rh bmRhcmRzLWNvbXBsaWFudCBwYXJ0cywgc3VjaCBhcyBxdWVyeWluZyB0aGUgY3J5cHRvIGNhcGFi aWxpdGllcw0KYW5kIGVuYWJsaW5nIGNyeXB0byBmb3IgaW5kaXZpZHVhbCBVRlMgcmVxdWVzdHM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