From: =?UTF-8?q?Horia=20Geant=C4=83?= Subject: [RFC 3/7] soc/qman: export non-programmable FQD fields query Date: Fri, 3 Mar 2017 16:52:09 +0200 Message-ID: <1488552733-20806-4-git-send-email-horia.geanta@nxp.com> References: <1488552733-20806-1-git-send-email-horia.geanta@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Cc: linux-arm-kernel@lists.infradead.org, Claudiu Manoil , Cristian Stoica , Dan Douglass , linux-crypto@vger.kernel.org, Vakul Garg , Alexandru Porosanu To: Herbert Xu , Scott Wood , Roy Pledge Return-path: In-Reply-To: <1488552733-20806-1-git-send-email-horia.geanta@nxp.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org List-Id: linux-crypto.vger.kernel.org RXhwb3J0IHFtYW5fcXVlcnlfZnFfbnAoKSBmdW5jdGlvbiBhbmQgcmVsYXRlZCBzdHJ1Y3R1cmVz LgpUaGlzIHdpbGwgYmUgbmVlZGVkIGluIHRoZSBjYWFtL3FpIGRyaXZlciwgd2hlcmUgInF1ZXVl IGVtcHR5Igpjb25kaXRpb24gd2lsbCBiZSBkZWNpZGVkIGJhc2VkIG9uIHRoZSBmcm1fY250LgoK U2lnbmVkLW9mZi1ieTogSG9yaWEgR2VhbnTEgyA8aG9yaWEuZ2VhbnRhQG54cC5jb20+Ci0tLQog ZHJpdmVycy9zb2MvZnNsL3FibWFuL3FtYW4uYyAgICAgIHwgIDQgKy0tCiBkcml2ZXJzL3NvYy9m c2wvcWJtYW4vcW1hbl9wcml2LmggfCA2MSAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLQogaW5jbHVkZS9zb2MvZnNsL3FtYW4uaCAgICAgICAgICAgIHwgNjggKysrKysrKysrKysr KysrKysrKysrKysrKysrKysrKysrKysrKysrCiAzIGZpbGVzIGNo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