Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp115495ybg; Mon, 8 Jun 2020 18:02:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNRS8nQCUbMpOI+1DCwNwcNShKevjjYBBaQYPgcPZaGNN+stJA6I6yC3iz64QKrlxu6MCy X-Received: by 2002:a50:f983:: with SMTP id q3mr25624044edn.259.1591664566379; Mon, 08 Jun 2020 18:02:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591664566; cv=none; d=google.com; s=arc-20160816; b=FHpoRc06kyJyB8NGOAXFR0dm8uQMXgZQqE6DVpmKHNXUPrOcRaDe9p3J+0HF1hh1hc nPtqwLKY0KcKSArLHvQP/VxjhPcqJjhhOBbZg2WOroZJQjAmpbOMVwUvbgVnLtNkCwow uZK8XoZDxmBV1d+EtSMebKQ/FROcPPiiVauAGDaUpcW9BMKwAudgdXE2qWx5Qkj9BeRX PCpaoRAchKpp8g8G8ZCYYt0AOzP7uqnNDePto00VMxpcDxw3sQkXclhwuRwjSRqfV5/P e/mUQr63rxocQdCXq89sOnKlQk8rjmnsivwcosO55C6A3sofpp5T/HuAb6HF3LeU3JgB 0otw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qq2sF0dpBv/6QC4KjVzImqgyt1wdbuKgVCoZc4EOi5A=; b=FS9UBXkRUTDG9+2+BWYGPr2+SvkPcCPT+oqaWmfdpgStOVT7YzACHeNDbhSWyTeUUd NftZG1ir+Yc7NDq/Ymbv6+/Ht+KZp5afbYZgGEc8vsHBIQYySUolfe2eVRlUaK01ZW2R Xz10zz8K2llu8nh31tMjXONDdITISQUL32FyXFAwhF2AhfWP/ytbFpBZtPX6yM0MaFRA k3uE1r97Ikr6wTk0/WpUy2/2BBYDdsOPIaFRihsUJtUY5TYFHldYec6XgaeuD225LAWL CuApwnGeV9YPIiMxiGaBWoX/ULCf/+AcMz4DndfCemVsc+Uuy1Uml4ao3LjsiHlAUeOG eJ+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="zE/h0stF"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id du7si2366796ejc.341.2020.06.08.18.02.23; Mon, 08 Jun 2020 18:02:46 -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=@kernel.org header.s=default header.b="zE/h0stF"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730778AbgFIBAe (ORCPT + 99 others); Mon, 8 Jun 2020 21:00:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:53446 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728144AbgFHXIT (ORCPT ); Mon, 8 Jun 2020 19:08:19 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5BC23208B3; Mon, 8 Jun 2020 23:08:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591657699; bh=+2NOhQ0peQsJcxduJPSM0cvQWxmusNKkC9yPB/u6K58=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zE/h0stFZvhtamSDe92/jiNDqFbmUzzmXsxUfZDbMGXamzwjeMAGXU+yWynb5eE28 qvZJRbDXXrBOcLcMC0kCpO27GfSBDVKYzkO2cNbpoEy1jUqOPeOAkQ5sOMk78OHzRV 2tfZrWKAGEtLf/7/Q1/z9RgkOyaSGXcDMUz/AYmg= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Andy Shevchenko , Mark Brown , Sasha Levin , linux-spi@vger.kernel.org Subject: [PATCH AUTOSEL 5.7 098/274] spi: Respect DataBitLength field of SpiSerialBusV2() ACPI resource Date: Mon, 8 Jun 2020 19:03:11 -0400 Message-Id: <20200608230607.3361041-98-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200608230607.3361041-1-sashal@kernel.org> References: <20200608230607.3361041-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andy Shevchenko [ Upstream commit 0dadde344d965566589cd82797893d5aa06557a3 ] By unknown reason the commit 64bee4d28c9e ("spi / ACPI: add ACPI enumeration support") missed the DataBitLength property to encounter when parse SPI slave device data from ACPI. Fill the gap here. Fixes: 64bee4d28c9e ("spi / ACPI: add ACPI enumeration support") Signed-off-by: Andy Shevchenko Link: https://lore.kernel.org/r/20200413180406.1826-1-andriy.shevchenko@linux.intel.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/spi/spi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index c92c89467e7e..e0e27fe06878 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -2111,6 +2111,7 @@ static int acpi_spi_add_resource(struct acpi_resource *ares, void *data) } lookup->max_speed_hz = sb->connection_speed; + lookup->bits_per_word = sb->data_bit_length; if (sb->clock_phase == ACPI_SPI_SECOND_PHASE) lookup->mode |= SPI_CPHA; -- 2.25.1