From patchwork Fri Jun 19 07:43:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 191164 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp288129ilo; Fri, 19 Jun 2020 00:44:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznNnNsJOfL+o+5UyDTWCWfHEsCqm6wsvvOrqTKbx5SdyaSzo8tDpurTA6bW7qUKW/IprY1 X-Received: by 2002:a05:6402:54d:: with SMTP id i13mr1997077edx.330.1592552642351; Fri, 19 Jun 2020 00:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592552642; cv=none; d=google.com; s=arc-20160816; b=ZL7HtP/6HAPVdtSzHnFLw6nfMlwmMfBLv51/ZQxcRkahmWBgipExLX/Ywk1FvHqYRs POu9w4pxirGszKMXHx8FZpTSZN6kbeDL+WBbCXaagVrwRPU86yvL5c8KP93jCV00YvxG vUGo5x/DI99IoY7wd0eMD97D8BcVFlkzZ27e5eFA37MnXOs91/1oxzqlT6HEXE2aicHo VFCho2OEHQ4K5TYBNYqhmANbozBfMd5U3vPHDs1G4bHSHtCrt19ADJeBLtZbyPm2u0zu nVo90aqXXOVHH5qD5Kn0rfCRMCo3fa1ZPVymBXAyoN7EV9BGWQFWmwEfDAnWqdoshtPM 4sYQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=rpyLld2klEcg5SmKR7ON7h5zd7q3Dc7LuqFGo+TisP4=; b=F2XCeD1vHJ4EfIKCn8FCBeDjCI+X0iESrPOoCfd+CPyalhN4gT6+ggImKzTXEi5TMW FDIEngCtrYCyqGwKZsGCDOjuXqp7f6uN3o0PWtQQm8zRLJTMyz/5DQeZNm+t3wX1/S/G egCuK9hIwtXJ26nwvBQldUkl3fxAOhSOLcAZWf8eVw9MHl6zJpPHsue8AGK95dywBDqk jVk46UWACBRF10C4HaKRVVth2R/M8Doi0P8J1gNvDitShH6hp9/0M9704AevdgHpfmx6 aziL/OxFCrQPsximImUuuA51WdgTOEl4Ed2jPx5tOplGxO+gOUDYz23LAMO58jxeeW0s ammA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Jr0YrytK; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 n12si3471354ejz.397.2020.06.19.00.44.01; Fri, 19 Jun 2020 00:44:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-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=Jr0YrytK; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1731014AbgFSHoB (ORCPT + 16 others); Fri, 19 Jun 2020 03:44:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:59968 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730955AbgFSHoA (ORCPT ); Fri, 19 Jun 2020 03:44:00 -0400 Received: from localhost.localdomain (unknown [171.61.66.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F16F32073E; Fri, 19 Jun 2020 07:43:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592552640; bh=G9lBmeDxHh2VeTZymUbF1CdX0re/3uaKH5q60zlt4gY=; h=From:To:Cc:Subject:Date:From; b=Jr0YrytKVOh9yPMdnZtTHUIndZk8WAzweXTFVG3Ktp/df/K6Mvu0eRFsBQt9uI4oO 966xh614vJSnAP5XdHlHE+Gw+NUQeyGhDVgvXxDbjAZvTjsquBkZoFsHI+TqfRl8IK OzEjg9UwNEJmULmxV0z4XYHCNbzPOLV8YrWGRVQo= From: Vinod Koul To: Mark Brown Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Geert Uytterhoeven , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, mani@kernel.org Subject: [PATCH] spi: spidev: fix missing octal defines Date: Fri, 19 Jun 2020 13:13:45 +0530 Message-Id: <20200619074345.4041673-1-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Commit 896fa735084e ("spi: spidev_test: Add support for Octal mode data transfers") adds support for octal mode but failed to update userspace header with octal defines causing build error for the spidev tool spidev_test.c: In function ‘transfer’: spidev_test.c:131:13: error: ‘SPI_TX_OCTAL’ undeclared (first use in this function); did you mean ‘SPI_TX_DUAL’? if (mode & SPI_TX_OCTAL) ... Update the header with octal values. Fixes: 896fa735084e ("spi: spidev_test: Add support for Octal mode data transfers") Signed-off-by: Vinod Koul --- include/uapi/linux/spi/spidev.h | 2 ++ 1 file changed, 2 insertions(+) -- 2.26.2 diff --git a/include/uapi/linux/spi/spidev.h b/include/uapi/linux/spi/spidev.h index ee0f2460bff6..f0c95f5cc719 100644 --- a/include/uapi/linux/spi/spidev.h +++ b/include/uapi/linux/spi/spidev.h @@ -48,6 +48,8 @@ #define SPI_TX_QUAD 0x200 #define SPI_RX_DUAL 0x400 #define SPI_RX_QUAD 0x800 +#define SPI_TX_OCTAL 0x2000 +#define SPI_RX_OCTAL 0x4000 /*---------------------------------------------------------------------------*/