Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2563689yba; Mon, 15 Apr 2019 14:31:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDRmYtzpnShaXxlqwiD9eHldeI7nB4ygkYctzUMEviUO93WwiB5LgK/Gx5mKY0eZfq4NEv X-Received: by 2002:a63:df12:: with SMTP id u18mr73007700pgg.135.1555363918573; Mon, 15 Apr 2019 14:31:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555363918; cv=none; d=google.com; s=arc-20160816; b=0REWZduf+SK4KmqzMbwb/cvAi1lNBnImUlAvlmaBa8V+DVSI8puxmTWyVR79JM/9jq nWws9L2wMxIIREM8i3M1VqaiCtyGrmpdQHmGzQaxTtHVJM6Yw270gg+20bEAxo/0kAx7 TjC5fsL5wlvyzq1ED481XPNjGFt8cC6SL+e15Z4MOLL0LiUv1P9b8YqAyyuJrv38EsOA 3H0BnZja+Hs8x8PBJtefqqWQV96cCxP9qXjdCF/0i3HitXpwW+saL2/yoIr7xcm21cFE LMhfHO1LV9xisGH8HmdCnMuVT8zq+vkhctW52VHtPx8A5Jb4pWkSN68uIORY2MPz9iEd GVEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=Q/Ac6tgh+Fi0QXzPMWJrKBU/7jvvVApsGufw1si05cg=; b=Pg7b2DcvLZqu5A85ZMJiZkN9gEqmVRYvM8tz7HNXz+u+Z4hW5Vl7Vw5ZvsuIXJLMBB uK2ysbQZuM2PdZUQ7bCNg6Du7M1LdLbYSNv7uCzwFhmK50es/q9w+AKWpZiIjVn5Qy6Y WZApcOKHEpJRyztAzxor1JaNjycHaeDzwmzZJzBsaIo9LUgS2gAACdbN5j/bT4LFqngt YvBte581WYwQ9QV/lqfOPVo0RNUGiA+fGucvAdSXw4V6Fuhqh1XZxMZoSDxqwBc8yEJ0 ReUgCHtf2RwXa/MnhVEKVnYzTFNt3ZufWeDbsgaPwn/mzOPuc32XA1W/RZktk9+H/oEW PrWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="cGa63/wQ"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u63si46365695pgc.553.2019.04.15.14.31.42; Mon, 15 Apr 2019 14:31:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="cGa63/wQ"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728229AbfDOVas (ORCPT + 99 others); Mon, 15 Apr 2019 17:30:48 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:16522 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728199AbfDOVar (ORCPT ); Mon, 15 Apr 2019 17:30:47 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 15 Apr 2019 14:30:52 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Mon, 15 Apr 2019 14:30:46 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Mon, 15 Apr 2019 14:30:46 -0700 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL106.nvidia.com (172.18.146.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 15 Apr 2019 21:30:46 +0000 Received: from hqnvemgw02.nvidia.com (172.16.227.111) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Mon, 15 Apr 2019 21:30:46 +0000 Received: from skomatineni-linux.nvidia.com (Not Verified[10.2.167.253]) by hqnvemgw02.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Mon, 15 Apr 2019 14:30:46 -0700 From: Sowjanya Komatineni To: , , , , , , , CC: , , , , Subject: [PATCH V3 2/9] spi: expand mode support Date: Mon, 15 Apr 2019 14:30:27 -0700 Message-ID: <1555363834-32155-3-git-send-email-skomatineni@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555363834-32155-1-git-send-email-skomatineni@nvidia.com> References: <1555363834-32155-1-git-send-email-skomatineni@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1555363852; bh=Q/Ac6tgh+Fi0QXzPMWJrKBU/7jvvVApsGufw1si05cg=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:X-NVConfidentiality:MIME-Version: Content-Type; b=cGa63/wQ+dBu4q98NWVg9+dlnjMpSGXppt6R30TsvXhjUetyCr8CLMYjD8xYCVSiE R3RDw++QjiJwil6XLQp1nJ97NZ5/35VLXqLNe9AlpgU+dNR21HXX0jo1pO4tnRfMNp 1pR44McJrCVUpREpMfx09J3Z84Iekfh8I3AquQOGD52guMuWOT/K2TXomrS7MmWIUB nYX5kSBUE78J1hNuehgwtqtGx/yaM3GRHc1nfTfjic3snCOnWZZxezP/8k4w7htvC3 G5oCUBjxpOWCxFukKsOyh4kRgq9m9Y+QZ01YJXmM4f1n7gexGqSK7wiDqDxs58aVaT x2jV+WjyP8/NQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch changes mode and mode_bits from u16 to u32 to allow more mode configurations. Signed-off-by: Sowjanya Komatineni --- include/linux/spi/spi.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 589f9dc9ac2b..053abd22ad31 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -143,7 +143,7 @@ struct spi_device { u32 max_speed_hz; u8 chip_select; u8 bits_per_word; - u16 mode; + u32 mode; #define SPI_CPHA 0x01 /* clock phase */ #define SPI_CPOL 0x02 /* clock polarity */ #define SPI_MODE_0 (0|0) /* (original MicroWire) */ @@ -443,7 +443,7 @@ struct spi_controller { u16 dma_alignment; /* spi_device.mode flags understood by this controller driver */ - u16 mode_bits; + u32 mode_bits; /* bitmask of supported bits_per_word for transfers */ u32 bits_per_word_mask; @@ -1291,7 +1291,7 @@ struct spi_board_info { /* mode becomes spi_device.mode, and is essential for chips * where the default of SPI_CS_HIGH = 0 is wrong. */ - u16 mode; + u32 mode; /* ... may need additional spi_device chip config data here. * avoid stuff protocol drivers can set; but include stuff -- 2.7.4