From patchwork Fri Jun 25 05:22:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 466819 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp1106775jao; Thu, 24 Jun 2021 22:22:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUNad9ybVohNoanPXte8iuuCEzupmxP1NdujUnQLwf/IxbWWZ1LWAK3WjYCapumhxSmcFh X-Received: by 2002:a17:906:dbd9:: with SMTP id yc25mr9000229ejb.267.1624598554274; Thu, 24 Jun 2021 22:22:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624598554; cv=none; d=google.com; s=arc-20160816; b=tLXprYdoN+hVaQiTcoe1c2c4nWOMtP2tc5ri1TZjQfU9V19kzbbZxpvxRt46iD1bFQ hj1h4Q6zzUTnz/fE/zQFGA4nom9H6NP5iIC0McpEeilhN/Wf7L7+Q9UMUbA3/3QH3vhG 1zVOQagdOcc1Wma8N2QjSVOLZOZEQDJQqiGFVzXgYvoLxTYKVAxv6dGqiXL5S2wOWzf8 kHAumxGKmLd/2zdySKpfbvNCiFAvu402/jCfN4doETY2vlm63hlGnIp8HWxTX4OME/m4 vEvQRrHCyHQZZ8LCtabAI4bfp9AgYZ8YvulUCL7QV6w5/gMy+Wh5uzGl4ryVnstvOPG5 qF6w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hjZ+GWnC2xkMKmfKy4GXwAE7E/p/RIHeqrKLi7Kawj8=; b=Bu2PM6wECIyTpx5SsV1CzjevrQvW1WJi9cKMs1+NhrXnr1WJAEJGzp+tiKvCXiF+gM tzkUlyFOF+xmmLlqRkNKYrQ2P8M2uKFGaJc9wCrFE9HX0pikDdduk+WjZt3aLhST5oe8 jXHKwJj79PzaDJPsuh2lSitwA4dd5TYg83LYUhJwHn/NGmiWFH30clq23vgggqdRmIJO I3mftL3rOJaE7qNVCxWtlgIug5/zkgZiM82R4GOoUYWxxmGVaBIBqJ4tI/zHI/9B9Y8J J/ZIz0d8AdwR6tpy5WLMCYatw4s1pOcA4MqMk63JHq+cmf/orRFHDf+sSQ/EBNzUyhwv MpWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="KcXhZM/M"; spf=pass (google.com: domain of linux-i2c-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-i2c-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 hz10si4823625ejc.378.2021.06.24.22.22.34; Thu, 24 Jun 2021 22:22:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-i2c-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=k20201202 header.b="KcXhZM/M"; spf=pass (google.com: domain of linux-i2c-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-i2c-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 S230359AbhFYFYw (ORCPT + 2 others); Fri, 25 Jun 2021 01:24:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:46174 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233129AbhFYFYv (ORCPT ); Fri, 25 Jun 2021 01:24:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E269161423; Fri, 25 Jun 2021 05:22:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624598551; bh=9CpDYd6V2+ZRataORv0JLj011dFvZe8nxIM9fHBFhSA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KcXhZM/MpToxLGfI//7R+vEgoTnrXwjgeQAdZfu0TQ40FoIiEJyUzv4zb7me9cw0a 28kBq8fLaAWtKLIUn5vH6yOgJlWuBMtybVTVvcv2eRJSzc4boQOZRBXtUZryzm3tP4 ATjLmyBJ/vznuwchZXvHxqhWmHoi/B5UAD19q51HKgKaW2i9hsfbnvkaXZVUPOMHuQ udTWSfFluKQVqYZv8Q6DMl1hL/bSOKanpmp2tCLlG5BAkx3FZ8SQiCzBnT7TL09OAK q3G4LcERwvNPTBl0dx6kEcuExJmZMwLQBolibw44UskILSyRqL3/96fN8CIw2YfxAP wnd41dDJw7+eA== From: Vinod Koul To: Bjorn Andersson , Mark Brown , Wolfram Sang Cc: Vinod Koul , Andy Gross , Sumit Semwal , Douglas Anderson , Matthias Kaehlcke , linux-spi@vger.kernel.org, linux-i2c@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/5] soc: qcom: geni: move GENI_IF_DISABLE_RO to common header Date: Fri, 25 Jun 2021 10:52:09 +0530 Message-Id: <20210625052213.32260-2-vkoul@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210625052213.32260-1-vkoul@kernel.org> References: <20210625052213.32260-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org GENI_IF_DISABLE_RO is used by geni spi driver as well to check the status if GENI, so move this to common header qcom-geni-se.h Reviewed-by: Bjorn Andersson Signed-off-by: Vinod Koul Reviewed-by: Douglas Anderson --- drivers/soc/qcom/qcom-geni-se.c | 1 - include/linux/qcom-geni-se.h | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) -- 2.31.1 diff --git a/drivers/soc/qcom/qcom-geni-se.c b/drivers/soc/qcom/qcom-geni-se.c index 5bdfb1565c14..fe666ea0c487 100644 --- a/drivers/soc/qcom/qcom-geni-se.c +++ b/drivers/soc/qcom/qcom-geni-se.c @@ -104,7 +104,6 @@ static const char * const icc_path_names[] = {"qup-core", "qup-config", #define GENI_OUTPUT_CTRL 0x24 #define GENI_CGC_CTRL 0x28 #define GENI_CLK_CTRL_RO 0x60 -#define GENI_IF_DISABLE_RO 0x64 #define GENI_FW_S_REVISION_RO 0x6c #define SE_GENI_BYTE_GRAN 0x254 #define SE_GENI_TX_PACKING_CFG0 0x260 diff --git a/include/linux/qcom-geni-se.h b/include/linux/qcom-geni-se.h index 7c811eebcaab..5114e2144b17 100644 --- a/include/linux/qcom-geni-se.h +++ b/include/linux/qcom-geni-se.h @@ -63,6 +63,7 @@ struct geni_se { #define SE_GENI_STATUS 0x40 #define GENI_SER_M_CLK_CFG 0x48 #define GENI_SER_S_CLK_CFG 0x4c +#define GENI_IF_DISABLE_RO 0x64 #define GENI_FW_REVISION_RO 0x68 #define SE_GENI_CLK_SEL 0x7c #define SE_GENI_DMA_MODE_EN 0x258 @@ -105,6 +106,9 @@ struct geni_se { #define CLK_DIV_MSK GENMASK(15, 4) #define CLK_DIV_SHFT 4 +/* GENI_IF_DISABLE_RO fields */ +#define FIFO_IF_DISABLE (BIT(0)) + /* GENI_FW_REVISION_RO fields */ #define FW_REV_PROTOCOL_MSK GENMASK(15, 8) #define FW_REV_PROTOCOL_SHFT 8