From patchwork Wed Feb 7 12:04:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 197888 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp2183996dyb; Wed, 7 Feb 2024 04:17:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVytXRIRtjfq/wg8ko58DgWbVewy/njwr/lMIX94CsDFtqDg+wGKjF7sYSAK73GQCyTfxYBcVt/KBUYv1vXScS+cFd+5A== X-Google-Smtp-Source: AGHT+IEEvRGt72Dkoai7PM3MSoBuvYgx6aJ+cwZsrvlNeq6Mnydc67yH6z8rBnrEQL1n6aNaEwIs X-Received: by 2002:a05:6402:14c8:b0:55f:fb25:47d9 with SMTP id f8-20020a05640214c800b0055ffb2547d9mr4100122edx.8.1707308220679; Wed, 07 Feb 2024 04:17:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707308220; cv=pass; d=google.com; s=arc-20160816; b=JX0WclXa1la2hjfKvIDKg6vPeaCVT5f0NYUqQ+A9KOHrQDKoUvEdf8U8vsACTbvJtH T8edDT1/Up9/2nhG9dA1rVaYl+mP7tIIqk5BHrRWwhxZ2qxlVkiotLYTBXQLGBLMX6MT q7Izwr/fJMB5mhGjWyRzrzn6aXnjwFYqAU8E2SYHmrX3iSvpVolqkwZsBZuPbunC6XUj d/F+i3EdnIFS9zYFMTwOSgp2Y0bGSOVH4K3Vtdt09Bg5W/K+1Oh3TCQCcNpxETM3EjX6 prPVoRVV74utgJr1zgz2asQQ3mDm9JsET8ilLV0wzLp999t6LNhIQKHIi9sQZ3IzL/Yu JX5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=MUmZIG7rbdoejZJeYccC+uC3nddcIt5ul4UQ/BCMGCc=; fh=DLLpPS+/eIXUx8BGJ+vCZrYTeeVV25s+SflddmiE39E=; b=C1Sjfy2NZfMEp+TBGh2GStwceyP/g8qvC22+qjPPTVk0Eddg6KPEX3WyQS912CnLZ+ nufmhG6w/9QTeUS20SPfhJpSGaNzpzySRBhM9AWRtgqjt1P9mkIfQhOQ27V1YvgHvFLv ZpfCA3Hdu7jnokgDClVZBeokJ1gWfUDSvClN3unIql3OE3MvQBid/SLXz0x9I+pV+MYz R3Za9vMUMj1sPB0K9vIoTSIx7NdjVabVwTDasy9Kj/ljyArSTR9dqNn5Ikl6NAMeskg3 H76Vo65moBqXw1Ubw5KLi3KxBWs7aIvLDCSUWXGwHlCsyVYQ/+0RbkNFAPaFURF50FVe 8r4A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mT5v4Ocz; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-56455-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56455-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCU4A8rjjYI0ZkviJtZqY6hPOifzhtxwMv60mtLL1E1Enj9RcSPTr4d/1XU08dsZSl5STomvfElSF/lFiM2EE833Zc+d7Q== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id d36-20020a056402402400b00560ef1cfc92si26420eda.218.2024.02.07.04.17.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 04:17:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56455-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mT5v4Ocz; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-56455-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56455-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E7C781F2C0D6 for ; Wed, 7 Feb 2024 12:09:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DC415FDC2; Wed, 7 Feb 2024 12:05:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mT5v4Ocz" Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD3405C61C for ; Wed, 7 Feb 2024 12:04:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707307499; cv=none; b=EroWRBbcoTLGqUe++kGmDw70OqLMcrnKPzkPNUctaBtH4b72dPfOx/yrAp17FND0oUHw+XnjJ+SW+MKnpjVKxHYTw8zmET1W3zkN5o+A44U2ndA6GEcVWinrNMtfHEd4UuIIGc9YRIXLsWmq1lQhc5mIRBOb+daRkzH9TbzppLU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707307499; c=relaxed/simple; bh=ckulXwazTQx7hzX1rzxZLEmGDEusbVQn7uqk6rAXD60=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RB3y3rs88x6SOlMjAZqWat+2Vv66ZTk9bYLB1VyCQthRSTqAh7URc0xz/YtRsgy15XesQ1avqZfWyxVbxPwpCtugg/HBrOCP4YYYVkkk6B6oJuCSnwvxb1Phf7UPcGpS7g16IXEtKgHP5mQsXaO44XovzdqTu1PJ6om/tnjxetQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=mT5v4Ocz; arc=none smtp.client-ip=209.85.221.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-33b29b5eab5so367406f8f.2 for ; Wed, 07 Feb 2024 04:04:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707307495; x=1707912295; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MUmZIG7rbdoejZJeYccC+uC3nddcIt5ul4UQ/BCMGCc=; b=mT5v4Oczlh8E6ZPv+NMOSRtCA/6I+kf2+RHgdjQjupbQgqts1wH0FDeYHzzijk8abc FzZUBxoml8gMKq8041w0xGhasVn55I4SgVIPds8Vei/l8qEmw4x3v2YDV/rtjoXl+MZU DN2i4m36kCKnIHltCTyeC0+3KJNN+zKuh2adY5O9lwlTdXu/fFwTOuedcXGhNcqJd1HS 5HYSOw5IQ7JQ7eWf1bBxUfm9iO5nYj6FffK8ycAk7/ySpS3O8P3Y6F4z7bmovOzTpy3Z Pfsy8KacguRNYy7hPqbpMAQPyFjen9JJ7yckwLWkhaadTGYEIY7mdzAvqSkXOa6y7YnN KEIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707307495; x=1707912295; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MUmZIG7rbdoejZJeYccC+uC3nddcIt5ul4UQ/BCMGCc=; b=hCCjsK/YBAGEUsmmaQYY7e7KEbh2na3HMF9sfI9OZOhjT/I2qy7NRkJtynTKVZ1qfM u/euRsCxH789gjIRVVQoArIaeKyrkkKifWk1NDTYORPsolS30G9l1hnGiSgO/2SBVAMc hFu4uDIvlz58tA4o+x0flKfdo05T42qPwAixIPmQ/fg0iJBT2I85uWTYJQ3YoWp+m8VY xpTKi4nBGPTnfbd21VREu0erGzboHLUBZ+32sLyif7/pceXRZeYpfzMwnKtj5+Fomxyx QWvd3NplmLuldzCg73F6rXgiWMuLwLoh20oMYSUbuxKRsVwdItpcquFOJAnG35A2pWHF CC5w== X-Forwarded-Encrypted: i=1; AJvYcCVU/jixC4FmwosIV0PDLcUo44qzvyrtW5L+xg8Kw3YtvcKRgSd79LNkIFCf+/zik2eUVOZo6Oxh9r1F5UMO3I2EH/osE1Db9lc5ucgl X-Gm-Message-State: AOJu0YwQyH5q/E/KG+/1oomjKvIQgI1Mn3SzxnAGktNQGD1KefhsMICG p24+0CdIiLlop76aThoOZbBr1kehDFWvRsakausNb8ZssZvbECSm7RtnlSay4Aw= X-Received: by 2002:adf:ef04:0:b0:33a:ecd6:1c71 with SMTP id e4-20020adfef04000000b0033aecd61c71mr3025707wro.56.1707307495029; Wed, 07 Feb 2024 04:04:55 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVYQvziI5mjEusSUaPhP14qhlm9p6zZIwfAk9T60Ma8Qt9fo0WfkTkJE5aFzp5O0QnfJ9FsuPRg5L3EWDvoHxvS1u2LIHGmb9+GaXZGkalH96i1KuSzJ2PHrFzC1Z9ZSG7ULlemCcI4HWyUgGHyxfI3p31aAQqC4KUwNvA4YRmsxASse05A+LOIXIxFW4wCuE5svHwtKBbHzek3At+QYTTmMnk5w9CivZkq9eYHcGU6dz4YznaGGNPH2iqZUnhPV/9SUexh9ATwMobHeHQjWeF9zlVTKItiotmBwHDCmDLPO5JWYkbfXb3fBTuKNtqc+7cdVxKhtr7N3teqFKtgHMx3CGHIj9NE3WYL+3szXb0N16BXyfWYXWKfSOLdfklfCCoCvuHHNydQwU7AitaevZyAS6vS2Mi5M1rtscaMdFlZoFMcfQyBNq5YTx6/QNEqQ3EnUEkfNT8JRcSL6UZBlge+a104Zc/3rABjxGaZSyyqJ84lPqBhJRAU9D6BAA== Received: from ta2.c.googlers.com.com (105.168.195.35.bc.googleusercontent.com. [35.195.168.105]) by smtp.gmail.com with ESMTPSA id d15-20020a5d644f000000b0033b44a349e1sm1349967wrw.38.2024.02.07.04.04.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 04:04:54 -0800 (PST) From: Tudor Ambarus To: broonie@kernel.org, andi.shyti@kernel.org, semen.protsenko@linaro.org Cc: krzysztof.kozlowski@linaro.org, alim.akhtar@samsung.com, linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, andre.draszik@linaro.org, peter.griffin@linaro.org, kernel-team@android.com, willmcvicker@google.com, Tudor Ambarus Subject: [PATCH v5 17/17] spi: s3c64xx: drop a superfluous bitwise NOT operation Date: Wed, 7 Feb 2024 12:04:31 +0000 Message-ID: <20240207120431.2766269-18-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.687.g38aa6559b0-goog In-Reply-To: <20240207120431.2766269-1-tudor.ambarus@linaro.org> References: <20240207120431.2766269-1-tudor.ambarus@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790242424806296474 X-GMAIL-MSGID: 1790242424806296474 val &= ~mask; val |= mask; is equivalent to: val |= mask; Drop the superfluous bitwise NOT operation. Reviewed-by: Sam Protsenko Signed-off-by: Tudor Ambarus --- drivers/spi/spi-s3c64xx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index b618efba0509..6f29dca68491 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -1129,7 +1129,6 @@ static void s3c64xx_spi_hwinit(struct s3c64xx_spi_driver_data *sdd) val = readl(regs + S3C64XX_SPI_MODE_CFG); val &= ~S3C64XX_SPI_MODE_4BURST; - val &= ~(S3C64XX_SPI_MAX_TRAILCNT << S3C64XX_SPI_TRAILCNT_OFF); val |= (S3C64XX_SPI_MAX_TRAILCNT << S3C64XX_SPI_TRAILCNT_OFF); writel(val, regs + S3C64XX_SPI_MODE_CFG);