From patchwork Sun Nov 13 13:41:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9424835 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A12C960484 for ; Sun, 13 Nov 2016 13:56:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9439127FAC for ; Sun, 13 Nov 2016 13:56:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8788E28551; Sun, 13 Nov 2016 13:56:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3666E27FAC for ; Sun, 13 Nov 2016 13:56:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933664AbcKMN4f (ORCPT ); Sun, 13 Nov 2016 08:56:35 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:34980 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933365AbcKMN4f (ORCPT ); Sun, 13 Nov 2016 08:56:35 -0500 Received: by mail-wm0-f68.google.com with SMTP id a20so8398347wme.2 for ; Sun, 13 Nov 2016 05:56:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:to:references:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=Kp+2ZYDe2V0i0jOz0Ypb7/iqKe3VcU/VTuycUuSRi7Q=; b=fHFGQiYSCITcIpnWtkrCAaRYsHW7t2oX4xX8gebMiymUdojEttez/TwoRKCD/vei9m P+2GS/afRommXJTozZ4OWg2y/W4FhErOki+dmz0KTszsglzN4LrI7yyCvXPS+u4fATKZ gZ1yusaYaQwL12yZhRTugwQoLhXd9B1y/6sne3QLfwtR61oeXNSbPfhNIzpuJYoSkX/D sirYzT4oSVjc8b1C0RkUH86Ctr/BAliK7Cu24n8ezu4xjhVLCxwb89XjiyhISK1ZHl7o zBm6YQgR1CICv4nzHdcNjl85S8CZWggzOy/fRvEmurXFD+cHec4Uq0yUj0H7//2auWrO by9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:to:references:cc:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=Kp+2ZYDe2V0i0jOz0Ypb7/iqKe3VcU/VTuycUuSRi7Q=; b=cth/4jNK03yL5vTTfq1plh43LPMr+POM7//WdmOH++7wdhekwta4mOx+Pzogufea3D 8IXuteBfEIG4OQ5556lt5VyD6hYoF1DujMt9hLV/yAL7Nb3dGwZk5EdFH6bUD/MfBtAJ YgAbFxLa5KwqSFKjJMSxezzaG8QPrRfXKb7YK89RfqOsM9OahyCxG/CEK9+gVa+IxRyU BKIVFcw772iZUsh1zIu1gCXf3ixeFgQpt8qUOlEqd2y5LGLl+ZFCmaZejn3Bb/Dek26i eyiBhRUdjgirrLWYiU70B8LwT0LXRzpREM6YTPBkEGMr1zbrLa8tys2XntACBAfUz5S+ P1CQ== X-Gm-Message-State: ABUngvfr9srtmwYu3mEw8ygsTc+HtaTqtUeo3kFt7wqMg6s5e/Y63aTIAu3PGFLwFE5yWQ== X-Received: by 10.194.52.8 with SMTP id p8mr15725728wjo.38.1479044486664; Sun, 13 Nov 2016 05:41:26 -0800 (PST) Received: from ?IPv6:2003:62:5f58:9d00:45b5:f382:329:d09c? (p200300625F589D0045B5F3820329D09C.dip0.t-ipconnect.de. [2003:62:5f58:9d00:45b5:f382:329:d09c]) by smtp.googlemail.com with ESMTPSA id e6sm16226982wjw.33.2016.11.13.05.41.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Nov 2016 05:41:26 -0800 (PST) From: Heiner Kallweit Subject: [PATCH 10/10] spi: fsl-espi: separate fsl-espi from fsl-lib completely To: Mark Brown References: <678a565f-90b9-bf13-3e06-924fd0fbf232@gmail.com> Cc: "linux-spi@vger.kernel.org" Message-ID: Date: Sun, 13 Nov 2016 14:41:06 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <678a565f-90b9-bf13-3e06-924fd0fbf232@gmail.com> Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP After having removed all code dependencies we can make fsl-espi completely independent of fsl-lib now. Signed-off-by: Heiner Kallweit --- drivers/spi/Kconfig | 1 - drivers/spi/spi-fsl-espi.c | 2 -- drivers/spi/spi-fsl-lib.h | 7 ------- 3 files changed, 10 deletions(-) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 6891091..7fd8561 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -373,7 +373,6 @@ config SPI_FSL_DSPI config SPI_FSL_ESPI tristate "Freescale eSPI controller" depends on FSL_SOC - select SPI_FSL_LIB help This enables using the Freescale eSPI controllers in master mode. From MPC8536, 85xx platform uses the controller, and all P10xx, diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c index 8539f05..b5feae3 100644 --- a/drivers/spi/spi-fsl-espi.c +++ b/drivers/spi/spi-fsl-espi.c @@ -23,8 +23,6 @@ #include #include -#include "spi-fsl-lib.h" - /* eSPI Controller registers */ #define ESPI_SPMODE 0x00 /* eSPI mode register */ #define ESPI_SPIE 0x04 /* eSPI event register */ diff --git a/drivers/spi/spi-fsl-lib.h b/drivers/spi/spi-fsl-lib.h index 3951322..f303f30 100644 --- a/drivers/spi/spi-fsl-lib.h +++ b/drivers/spi/spi-fsl-lib.h @@ -28,13 +28,6 @@ struct mpc8xxx_spi { /* rx & tx bufs from the spi_transfer */ const void *tx; void *rx; -#if IS_ENABLED(CONFIG_SPI_FSL_ESPI) - unsigned int rx_len; - unsigned int tx_len; - unsigned int rxskip; - u8 *local_buf; - spinlock_t lock; -#endif int subblock; struct spi_pram __iomem *pram;