Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1982510yba; Tue, 2 Apr 2019 21:44:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqw4sFz2gAcYhhPXj+rzHoFPbizueoxml3ZO2CQmbuYk6acwD6Qlr6RRDFI7/HaMvdWiyqWN X-Received: by 2002:a17:902:e002:: with SMTP id ca2mr62518204plb.131.1554266665222; Tue, 02 Apr 2019 21:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554266665; cv=none; d=google.com; s=arc-20160816; b=pWsvGOF5PN2miP/rOrJ/Bbl5V+X7+TXSH/rlLvlhIFfxZgN8gq7xhSEOnjjyoKvoCD Ao5v/Ku81sR51YB3X6uOF7twKbBC7JPggHRuh22R/EKaQyUwGOwgkJeF5jTBo0pqVJvS Rh8frV8ehjjEk6YqFW7NzW82Htn2iNrj8n/+OwbYxUNlin47XgsIOFFg9tRI28XkQr/u ORRaq8i774HsmqMwSKDUWcv2f7LdVS+R+Iu3eZ8RG3hUZYaH9BYNrPjAnDAhYdjUp6q/ lpiP2kFTmPfoQZ9Ow8OQVtr120reO/dyn0RGi17QIap1LnbJqCQqakFp2eS7rwb9b/4G Ea/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=Jd7MruEtZPZEh0N08vGtCmStcnh6HYe4t6Epk0Je2SE=; b=M5FdklKICznXX3J/gnhLuESetfXoBtA8U6as9WSbPziVpxsI3yXqJi/jKGGM8ZxCI6 nR52y15vEjslRK37QHX/2st0AxkTeBGSfDyO0t9bbtC/HGe2jfoESVUJZa2VlZMmN7Ly wd4oltRk5Jh35AM8ts1PB8hmcyJCArVncZmyUJXPPj/zwVIP2nmSn9Vz6hwzN3A70KoZ f41yS0QYH+OleoacgtIqwFtoIxAOM35HJww3LLw2/ZfAZoCx+RXa8Pfb9koLovrmr2cs FiBmUQcoqq9bkgttlrFcy1WW0IpVxrWbLbVDY80jegjMUlLIzaFhBMuGfVnAG/xbu2nD K5zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=MbZIvUfC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j5si12821046pfi.166.2019.04.02.21.44.10; Tue, 02 Apr 2019 21:44:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=MbZIvUfC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728909AbfDCEnS (ORCPT + 99 others); Wed, 3 Apr 2019 00:43:18 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:42050 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728345AbfDCEnR (ORCPT ); Wed, 3 Apr 2019 00:43:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=Jd7MruEtZPZEh0N08vGtCmStcnh6HYe4t6Epk0Je2SE=; b=MbZIvUfCEg8g uRq1rxaE9n3uSJaEVE6GKD5Z5PY07oU+cGpK4Jeq8Z8Dq1TkOqvxKZbaKuYjDzDtESYkgNxSPECX7 4Iyi7lDgCyUNwKJ5xXh/5195h04xLsS3uWl6eRCvLBnNAjeivtWB5ADuSYxK2dpXbvrxptR/LhCZA kA6Cs=; Received: from [147.50.13.10] (helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hBXjs-00042B-JK; Wed, 03 Apr 2019 04:43:04 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 58669440083; Wed, 3 Apr 2019 05:43:01 +0100 (BST) From: Mark Brown To: Naga Sureshkumar Relli Cc: Mark Brown , broonie@kernel.org, bbrezillon@kernel.org, vigneshr@ti.com, linux-spi@vger.kernel.org, dwmw2@infradead.org, marek.vasut@gmail.com, richard@nod.at, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, michal.simek@xilinx.com, nagasuresh12@gmail.com, linux-spi@vger.kernel.org Subject: Applied "spi: spi-mem: export spi_mem_default_supports_op()" to the spi tree In-Reply-To: <1554105540-19704-1-git-send-email-naga.sureshkumar.relli@xilinx.com> X-Patchwork-Hint: ignore Message-Id: <20190403044301.58669440083@finisterre.ee.mobilebroadband> Date: Wed, 3 Apr 2019 05:43:01 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch spi: spi-mem: export spi_mem_default_supports_op() has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 46109648052fe778c75f199d72255c899578d6f7 Mon Sep 17 00:00:00 2001 From: Naga Sureshkumar Relli Date: Mon, 1 Apr 2019 13:29:00 +0530 Subject: [PATCH] spi: spi-mem: export spi_mem_default_supports_op() Export spi_mem_default_supports_op(), so that controller drivers can use this. spi-mem driver already exports this using EXPORT_SYMBOL, but not declared it in spi-mem.h. This patch declares spi_mem_default_supports_op() in spi-mem.h and also removes the static from the function prototype. Signed-off-by: Naga Sureshkumar Relli Signed-off-by: Mark Brown --- drivers/spi/spi-mem.c | 4 ++-- include/linux/spi/spi-mem.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-mem.c b/drivers/spi/spi-mem.c index a4d8d19ecff9..3397fd10cf8d 100644 --- a/drivers/spi/spi-mem.c +++ b/drivers/spi/spi-mem.c @@ -135,8 +135,8 @@ static int spi_check_buswidth_req(struct spi_mem *mem, u8 buswidth, bool tx) return -ENOTSUPP; } -static bool spi_mem_default_supports_op(struct spi_mem *mem, - const struct spi_mem_op *op) +bool spi_mem_default_supports_op(struct spi_mem *mem, + const struct spi_mem_op *op) { if (spi_check_buswidth_req(mem, op->cmd.buswidth, true)) return false; diff --git a/include/linux/spi/spi-mem.h b/include/linux/spi/spi-mem.h index 3703d0dcac2e..c845cd6e22ba 100644 --- a/include/linux/spi/spi-mem.h +++ b/include/linux/spi/spi-mem.h @@ -341,6 +341,9 @@ int spi_mem_driver_register_with_owner(struct spi_mem_driver *drv, void spi_mem_driver_unregister(struct spi_mem_driver *drv); +bool spi_mem_default_supports_op(struct spi_mem *mem, + const struct spi_mem_op *op); + #define spi_mem_driver_register(__drv) \ spi_mem_driver_register_with_owner(__drv, THIS_MODULE) -- 2.20.1