Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4005465pxu; Mon, 12 Oct 2020 07:10:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVUW7neWiiUIUsoy6IdPq2Fv8xwHZRfdcbvOV8QhE9Rsy/86++axCPEZWFs+6fLo7TQ2UK X-Received: by 2002:a17:907:104f:: with SMTP id oy15mr28802154ejb.261.1602511819223; Mon, 12 Oct 2020 07:10:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602511819; cv=none; d=google.com; s=arc-20160816; b=Mi12ZrNBAYIUEJ9cZEAVcrmgmkRrPlEUrxjem5dF+UUHbNFj/V9takcbltu64d7LJL LjA4H6b7WnxTK3obltLXoaxZjCSG3tshIw5gkvjG0DdOEXpY7EQysHHFHmiZHKAFCucn he8kMQGaewZwnKXyKvYrGntriBSHoWmth8+wBppDdV8VoIeWp7bAdX52LlKPb0+9vQsM eFn/R4tm8vF2Sh+b1roHlOQcIAUyyO7r94dSD4es8fsfnUIq58gLQNWzsUhe59MK4SO8 xh7ducvlhsVa+SupBhkuWr9YeKUL47bZeEBpnPGdFwQ34y6a2BEtbangHPl7GFi4qYm6 2h/Q== 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=1Nht36wKoqeR8PDxkfwHiVsZT7leEYVgoLxMl1gG52k=; b=DHfxvijj9li030+6HAgSvcdKqCI9jLpTrkBA9jyDWOcX/4EVE5XKJBkY92brqsWvxj ISkcPKXNrIPo9m/2JORz5oLYdZjCklzxmMf/djRvbcub9LvL0wgbxlj2DM+1Joz2Pko9 PKd0mf/net4dUoT2NlaRnypj5jMevLofmCxi1vTGAekmNpoCzHFDGCgF9pnijxb3bg74 3Wc3r2Wnh9aryHHCqoc391eNwsuArZl6A7ldXB/TtvKyaonJs2MWfWO8gr9nYdjyyLV0 VHMM2K3VOHPu4aQH8zdIWOPkoz/nnb/1vK83o2Lt/O+sXDrBlOasYvTqrTI5aHqhGh4Q t44A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=n6iFceQ3; 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=fail (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 a17si11844833ejy.684.2020.10.12.07.09.55; Mon, 12 Oct 2020 07:10:19 -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=@kernel.org header.s=default header.b=n6iFceQ3; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391214AbgJLOH7 (ORCPT + 99 others); Mon, 12 Oct 2020 10:07:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:36760 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730162AbgJLNeW (ORCPT ); Mon, 12 Oct 2020 09:34:22 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0EC4D21D81; Mon, 12 Oct 2020 13:33:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602509628; bh=0ud2VRrYl6rALG1RdZ7gui9i4jo4Gq0X1+oRUpknH4E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n6iFceQ3oKLAXcLYZkC6+PAneQU1X1ZIDP7Dy72kUO7mp+xpyF7iQ/J8OlfdQlVAu YZfcCSsvtHeHerN4L9n1Z+bgUgbrJEeFB1MER2PhUmJflE4OUWozFrQcZnam/0A23n DCUMUitqn5bYYLIf0fqcw1Z2sLwR9JdvxUDPhmYs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, dillon min , Bartosz Golaszewski Subject: [PATCH 4.9 04/54] gpio: tc35894: fix up tc35894 interrupt configuration Date: Mon, 12 Oct 2020 15:26:26 +0200 Message-Id: <20201012132629.804900106@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201012132629.585664421@linuxfoundation.org> References: <20201012132629.585664421@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: dillon min commit 214b0e1ad01abf4c1f6d8d28fa096bf167e47cef upstream. The offset of regmap is incorrect, j * 8 is move to the wrong register. for example: asume i = 0, j = 1. we want to set KPY5 as interrupt falling edge mode, regmap[0][1] should be TC3589x_GPIOIBE1 0xcd but, regmap[i] + j * 8 = TC3589x_GPIOIBE0 + 8 ,point to 0xd4, this is TC3589x_GPIOIE2 not TC3589x_GPIOIBE1. Fixes: d88b25be3584 ("gpio: Add TC35892 GPIO driver") Cc: Cc: stable@vger.kernel.org Signed-off-by: dillon min Signed-off-by: Bartosz Golaszewski Signed-off-by: Greg Kroah-Hartman --- drivers/gpio/gpio-tc3589x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpio/gpio-tc3589x.c +++ b/drivers/gpio/gpio-tc3589x.c @@ -210,7 +210,7 @@ static void tc3589x_gpio_irq_sync_unlock continue; tc3589x_gpio->oldregs[i][j] = new; - tc3589x_reg_write(tc3589x, regmap[i] + j * 8, new); + tc3589x_reg_write(tc3589x, regmap[i] + j, new); } }