Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3932732pxb; Tue, 2 Mar 2021 02:13:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqLvxul9UYi7NuEQ8pDSCywGnMOTatU6fASpoPU9TTt0g9wO89SvfZnGVNTO9ivzt/NPGa X-Received: by 2002:a17:906:23e9:: with SMTP id j9mr11174786ejg.78.1614680008650; Tue, 02 Mar 2021 02:13:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614680008; cv=none; d=google.com; s=arc-20160816; b=r5GGvK2Uz6qcutuTUNXRSOxsrmtnG1LBS3sKdJnjRqeM8JtTS+Ip9YBqmogOrFuoAA Pitj70B5rRDhHkTei5hbd0ZM8Ih2hoA7QQFZMAJ2mdmvLA0mHRRae7ywdQR86gov2wzR yKdDeIG7Zt30bO9DiHx7Ev3IKhMiRUzgFnDYGB/rSYShHTXzCm9QCUbbo/JL7tsCimu6 Xhml1WTSi7X/NkrbO7qEBXw6KtkGXozRiJUyzQXB2ly4BLEqDbF85oNPQmXgjNhbfiJz Uv0cUWSs8Tpt/8XentAks0qR+Z8ndkHV3pAimNKXUExpV4hu0Q2STXCyWbUNBB8kq/mV TRQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xX0Jd0i5KmuaavPXrIbfc380XyyDuYGoK6bLUTuuoOI=; b=MH2bz9vgLt64Xnh6YF9lGer2V2aa1VNYkY5xUKtNTHVlNFxej+SljUbwOiG18SWfDt Ejlgz0Up+SCQYOt4wyee17sRXcaiwmOrV+xOJopLwg6cj0Ghn8z9inHriyvy6JS8uwiF miR6UPPg5DCi4aWsnazUWE2OvBJ9J/Uh4uRxyncDfuI2Owv+TKYV56Z5ILdxpKLjpsiu 42FQsDKPqLXnagFikHJU6sYp4B3jgqt7Q1+CYksVJ7xTD81bqP+U5eJZAuDM62U2RVBX VIqq+0nDYdLbcT2Z0X0y0maHSVpt7B17ueP7O70CG9cRIVZknU5zKAFwSaWPnZSvrs8n VleQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tEBM85cB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lr6si7990722ejb.39.2021.03.02.02.13.05; Tue, 02 Mar 2021 02:13:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tEBM85cB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379558AbhCBB3f (ORCPT + 99 others); Mon, 1 Mar 2021 20:29:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:43888 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241338AbhCATRl (ORCPT ); Mon, 1 Mar 2021 14:17:41 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8A29464F94; Mon, 1 Mar 2021 17:21:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614619263; bh=zhzxN6c5JN9khP+XvV0suo9/o3MwdDW1IU1ShLW3AuI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tEBM85cB9NDD1sp6KXs/ImNBA/IJO3jXvBDxdQFPzSbBTnZu8ebIuhCyWbi12WJaS ytq4Pydte7mgVuP7UMSlXu3XwV/NpgszvTlT+Ke+AkEUX0VDWHptgTdK7nt285p19x ZWmjC78Ixa0Sn+TWhMJ4Hw2knfZiOG5e7XyJ0+10= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Leif Liddy , Andy Shevchenko , Mark Brown , Sasha Levin Subject: [PATCH 5.10 361/663] spi: pxa2xx: Fix the controller numbering for Wildcat Point Date: Mon, 1 Mar 2021 17:10:09 +0100 Message-Id: <20210301161159.702497326@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161141.760350206@linuxfoundation.org> References: <20210301161141.760350206@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andy Shevchenko [ Upstream commit 54c5d3bfb0cfb7b31259765524567871dee11615 ] Wildcat Point has two SPI controllers and added one is actually second one. Fix the numbering by adding the description of the first one. Fixes: caba248db286 ("spi: spi-pxa2xx-pci: Add ID and driver type for WildcatPoint PCH") Cc: Leif Liddy Signed-off-by: Andy Shevchenko Link: https://lore.kernel.org/r/20210208163816.22147-1-andriy.shevchenko@linux.intel.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/spi/spi-pxa2xx-pci.c | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/drivers/spi/spi-pxa2xx-pci.c b/drivers/spi/spi-pxa2xx-pci.c index f236e3034cf85..aafac128bb5f1 100644 --- a/drivers/spi/spi-pxa2xx-pci.c +++ b/drivers/spi/spi-pxa2xx-pci.c @@ -21,7 +21,8 @@ enum { PORT_BSW1, PORT_BSW2, PORT_CE4100, - PORT_LPT, + PORT_LPT0, + PORT_LPT1, }; struct pxa_spi_info { @@ -57,8 +58,10 @@ static struct dw_dma_slave bsw1_rx_param = { .src_id = 7 }; static struct dw_dma_slave bsw2_tx_param = { .dst_id = 8 }; static struct dw_dma_slave bsw2_rx_param = { .src_id = 9 }; -static struct dw_dma_slave lpt_tx_param = { .dst_id = 0 }; -static struct dw_dma_slave lpt_rx_param = { .src_id = 1 }; +static struct dw_dma_slave lpt1_tx_param = { .dst_id = 0 }; +static struct dw_dma_slave lpt1_rx_param = { .src_id = 1 }; +static struct dw_dma_slave lpt0_tx_param = { .dst_id = 2 }; +static struct dw_dma_slave lpt0_rx_param = { .src_id = 3 }; static bool lpss_dma_filter(struct dma_chan *chan, void *param) { @@ -185,12 +188,19 @@ static struct pxa_spi_info spi_info_configs[] = { .num_chipselect = 1, .max_clk_rate = 50000000, }, - [PORT_LPT] = { + [PORT_LPT0] = { .type = LPSS_LPT_SSP, .port_id = 0, .setup = lpss_spi_setup, - .tx_param = &lpt_tx_param, - .rx_param = &lpt_rx_param, + .tx_param = &lpt0_tx_param, + .rx_param = &lpt0_rx_param, + }, + [PORT_LPT1] = { + .type = LPSS_LPT_SSP, + .port_id = 1, + .setup = lpss_spi_setup, + .tx_param = &lpt1_tx_param, + .rx_param = &lpt1_rx_param, }, }; @@ -285,8 +295,9 @@ static const struct pci_device_id pxa2xx_spi_pci_devices[] = { { PCI_VDEVICE(INTEL, 0x2290), PORT_BSW1 }, { PCI_VDEVICE(INTEL, 0x22ac), PORT_BSW2 }, { PCI_VDEVICE(INTEL, 0x2e6a), PORT_CE4100 }, - { PCI_VDEVICE(INTEL, 0x9ce6), PORT_LPT }, - { }, + { PCI_VDEVICE(INTEL, 0x9ce5), PORT_LPT0 }, + { PCI_VDEVICE(INTEL, 0x9ce6), PORT_LPT1 }, + { } }; MODULE_DEVICE_TABLE(pci, pxa2xx_spi_pci_devices); -- 2.27.0