Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3545438pxb; Mon, 1 Mar 2021 12:56:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJypCTuWOUD/Y8S4t5SXafkLabHhCcAHOTp60tzC4VpQiBzqwxZyclWPQhfx7juTKFrt8wYP X-Received: by 2002:a17:907:75c7:: with SMTP id jl7mr2406412ejc.191.1614632162498; Mon, 01 Mar 2021 12:56:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614632162; cv=none; d=google.com; s=arc-20160816; b=DhnMk+NsnYSfuttvcR7BqGboVg3luWB3JNyvWypbKoCNQodTgDhnuKfY2h3yxFn6/D QhkXep+tm8a3LXgOQYgjjr021c0odZgH1kMThfzQq5pewvxUyNUJNeC913gqCWHIz/FD 8j9mBP4xX0XvvhHeh8xFNdXBPA3L0k8j/y797fMkfa3EFvNz6IFL2FbrNpJRaZ0cfEZR XMZb55GDsRkVpju0WecYK/33ziXw30MVbjMYC/IGd1MbDa179c+I3HMPRnBmdcRpIigi JcezYEPlC32/AJMmFtyGzikoBzQUSV4rTI1qy186vPFGh8lfwGSKrnk2peQtCHNS7N9T uuBA== 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=xDRPQAglL9yGkbXelGGhYl7dAXCWAA4EBNBq9k19MoY=; b=A1xoZgJKbJGb71Abk8rFaRc56VZTfdTMqompdaNXOvuzOnmBY0E0EICjbZ/S8ykmGZ TGSSintg4qenLUysyHVH07VOgxf4hF7Hays4LJzHL+kQ1atvG/xsCjnUZ9a64D1Z3u22 gV211g3zbfE3WpraBpWxHF87I28Ue7oR6ksNqXkFFucEe6gb9KE3UnLlwZWjiJLQStsJ ZHYOz4X/wS8a/qHmiKvf/eEYQUH5/nXGh5PPddLR1nGO3CCYmpLlu5CZQVhfB5YR5JgZ L4jg53Tm8kHhFHzVxw4mK20KaDsiGN2bJjWgn/550VBEsfDPzZpQLrX/3OXKnmLy0K9q QAPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oOt3BBhY; 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 ay21si3180241ejb.527.2021.03.01.12.55.40; Mon, 01 Mar 2021 12:56:02 -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=oOt3BBhY; 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 S239039AbhCAUwX (ORCPT + 99 others); Mon, 1 Mar 2021 15:52:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:35314 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233064AbhCARIq (ORCPT ); Mon, 1 Mar 2021 12:08:46 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 59DF96501C; Mon, 1 Mar 2021 16:42:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614616943; bh=xAfh6t1SZ2YwzAW9Vc/pETSDP+jeZsVe8cqm2NHfAhI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oOt3BBhYy44jL0fhQXmCn5Q1QA//JYUD7qsnUbl6/fbXo2M8FuMVVo6mNccrNibF2 fOwgROD6D7PhR81wR5dGp9TABzV9sEgPIcbYBHl/fc8NmlcxMkduX2zPDTh0FOchuL pbyemhJsfGR+QH2Sc7gPmJjjm/xc//nx/9FPZzg0= 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 4.19 148/247] spi: pxa2xx: Fix the controller numbering for Wildcat Point Date: Mon, 1 Mar 2021 17:12:48 +0100 Message-Id: <20210301161038.918072207@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161031.684018251@linuxfoundation.org> References: <20210301161031.684018251@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 869f188b02eb3..1736a48bbccec 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 { @@ -55,8 +56,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) { @@ -182,12 +185,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, }, }; @@ -281,8 +291,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