From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5A7EC433B4 for ; Thu, 8 Apr 2021 07:52:32 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4C0C661157 for ; Thu, 8 Apr 2021 07:52:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4C0C661157 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=tDMi8bvF08wdFK3qs/Ym7mVMizr+aKOrUmG7Rpphw/U=; b=EPq9YmUCYc4a0gMxjDN80xFe5o 3EuOho64Txb1rAHBUJ8K+jPagWjW6lFU1B4AdoDZkH3aVU3uRbam8VnZ45IQiuy/cl+d19EelWP8Q skGW/2WpbCED3TjWHax+LLraBoB/6MgweD7BcpMu7dCtJt0VJkFq5qhMjt7P0fAt4Pph77MdIy98T hgCBk3V7nOBQ5m2JNveZb1HlpxqkMr9k9aQ/DNMmB+CUgwy+tIB7Ut1QnoRwYr2KF0NLvbNpQY8MO RgzYgZc72cjt0WV28NC56aG6xm7jt9wlQD84x/lYDYiAato+6Vpf5LYqTLu+NdbQgCdy4uCKxR0Po aNvVPIRQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUPRL-007H1l-8y; Thu, 08 Apr 2021 07:50:59 +0000 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUPRC-007H1L-GS for linux-arm-kernel@lists.infradead.org; Thu, 08 Apr 2021 07:50:53 +0000 Received: by mail-lf1-x12f.google.com with SMTP id r8so2359390lfp.10 for ; Thu, 08 Apr 2021 00:50:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6U45pNdM0qN4a1O10k6aqNmRvSwq7HC5E/CC+/6kbdY=; b=XRR7rBXeebmDkxmYIYN5rgebwUcGncYOZ/PtkC0j6YsuR86lapKeh9k4XFXaGaij0Q Mtg8Odet2Ylc4ejK8w+BGU5HatAvS9MHUSI3u7WeBzvWbCZ1rFUYMKzZ228J7+iAPdGE hxWZQ6/neNSpnTXs8BnkGCPJYEuP8ex/ksnjMmD2QP1mUEt/kuSsiLyHNLh9hT7Gcq2i 6qK6Q1t7b46s0onC+usETpAMoEvkmgCm5W/cM4GR7MjW2Wa03G4Oz0490Q+FWMIy/hoJ X4Krso3ijAvumBIbYB9FL53tp6lpfji0dhBaGETduQsqJ4ssQr3rL56z/NDDxwU39pQz rG3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6U45pNdM0qN4a1O10k6aqNmRvSwq7HC5E/CC+/6kbdY=; b=I/65LjrW+Oj/ww2o+CitN48cm0ZSnoMx9qeZ/FytdXD1990TEpsPxix0lcgZ+NvSNb sjdlWrsL/P7cykDkDEQuv46h0ZM7nu1QC36eDDEKeXifB/qXrSlVCGUJkSBAGMWNmfJP W8zT5B7NwF4sYx7kqk+hHUPTiCIV27+mODr9kHtXzaLASvWS85mh5hMJGH/XFiXybbIK nDp+2A7Botsas+/L62tYff3WdOH0Rc2V2ds44Vv2p+Iew48VI8TKWCjRn3k9Z6wpxBEI XGP/bOHOCQyXsHInD9LmorUupFk6GfWl1olqCgDWJTwhFXiOERWdnpI9sAR/sByRyl+T uFaA== X-Gm-Message-State: AOAM531cSvdjGNj6V/XpCJYW48p76Yc5eoQDRdZsjG24yYGZJlWkmIUB K5YWoUpixuEVvA0QHFzFRm1JgA== X-Google-Smtp-Source: ABdhPJxschS7sHftq6y4Nq9zxIS/tz3Z1oIIE6idpIyBg0/cTsqk75eWFELbJzLgDos498C6xETIAw== X-Received: by 2002:a05:6512:1102:: with SMTP id l2mr5243471lfg.501.1617868247771; Thu, 08 Apr 2021 00:50:47 -0700 (PDT) Received: from localhost.localdomain (c-14cb225c.014-348-6c756e10.bbcust.telenor.se. [92.34.203.20]) by smtp.gmail.com with ESMTPSA id x13sm2777709ljj.4.2021.04.08.00.50.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Apr 2021 00:50:47 -0700 (PDT) From: Linus Walleij To: Mark Brown , linux-spi@vger.kernel.org Cc: Linus Walleij , Viresh Kumar , Shiraz Hashim , linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM/spi: spear: Drop PL022 num_chipselect Date: Thu, 8 Apr 2021 09:50:45 +0200 Message-Id: <20210408075045.3435046-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210408_085050_817449_1352BE2F X-CRM114-Status: GOOD ( 16.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org A previous refactoring moved the chip select number handling to the SPI core and we missed a leftover platform data user in the ST spear platform. The spear is not using this chipselect or PL022 for anything and should be using device tree like the rest of the platform so just delete the offending platform data. Cc: Viresh Kumar Cc: Shiraz Hashim Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Linus Walleij --- Mark: please apply this as a fix to the SPI tree unless there are protests. --- arch/arm/mach-spear/spear320.c | 2 -- arch/arm/mach-spear/spear3xx.c | 10 ---------- 2 files changed, 12 deletions(-) diff --git a/arch/arm/mach-spear/spear320.c b/arch/arm/mach-spear/spear320.c index 0958f68a21e2..926d5a243238 100644 --- a/arch/arm/mach-spear/spear320.c +++ b/arch/arm/mach-spear/spear320.c @@ -195,14 +195,12 @@ static struct pl022_ssp_controller spear320_ssp_data[] = { .dma_filter = pl08x_filter_id, .dma_tx_param = "ssp1_tx", .dma_rx_param = "ssp1_rx", - .num_chipselect = 2, }, { .bus_id = 2, .enable_dma = 1, .dma_filter = pl08x_filter_id, .dma_tx_param = "ssp2_tx", .dma_rx_param = "ssp2_rx", - .num_chipselect = 2, } }; diff --git a/arch/arm/mach-spear/spear3xx.c b/arch/arm/mach-spear/spear3xx.c index 8537fcffe5a8..f83321d5e353 100644 --- a/arch/arm/mach-spear/spear3xx.c +++ b/arch/arm/mach-spear/spear3xx.c @@ -30,16 +30,6 @@ struct pl022_ssp_controller pl022_plat_data = { .dma_filter = pl08x_filter_id, .dma_tx_param = "ssp0_tx", .dma_rx_param = "ssp0_rx", - /* - * This is number of spi devices that can be connected to spi. There are - * two type of chipselects on which slave devices can work. One is chip - * select provided by spi masters other is controlled through external - * gpio's. We can't use chipselect provided from spi master (because as - * soon as FIFO becomes empty, CS is disabled and transfer ends). So - * this number now depends on number of gpios available for spi. each - * slave on each master requires a separate gpio pin. - */ - .num_chipselect = 2, }; /* dmac device registration */ -- 2.29.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel