From patchwork Mon Jan 18 23:52:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathew McBride X-Patchwork-Id: 365640 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp250110jam; Mon, 18 Jan 2021 15:53:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmQivPS00Ja2jLnQF3tV7ID1rGnjnvhpE1LUEF4C8Wwbu2S9gJce4VwVBBGpIrMzNmFews X-Received: by 2002:a05:6402:1249:: with SMTP id l9mr1248922edw.375.1611014036294; Mon, 18 Jan 2021 15:53:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611014036; cv=none; d=google.com; s=arc-20160816; b=ZMtrsc4ysfLQDi3uZYeOoczGh7CzCBBbQ7yKfyv0RKLXtiQ331SCA2adg8VzIwIjs7 1ikNei4AgahLvUbn/ObGtnhQaW+IjlFmkI78oxvhJh4PPDdKeCiD26oMGFs5Y5jgTAu/ aEGaw9qeAsvHUrqLw9M5wARPZ7lNH3jX4unW7yaVKtH0Un+fcZJboqGn9o5nBc0QaU4E UFA202XNtma5t728JNjYXPTlx0pKSRPwMXtw4GuVOyNEdAQvJmJSlrXIgcxta4PrMNdv wua6ZGjRN5gtoSiRglGTA2glfsMkZPpnsZ8W7HW2RCK4w1uIRl5ZlozUXSOK9rDsFVx1 U7wg== 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=r0QcwHhIvmEp3iepry6r7E8GfQJLys+AxsYxVwaV8mU=; b=qZb3EOy9ig4S6nizrEjFVe4UWWa/Im/a31KE+kAZY6XqGb7s3En7VTddlG3HtwXJCK XAiwTFzfV76bERUgz0PMoT1fmQ97W11JiY6W2l0N65xV3lN0mmlAmWuKhcq2KqoqODae PX2Et3KCnnvyLmuL9UontVh/27V1ocMom9SJLFEKg1V58soMp1KuQULpiDzX9s7VNvX2 QPrJMHsfS5R1krMccq8mwhSktiOFXLuB3YOMSiTPwU57LaQgc1whEetw9sSLoGVOngLE tUPXNjz04qvCBop2kseCPSplftiTneI9XE17bshrXz8SoEcTVw9UtB0UtaPWowJez9oM dlfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@traverse.com.au header.s=fm2 header.b=bcPdrffN; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="RytTyPk/"; 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 g5si800528eje.528.2021.01.18.15.53.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 15:53:56 -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=bcPdrffN; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="RytTyPk/"; 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 57E18828A5; Tue, 19 Jan 2021 00:53:45 +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="bcPdrffN"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="RytTyPk/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7A4AB827C3; Tue, 19 Jan 2021 00:53:39 +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 out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9DBF3827AD for ; Tue, 19 Jan 2021 00:53:36 +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 compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id DCA055C0218; Mon, 18 Jan 2021 18:53:35 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 18 Jan 2021 18:53:35 -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=r0QcwHhIvmEp3 iepry6r7E8GfQJLys+AxsYxVwaV8mU=; b=bcPdrffNjFQk6nTLjbuB0qUs1PxEg VvWVdepANMHu3PR2Uxqdp+9C4oC1Vd8FXPvR52YgWkfIBMp/T8+yCN4ldf850iRj fR7WSTsI96b7rqltFZviCpi6zIEQ0MV5CLbf9vLCxFjnoOQZsU9aDqTNnkCrrinc GQPMgQwk+0zEqzRExpkiA90e2LgobeWuadYZha5xf9ylPcfkyKuaDN+hHbK9p1oB wVSI+PSRgE9nXDJCLppnqPkhQs0w9lvoGDZ5YRtgnAtSSm0BtvkBw4ZYLqKVrOi2 gINjk/PBfhYRHuihVXAKkoFyo6eQO5zJX2TS5If14wdTX8ixMi08T8Yyw== 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=r0QcwHhIvmEp3iepry6r7E8GfQJLys+AxsYxVwaV8mU=; b=RytTyPk/ e1bzwbbWVK990KRgShXf9vgxK6Ljfo6vaIj/hwEl2g0FYzuIxXLSuQT+l3aksVXU +n1C17JILvcxhGHh8izDR+PGkYZqTugdSRmLwwk1SVrYJ3Y1DbpSGDL/0mh58Sh8 dNqhGUbKMFnkpCAAbzhuy4zQgr0u/A0sUx9Syg8mefzoGXyfxRU1h+tVcJXLraT8 LaL8yCrxOKlhDvMZCYcigvFvGsOOVedQ22Ln73R/FiEyHX665sF2RgGDmxi2H3tf +Xce7HIgWzY2/LzU/hDttlg3g8PpM+le/ExtFG42zXLdbQa2b3BacnOdzldv71gL 8l41k5k66oTKCQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrtdelgddufecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepofgrthhhvgif ucfotgeurhhiuggvuceomhgrthhtsehtrhgrvhgvrhhsvgdrtghomhdrrghuqeenucggtf frrghtthgvrhhnpeekleevteelvdduheetgfdvfeelueekffeggeethedtteeljeeivedv gfehjeejheenucfkphepudduledrudejrdduheeirddugedunecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrthhtsehtrhgrvhgvrhhsvgdr 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 55954240065; Mon, 18 Jan 2021 18:53:34 -0500 (EST) From: Mathew McBride To: Jagan Teki , u-boot@lists.denx.de Cc: Priyanka Jain , Michael Walle , Mathew McBride Subject: [PATCH 1/3] mem: spi-mem: define spi_mem_default_supports_op Date: Mon, 18 Jan 2021 23:52:54 +0000 Message-Id: <20210118235256.29748-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. Signed-off-by: Mathew McBride --- include/spi-mem.h | 10 ++++++++++ 1 file changed, 10 insertions(+) -- 2.30.0 diff --git a/include/spi-mem.h b/include/spi-mem.h index ca0f55c8fd..92c640dabe 100644 --- a/include/spi-mem.h +++ b/include/spi-mem.h @@ -216,6 +216,10 @@ int spi_controller_dma_map_mem_op_data(struct spi_controller *ctlr, void spi_controller_dma_unmap_mem_op_data(struct spi_controller *ctlr, const struct spi_mem_op *op, struct sg_table *sg); + +bool spi_mem_default_supports_op(struct spi_mem *mem, + const struct spi_mem_op *op); + #else static inline int spi_controller_dma_map_mem_op_data(struct spi_controller *ctlr, @@ -231,6 +235,12 @@ spi_controller_dma_unmap_mem_op_data(struct spi_controller *ctlr, struct sg_table *sg) { } + +bool spi_mem_default_supports_op(struct spi_mem *mem, + const struct spi_mem_op *op) +{ + return false; +} #endif /* CONFIG_SPI_MEM */ #endif /* __UBOOT__ */