Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37525923rwd; Tue, 11 Jul 2023 15:56:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlG5z+A402aP7qRBBHJeFfYwMhmPiLYzoAyGqEMYpWZAdCsk0VPjHxhQb1IwGuXUHmxyn0Ws X-Received: by 2002:a17:906:d7:b0:96f:e45f:92e9 with SMTP id 23-20020a17090600d700b0096fe45f92e9mr17700738eji.16.1689116188412; Tue, 11 Jul 2023 15:56:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689116188; cv=none; d=google.com; s=arc-20160816; b=FOGjXiORARAwwWwaossrtWpH9VdYzw/aYqncC7A22T50XZnJXUc2+zB/0G3aVmxjFx xhauvkzOs/ZC9C9xIh5y+0J2gO+nsnSi8lcRKvLx0qErbFhlBvKricE9kB3jb4ZRL6IZ Wvhh1EK1wNi/mlTADr7Aa58L1aQLXDhkgyTfSH48bx7khxeS3/kGnEM4CMPmSv7KP615 wtB6yUwEDZNTWpl1Zo9W2z+8lEduYjMjL5jZfJ2X1UogzzbZX2DPyCet2LjAFJjDAuVw XZqpg3lScOYnmx9/MCJQ6lABtn9LTvxKpNPma1wvNFEuativ9YY05f+5Zg2MtP1vnFDm 7TTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+Wct1c9gXqP9Ack2nrsZYUAZwsF6EfoRzexie2FhQnI=; fh=bfr9Ayx+3Q2QX9T49gb4Sbjkxlmw+NUZuKIokSOzgPw=; b=YrSQ5KjvpEE87LJIMNyJzUHEpd3jUkq0jzvFrI+QFLUgkTcLEax/SzH+ybp00r5t8J klIZXj3hUGEwdodiomEjhQrUUdH4y+8rEGxdTjsyKz8zKTksfrYGXCVn6YYgyeBBLQuA UG0Y5VyLVuGdhad43d7T71/uImHQpOSyOgiAKU8ZxSsQgYHXP4ZWa/72W/FFSpbXRkCK NKwraaZwlGWupyWgvG5CobvDlAlDaIaISFS8bwCdkQ/ZovJ+ikOTu4MkOjp99Sg7DQQd uyB43MpFCNQooBAV6iylhjojLUDkYtiY6bBfx1rq/ZdnM+/b+F7wdQO66loO76dUUXHc FQaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oYg6NhE+; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jo2-20020a170906f6c200b00992b32e3e3esi3028622ejb.468.2023.07.11.15.56.04; Tue, 11 Jul 2023 15:56:28 -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=@kernel.org header.s=k20201202 header.b=oYg6NhE+; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232002AbjGKWTi (ORCPT + 99 others); Tue, 11 Jul 2023 18:19:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231965AbjGKWTg (ORCPT ); Tue, 11 Jul 2023 18:19:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D710170E; Tue, 11 Jul 2023 15:19:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 09F7261633; Tue, 11 Jul 2023 22:19:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F58CC433C8; Tue, 11 Jul 2023 22:19:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689113974; bh=QiGw3IUmr9u/cOXBUpvP1n/R7zjakhkvbq/PAFBNEp4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oYg6NhE+Pz+v/gyFwkwdF7lFqFLPjS89DaJiIiBqzRWgCfhVDHoZjEizizD0k4UdB HhJFpGwqU+s+XT7MhXwa55AgsPKIn29094qxuq6CdqWazdCB1Fl8SwoiMWrsaHxHf2 vPad4VT+/T/2VyQf8+D6fzv0L3GuvSGpk3hgmlA5xV+e2+43vYxOMlWlnZGDQDmtXX EUne5GcZLKV8LLGIXL1G3ZckKNRNw/ei3pYfxNWgmHul6Ky5oepE+c1n6oH5atXZXf PNjkGrY0UHR8P765AlVP24pS91y8Ik32a2b4y3zmchLKxyoi15fmiTNy2+e8L1Pj1u a8Pdeyrx2eOHA== Date: Wed, 12 Jul 2023 00:19:30 +0200 From: Andi Shyti To: Jaewon Kim Cc: Mark Brown , Krzysztof Kozlowski , Alim Akhtar , linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Chanho Park Subject: Re: [PATCH] spi: s3c64xx: clear loopback bit after loopback test Message-ID: <20230711221930.2qinef626kxtthsv@intel.intel> References: <20230711082020.138165-1-jaewon02.kim@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230711082020.138165-1-jaewon02.kim@samsung.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi Jaewon, On Tue, Jul 11, 2023 at 05:20:20PM +0900, Jaewon Kim wrote: > When SPI loopback transfer is performed, S3C64XX_SPI_MODE_SELF_LOOPBACK > bit still remained. It works as loopback even if the next transfer is > not spi loopback mode. > If not SPI_LOOP, needs to clear S3C64XX_SPI_MODE_SELF_LOOPBACK bit. > > Signed-off-by: Jaewon Kim with the change suggested by Chanho: Reviewed-by: Andi Shyti Mark, can you add the Fixes: ffb7bcd3b27e ("spi: s3c64xx: support loopback mode") tag or should Jaewon resend? Thanks, Andi > --- > drivers/spi/spi-s3c64xx.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c > index fd55697144cc..b6c2659a66ca 100644 > --- a/drivers/spi/spi-s3c64xx.c > +++ b/drivers/spi/spi-s3c64xx.c > @@ -684,6 +684,8 @@ static int s3c64xx_spi_config(struct s3c64xx_spi_driver_data *sdd) > > if ((sdd->cur_mode & SPI_LOOP) && sdd->port_conf->has_loopback) > val |= S3C64XX_SPI_MODE_SELF_LOOPBACK; > + else > + val &= ~S3C64XX_SPI_MODE_SELF_LOOPBACK; > > writel(val, regs + S3C64XX_SPI_MODE_CFG); > > -- > 2.17.1 >