Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2476903pxj; Mon, 10 May 2021 04:03:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznsMA6wjU+cEY0mmpUWTPiHaq7fAn1MbScf1DCthQWGNSAkZYUUq4C9KXGG7DVZjoM613N X-Received: by 2002:a92:cb86:: with SMTP id z6mr21447783ilo.35.1620644606032; Mon, 10 May 2021 04:03:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620644606; cv=none; d=google.com; s=arc-20160816; b=tQJ4lN2dLMzLsvm4ROexhlTDqOznOXUUfqVgrIZnzOnv0hScvEgl4kCgEDBdj2/UfY pA2FViM0IDFyc7sTT4dm3sl2e5WBfAm7ucHrlhRSQg6KpnvEO/QSt2RkLBNXUruhTV82 rnf0GzM2mCjuIQTVpl0Pl+zJ6uPX2vBY4X7YtUuL8I5fGt/LVmePkgR/aLX3Q1CI8/S7 m3kQEefNu4yqLwyYrR4OcYVhm1inGM8KFM9mtJUGLvvrYO9C4PjQUP4P5qJO+bNwb/Iy 8vhFhFIeo/t/KiVtQ6hsGAxFWK5Q2x5uMPoJngIrfAQKsa/9BQuUoIbM60zUjIxoB5W0 teGQ== 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=HVRMW5OxPgBC/Zd8wdnoF2ki3LaIvtdSvCKc/K0VhKY=; b=g+F6ecPR7FjY0FMP23a++oI42eUZg+cKrmeH4US76aqLOli/DS0W12t95A1HIm4RX1 raQRwnITduiCZLO0U5TsoYQmn2lj7O3su/TakyX0DxZnl1j7LZuy2zCT9TYpbm4RUuxE z0ur0nRoH6U9lyTfBTqRD6OTBYeGeLeH0Gv8CRZ/YpfIVGNI8N1n1CiaNBhszgDOeZMB U2kkkliNoxQvcr1kOYlz/U4qTnO9xCZVFOrEobGr4kTHeSySsbtK1wXClgCJmVvi85Ub T0PnsJt15vBbwT1XisPlLCIhcWmIZMO6bZyghbOLME0w9WV2yA2JVtECTaZ00wkAKLyx DHig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jG6t39gG; 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 n4si15283304ion.59.2021.05.10.04.03.14; Mon, 10 May 2021 04:03:26 -0700 (PDT) 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=jG6t39gG; 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 S234060AbhEJK7x (ORCPT + 99 others); Mon, 10 May 2021 06:59:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:59296 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232484AbhEJKoU (ORCPT ); Mon, 10 May 2021 06:44:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DA73B6198B; Mon, 10 May 2021 10:33:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620642790; bh=pgd1252rTW4FmboBZqeKmdDft2iOwqQhjAW9jP4Q6SE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jG6t39gGgfieIjtxEoVrOGUAj0a+PgSj65mI/stagVKJ1bpqA1QcUhEwNpXzeg9tp bEHKUhadpjcKPVHCTxtxUtXeuVtSeTrbkJmtEDFLXte0dxQAXNvrZ67y9pfafkdsEf nfk++AALhhoowQnhF8MXp6Q+oIj2xQZI0HVKLs2I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, David Bauer , Mark Brown , Sasha Levin Subject: [PATCH 5.10 053/299] spi: ath79: always call chipselect function Date: Mon, 10 May 2021 12:17:30 +0200 Message-Id: <20210510102006.633898492@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@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: David Bauer [ Upstream commit 19e2132174583beb90c1bd3e9c842bc6d5c944d1 ] spi-bitbang has to call the chipselect function on the ath79 SPI driver in order to communicate with the SPI slave device, as the ath79 SPI driver has three dedicated chipselect lines but can also be used with GPIOs for the CS lines. Fixes commit 4a07b8bcd503 ("spi: bitbang: Make chipselect callback optional") Signed-off-by: David Bauer Link: https://lore.kernel.org/r/20210303160837.165771-1-mail@david-bauer.net Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/spi/spi-ath79.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-ath79.c b/drivers/spi/spi-ath79.c index eb9a243e9526..436327fb58de 100644 --- a/drivers/spi/spi-ath79.c +++ b/drivers/spi/spi-ath79.c @@ -158,6 +158,7 @@ static int ath79_spi_probe(struct platform_device *pdev) master->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 32); master->setup = spi_bitbang_setup; master->cleanup = spi_bitbang_cleanup; + master->flags = SPI_MASTER_GPIO_SS; if (pdata) { master->bus_num = pdata->bus_num; master->num_chipselect = pdata->num_chipselect; -- 2.30.2