From patchwork Sun Oct 2 12:22:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9359609 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 CB324608A6 for ; Sun, 2 Oct 2016 12:24:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BAEDE28AE9 for ; Sun, 2 Oct 2016 12:24:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AFBC728AF3; Sun, 2 Oct 2016 12:24:17 +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 5976428AF1 for ; Sun, 2 Oct 2016 12:24:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751789AbcJBMYR (ORCPT ); Sun, 2 Oct 2016 08:24:17 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35128 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751736AbcJBMYQ (ORCPT ); Sun, 2 Oct 2016 08:24:16 -0400 Received: by mail-wm0-f66.google.com with SMTP id f193so5786532wmg.2 for ; Sun, 02 Oct 2016 05:24:15 -0700 (PDT) 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=A+niyLs4WMP/a94sImIGNWDS7IS9n1yC9wVfXcTRx0w=; b=F+HuBhr/BiuWWIgxIbKWTx2V+tVYxGI9bhx7Ifh03tvkoSPNqn/YwD13jB72pVCDCz 5XeVjpBNCwwv3ZbGnLscDp0UzORtXMNkqULgUWX+3ljz/W93vhZ6iLGTCijgUvHN4XmJ h5Hguy0ro4c4jNINP0bkPmqSYmNpVWc6adVKSFWDvOvjYeQclV68g168Gy0F6Sw1VY4M snX6aLyPZTdRPd8WV2Fq1Z6akR2mzFAr0x5gYHXIpRGmq6r/xGHp85VDdT0z+nxF1LkT VXmFtP+xB7tTG5cCkgav0fpIJFhFNP3hZbWTZ6jnbRry0K8/56YVU130s2FnrQixJBvW pcug== 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=A+niyLs4WMP/a94sImIGNWDS7IS9n1yC9wVfXcTRx0w=; b=HEXrgrhQeE3RZp8b0lmy+ppmYNI6gU997xuNTVmj+GoBcZCzaMinJnYnIgCrZghqvl CkRSLPnCcJI3uKtRAQ9LtwQQolyvc7TJAxzRpubm0LgZVv/ccOsVa/UdHQsxeen2wrdu juxUx0Ton2o79q4fkfvkH+nylYspazplGtq7yvdtisMEy6x0qA9vRDKVgwr4fj+1duNJ rjPJqJmIlPfB1eNjn3qA9ZTs7q1WzeJ88ZJ7B1chxQAAVYbWiVWvFcGJVl5RT5giSl2o XwUxPwNur0MyeeO8VtYNQNhDcI6uME8oubWSZQ5JvIbmmnZd5muzHpiw1FZKIxbfr1VZ BMoA== X-Gm-Message-State: AA6/9RnYicep0ttEuHodSIQFG9OHea6AjegsEG3LicGhVeyNLCxmA2S8KlxnWXswKMLA4g== X-Received: by 10.28.163.6 with SMTP id m6mr5767747wme.110.1475411054739; Sun, 02 Oct 2016 05:24:14 -0700 (PDT) Received: from ?IPv6:2003:62:5f1b:3000:8dbc:eb8a:fb9c:9173? ([2003:62:5f1b:3000:8dbc:eb8a:fb9c:9173]) by smtp.googlemail.com with ESMTPSA id r2sm13731717wmf.14.2016.10.02.05.24.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Oct 2016 05:24:14 -0700 (PDT) From: Heiner Kallweit Subject: [PATCH 02/11] spi: fsl-espi: remove unneeded check for SPI_QE_CPU_MODE To: Mark Brown References: <5b98be38-17a2-79a2-14da-fb2bb6f8820f@gmail.com> Cc: "linux-spi@vger.kernel.org" Message-ID: <20608368-44e6-21f8-d970-5ade9990ce59@gmail.com> Date: Sun, 2 Oct 2016 14:22:48 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <5b98be38-17a2-79a2-14da-fb2bb6f8820f@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 SPI_QE_CPU_MODE doesn't exist for ESPI and is set by of_mpc8xxx_spi_probe based on DT property "mode". This property is not defined for ESPI, see Documentation/devicetree/bindings/spi/fsl-spi.txt Therefore remove the check. Signed-off-by: Heiner Kallweit --- drivers/spi/spi-fsl-espi.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c index 65bb70d..8281aea1 100644 --- a/drivers/spi/spi-fsl-espi.c +++ b/drivers/spi/spi-fsl-espi.c @@ -594,11 +594,6 @@ static int fsl_espi_probe(struct device *dev, struct resource *mem, if (ret) goto err_probe; - if (mpc8xxx_spi->flags & SPI_QE_CPU_MODE) { - mpc8xxx_spi->rx_shift = 16; - mpc8xxx_spi->tx_shift = 24; - } - /* SPI controller initializations */ fsl_espi_write_reg(mpc8xxx_spi, ESPI_SPMODE, 0); fsl_espi_write_reg(mpc8xxx_spi, ESPI_SPIM, 0);