Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4617525pxj; Wed, 12 May 2021 09:20:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy04yUjJNdrvyrXcG0b6rrD3yZSbE4F8kX1k2uNR17lZKv3nd2AUl9+e77BHbW3ikzFgoav X-Received: by 2002:a05:651c:1316:: with SMTP id u22mr30857241lja.197.1620836406173; Wed, 12 May 2021 09:20:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620836406; cv=none; d=google.com; s=arc-20160816; b=Jol5J/ngWZ5hwUEejFbyLDw3lKtC4nAS0BVX5DdRDWHJsudqR2fd8jyxzjToJqqUo4 VNBoB6ckxfJdndM6ZwZfgVRQz4krfX+aOT0idrf/xyIdwljqFyGIcWaXBNfdZf1/ocaO VOgnOsxkj7rejHHugNcueJyHfCO1EeqfuwGE1teAS38pjHEvdP7eNOVlsTOyNIDc7jGF goiV+NIaNZl5zKJy3BZknlQe0U6XwlOWqYqQC5QDtBVPQg8eqB3v5fUpYbbI1O6IJdhA QhCf0rp7XVn5s1uYuwN5DWvmw/77zQL/74hPWxENofqXEda96I/UpW9XdlXiD0DLVjzd qtNw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xCLUJoQqXzYVQBIovhtgqFKkoYUJHM0qcCG2zEFIJgw=; b=EbRktVJIOuE248p9b92iM1/kKOuwFZFdqySf8d04V7XWXG5HNf3/ojRnAFXQbzZqKZ h3gryrKuRguMqAgAklwc4HJZzfYvSwo244aLF9RLxXqnkALnXKB+Uwc23X9u8V0fgeXF S7L/y9vQfaqTO5ycT7HdMWPIF6JvDtqtgwSP/hHPieTfiyDW+EBX/BsWlcs1kkSQHstM 27LvZLX1J9yx+As1oQ1yrrTuQeonuHanDfOwZVTGhIbQfHzvXwskeo9iPalK0OHpRyZR NlyZex4kYjY1+uK8pmb3KNq038WFYzVMnC5zGR8Var10ZylvUMzAZhAcja1M2Z3hep5n Hwbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="oF9WPp/P"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o7si267718lfi.409.2021.05.12.09.19.35; Wed, 12 May 2021 09:20:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b="oF9WPp/P"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239953AbhELQQh (ORCPT + 99 others); Wed, 12 May 2021 12:16:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:44544 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234567AbhELPdN (ORCPT ); Wed, 12 May 2021 11:33:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 35B6A61166; Wed, 12 May 2021 15:16:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832617; bh=Mh1CjhzMOAedYmFFKli7reS70OHNVUIm2gJXJe6rLYY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oF9WPp/PqpVe69s729sK1F+TP5QZZDXsFARzpWzuNjpUDOUEcPOx22GK18Ic5+8kX iHao+gDW/WJg+DVn7OTQJpvRsZrRV29bT4SC7Vi5GLPGmF2lPzMGt+JywNrCReBvbo P7wiZYWWXg8vtV1D/aKX6BngUMFNedRlUWle2p9Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marcus Folkesson , Kalle Valo , Sasha Levin Subject: [PATCH 5.10 353/530] wilc1000: write value to WILC_INTR2_ENABLE register Date: Wed, 12 May 2021 16:47:43 +0200 Message-Id: <20210512144831.387964890@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marcus Folkesson [ Upstream commit e21b6e5a54628cd3935f200049d4430c25c54e03 ] Write the value instead of reading it twice. Fixes: c5c77ba18ea6 ("staging: wilc1000: Add SDIO/SPI 802.11 driver") Signed-off-by: Marcus Folkesson Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20210224163706.519658-1-marcus.folkesson@gmail.com Signed-off-by: Sasha Levin --- drivers/net/wireless/microchip/wilc1000/sdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/microchip/wilc1000/sdio.c b/drivers/net/wireless/microchip/wilc1000/sdio.c index 351ff909ab1c..e14b9fc2c67a 100644 --- a/drivers/net/wireless/microchip/wilc1000/sdio.c +++ b/drivers/net/wireless/microchip/wilc1000/sdio.c @@ -947,7 +947,7 @@ static int wilc_sdio_sync_ext(struct wilc *wilc, int nint) for (i = 0; (i < 3) && (nint > 0); i++, nint--) reg |= BIT(i); - ret = wilc_sdio_read_reg(wilc, WILC_INTR2_ENABLE, ®); + ret = wilc_sdio_write_reg(wilc, WILC_INTR2_ENABLE, reg); if (ret) { dev_err(&func->dev, "Failed write reg (%08x)...\n", -- 2.30.2