From patchwork Tue Apr 25 08:42:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijaya Krishna Nivarthi X-Patchwork-Id: 87311 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3265269vqo; Tue, 25 Apr 2023 01:59:24 -0700 (PDT) X-Google-Smtp-Source: AKy350aXage+K7dCgRozV3X48QVQIpHyzGcUhEE+Q1f2LYVkvfKq26Ge+kHulrWCDEsIOU9Y3X+V X-Received: by 2002:a05:6a20:a590:b0:f2:3c0e:99fa with SMTP id bc16-20020a056a20a59000b000f23c0e99famr16568660pzb.26.1682413164390; Tue, 25 Apr 2023 01:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682413164; cv=none; d=google.com; s=arc-20160816; b=Fqc0uSHnYnT7KdJ8luTOv9DyHsqVoByD3vuAQw+94JnQ44wSvpkJmwPzGTjtGwr/Ps /L/dssOQru4oFbziQGQOmbsjo4Beb3Gk0XX7mVvIPJTHD5v5LwN1Ce6FjVWXl3b6+lAD IOhNRTbu/zObUjE0A1OR7H3F5aGNI9w7bahQBfinXc0OzdfGH3cP1uyBwYbMcvp+eZQs P+ezkTs9ajHEtSE9CUvb0EDLnT8jZogUElWm0VwKsvZsF83+KY6r+89zxAddSHVLN3HU e2sRQUV4zpD1+Xiu3CsZ/7zGkwmqfH7tmw7EGU5MT/IUO9JAJpAyh28PD3TmxrXBe+h+ S6jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=+rFbWwdM8ulzbxzZB9fGFE1m8ADBKvlGl4/5fC/q6pc=; b=nH4Y1wkxrq46ROlGS+bMAiwS1E4V3i3Ny2qKkcw7XDvRpG71HjXPPdkcOonE7hjMzj ViLF1Pzxi/YVfAcOL/5PH/ZP7yIiF+8QG4TdXfkIUWouZlWIs9EXVqc7hsqivNEDSD07 vT70g0QS2ophACvCukqAMyb6MnqxhVlNNuJtd48cP3Y8+zKlcl00n9BlSwK+Cn63wLqs 6blOJ+GIBXDKOERT2rO0BXBbn15R9iA5ES49l/RdAP6ax/v9q7XrCMflFDEhwJWc4046 CdY86pzlA3/advxNyssxJ6tIpzOVdr84DrqkVzAuM/vijToYl9TH+fAECW09ec03BZu9 5YVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hnVgZMD1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n15-20020aa7984f000000b0063b13efdd06si10757571pfq.345.2023.04.25.01.59.09; Tue, 25 Apr 2023 01:59:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hnVgZMD1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231137AbjDYIpu (ORCPT + 99 others); Tue, 25 Apr 2023 04:45:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233567AbjDYIpN (ORCPT ); Tue, 25 Apr 2023 04:45:13 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BDA513C23; Tue, 25 Apr 2023 01:43:03 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33P8MSNq012876; Tue, 25 Apr 2023 08:42:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id; s=qcppdkim1; bh=+rFbWwdM8ulzbxzZB9fGFE1m8ADBKvlGl4/5fC/q6pc=; b=hnVgZMD1WbnJXCnaVsicIohiy6JLeromL8znDnaIJWqcpk7oDYOFLrSDsgqCVHLjejBE hRDrQTev/YaFRsozOsLyUhZkRwcruzvOkUH/xdRgmpA4K+fvnvs9VgBDI8oAv84DBVEz DHsyJatKQlgh62PA7CoyRR0qTY/Biu63Q0P+waC7SZapdsJV+T15SlMQhE223Gv/dg/f bxvAFpCsaZi40EiK7dH9lp1oljUAXhrq/9IO+TQ8geF1KESGeaW3P/Y1KfzbCcGEmG+j DE2o9SS73OxS7qpo9jLeJwzu8rvt+JATChRnUri3npsXeS6zd3EE1tjDP7qlyvGSlbdX Fw== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3q5qv1tmp2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Apr 2023 08:42:18 +0000 Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 33P8gDsd012860; Tue, 25 Apr 2023 08:42:13 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 3q48nkkyt2-1; Tue, 25 Apr 2023 08:42:13 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 33P8gD8J012855; Tue, 25 Apr 2023 08:42:13 GMT Received: from hu-sgudaval-hyd.qualcomm.com (hu-vnivarth-hyd.qualcomm.com [10.213.111.166]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 33P8gDjT012853; Tue, 25 Apr 2023 08:42:13 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 3994820) id AE9CE47D6; Tue, 25 Apr 2023 14:12:12 +0530 (+0530) From: Vijaya Krishna Nivarthi To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, broonie@kernel.org, linux-arm-msm@vger.kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: quic_msavaliy@quicinc.com, dianders@chromium.org, mka@chromium.org, swboyd@chromium.org, quic_vtanuku@quicinc.com, Vijaya Krishna Nivarthi Subject: [PATCH] spi: spi-geni-qcom: Correct CS_TOGGLE bit in SPI_TRANS_CFG Date: Tue, 25 Apr 2023 14:12:08 +0530 Message-Id: <1682412128-1913-1-git-send-email-quic_vnivarth@quicinc.com> X-Mailer: git-send-email 2.7.4 X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: MHGhzgkrjUThNcA52Z44b5Nu9NEYE6Rx X-Proofpoint-ORIG-GUID: MHGhzgkrjUThNcA52Z44b5Nu9NEYE6Rx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-25_03,2023-04-21_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 impostorscore=0 phishscore=0 bulkscore=0 priorityscore=1501 malwarescore=0 lowpriorityscore=0 spamscore=0 mlxlogscore=649 suspectscore=0 clxscore=1015 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304250076 X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764138066121637672?= X-GMAIL-MSGID: =?utf-8?q?1764138066121637672?= The CS_TOGGLE bit when set is supposed to instruct FW to toggle CS line between words. The driver with intent of disabling this behaviour has been unsetting BIT(0). This has not caused any trouble so far because the original BIT(1) is untouched and BIT(0) likely wasn't being used. Correct this to prevent a potential future bug. Signed-off-by: Vijaya Krishna Nivarthi Reviewed-by: Douglas Anderson Acked-by: Konrad Dybcio --- drivers/spi/spi-geni-qcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-geni-qcom.c b/drivers/spi/spi-geni-qcom.c index ba7be50..8a7d1c2 100644 --- a/drivers/spi/spi-geni-qcom.c +++ b/drivers/spi/spi-geni-qcom.c @@ -35,7 +35,7 @@ #define CS_DEMUX_OUTPUT_SEL GENMASK(3, 0) #define SE_SPI_TRANS_CFG 0x25c -#define CS_TOGGLE BIT(0) +#define CS_TOGGLE BIT(1) #define SE_SPI_WORD_LEN 0x268 #define WORD_LEN_MSK GENMASK(9, 0)