From patchwork Mon Jan 25 03:55:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathew McBride X-Patchwork-Id: 370178 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp3622282jam; Sun, 24 Jan 2021 19:56:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7Rgj9fGSMTtpctxrQvaJGml5sk4ZpD2fNvh0dzsjtAt+L0vTHY5bzHTyWMCVsvfbquIwD X-Received: by 2002:a50:852a:: with SMTP id 39mr409202edr.114.1611547015904; Sun, 24 Jan 2021 19:56:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611547015; cv=none; d=google.com; s=arc-20160816; b=HK3xuf8MmFDOu07IAUKVCLAEbszKMPX7abCEvfkr4RnyQ6qMphHGOFRLx8U11wNL8+ xwzKtpmMXxeFovdHx0dPSGEjFCQHowm+4pPZ5bFb0yTcReJ7moLko+8cB34kZPkGdQph 0Xhtxa3kPH14e+WSdmlV2PsuygzUT66j9WhNW1DgtuRDiHIghXcL0vGiwSIECe0K+2tv FTx66ShTBl/27DwzQ7ZVIRKPYBnQYg3vNCgdBbTGIby3X/VoMsh9I2IiqeM+Iyp0HczF Mu9h1sFQaQ67vTyuRKEjDoBFDeRp5GQp8kkYrhvKLNzS7xyW8U70+UAaWcr8rTso0XUc 3huA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature; bh=a86F4gt1rn66IeBZKG/5go7Ao8XAWNyQqUWtkmX97vc=; b=JdGzvIrGQDBBcpnTmn0Db9M+eHZxknLQ+/vXKJdS+uo9Kn7gAcuYtBrPIIJgAk3rjW O7OggWHl0zifWAb/0RfKyxnLZwcAI7VYGTuuABGng7QkqL0EcDVbRqmfr3LcSobC2rse xrc2m1atO+jurrR+LYy/nr6BuuVAjcOEjW2AFQ8mOz2/KQbZ1HYGlOhBJJBq+xogrYHt IV1ThQ3N1UcoEqbtrmtm8HmzMgt7AbctVosx2bcRD7X5NGx+wVOGB3UETXWfcLQXI974 QXZlUywLsnUBCzquyMtxM831HWdUULSw+L3tuLpqWzFBw5GAE7BibLnKmiom3T7rcmnn zAkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@traverse.com.au header.s=fm2 header.b=Lo2fk56i; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="boe/oFfy"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id kw2si597780ejc.366.2021.01.24.19.56.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Jan 2021 19:56:55 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@traverse.com.au header.s=fm2 header.b=Lo2fk56i; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="boe/oFfy"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9B31D826AD; Mon, 25 Jan 2021 04:56:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=traverse.com.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=traverse.com.au header.i=@traverse.com.au header.b="Lo2fk56i"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="boe/oFfy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 38E1E826AD; Mon, 25 Jan 2021 04:56:46 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 76CFC826A7 for ; Mon, 25 Jan 2021 04:56:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=traverse.com.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=matt@traverse.com.au Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id C2BF85C00B8; Sun, 24 Jan 2021 22:56:42 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Sun, 24 Jan 2021 22:56:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=traverse.com.au; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=a86F4gt1rn66I eBZKG/5go7Ao8XAWNyQqUWtkmX97vc=; b=Lo2fk56iOkXXGrGrVAG6P/2YB12Qo gIYYShYz54xfbrhF0KSjRQpNV8G8Xwei+zdxfKfxD+nSTJ0sLOHXMrHEIC96yfST 4X8PmufQ9lLSNgUdeMQZTRQcRGM2QF/q7ef61DJ5XU7nGTv042OqL1LLXTComS3G BVL/8q16C2dFjqmkB0t3SDEP1NXuCgoTXqeraKGi3fnZ5nBAQqYfAfmwYsrVlmsh O8kgPDY1+Yi7L9QnOOGWzjUraLR0gY5xJ6pU7qm8CqCwFRGbmphFvRMjaXZJ4FoV lIHGzz6PwTIIViq/VpWErcUZRLsmYso5AjHTG5mZNILKULLR1qEc2evWQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=a86F4gt1rn66IeBZKG/5go7Ao8XAWNyQqUWtkmX97vc=; b=boe/oFfy supLumXLqZqLrajPpt/EwTr1Vqpur2+auEbhdSh45WQrbSZDzzTTj1Ug118zEXRD gB2BYeNB4tgOaGojCJEwrVOarVdtUtEQkeZ8QC1eE1CfrvjR9Dmk7nCWCaGHybch YebixYmPOeePWXR2CPaMuRI8dJcYVkeAP4MiNBzxWUjfI7SYcwgGRXD0GGE9LO6u El0epDTVyycfXDtmPBsZCFSfdEyQEB20tyJPCyjNi78KU/H+dCtKYyDoub3uBZS6 U0gks93kSZW1hWc3dCxyMmEKM8jcR3UDa59ERh8PeGJCdktpp2f2ihixLEcmNedf 04CkVx4wwRbnYQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddvgdeihecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepofgrthhhvgif ucfotgeurhhiuggvuceomhgrthhtsehtrhgrvhgvrhhsvgdrtghomhdrrghuqeenucggtf frrghtthgvrhhnpeekleevteelvdduheetgfdvfeelueekffeggeethedtteeljeeivedv gfehjeejheenucfkphepudduledrudejrdduheeirddugedunecuvehluhhsthgvrhfuih iivgepudenucfrrghrrghmpehmrghilhhfrhhomhepmhgrthhtsehtrhgrvhgvrhhsvgdr tghomhdrrghu X-ME-Proxy: Received: from localhost.localdomain (119-17-156-141.77119c.mel.static.aussiebb.net [119.17.156.141]) by mail.messagingengine.com (Postfix) with ESMTPA id 1E1761080057; Sun, 24 Jan 2021 22:56:40 -0500 (EST) From: Mathew McBride To: u-boot@lists.denx.de, Jagan Teki , Priyanka Jain , Pratyush Yadav Cc: Mathew McBride Subject: [PATCH v2 1/3] mem: spi-mem: add declaration for spi_mem_default_supports_op Date: Mon, 25 Jan 2021 03:55:20 +0000 Message-Id: <20210125035521.23466-2-matt@traverse.com.au> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210118235256.29748-1-matt@traverse.com.au> References: <20210118235256.29748-1-matt@traverse.com.au> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean spi_mem_default_supports_op is used internally by controller drivers to verify operation semantics are correct. It is used internally inside spi-mem but has not (in U-Boot) been declared in spi-mem.h for external use. Signed-off-by: Mathew McBride --- include/spi-mem.h | 3 +++ 1 file changed, 3 insertions(+) -- 2.30.0 Reviewed-by: Pratyush Yadav diff --git a/include/spi-mem.h b/include/spi-mem.h index ca0f55c8fd..8be3e2bf6b 100644 --- a/include/spi-mem.h +++ b/include/spi-mem.h @@ -240,6 +240,9 @@ bool spi_mem_supports_op(struct spi_slave *slave, const struct spi_mem_op *op); int spi_mem_exec_op(struct spi_slave *slave, const struct spi_mem_op *op); +bool spi_mem_default_supports_op(struct spi_slave *mem, + const struct spi_mem_op *op); + #ifndef __UBOOT__ int spi_mem_driver_register_with_owner(struct spi_mem_driver *drv, struct module *owner);