Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4364638pxu; Mon, 12 Oct 2020 17:41:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxesPaHee9ZbleQt8QUqTZ6Q29+AyGRalN0OjszchRIcctCIYxOXe24KokQGOkxQqSIYTSp X-Received: by 2002:a17:906:b784:: with SMTP id dt4mr32286644ejb.376.1602549712461; Mon, 12 Oct 2020 17:41:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602549712; cv=none; d=google.com; s=arc-20160816; b=oNpg/XQ5sDJZSR/PG8U9yR9sYFS+UAFAyJafbAE5mPcOBxDkLFatvrsGtMnK13dOaa FbgUEaqt8J1VcdErrKBL55Z0y7pH9aoW0b7Z9DHIRam/ebhdjLZmxsPD+6GVESIL6bkm V294yKx/jiZdmsjBOBPBnPihDKegyLuR9Floo4N+LfQ+K0RJ+C+DFCECUdgXwGBQDk5Y eI4gjcjn0y37dRpRq96G0pVS1ZRhWUmpjSJcY2CBZc3vnqXHlBhxDj69t3rg32nMYYxp KwpkbLnz9bbUWHrXoxvdI+2NXFNnAmodi1n7wFmAim97ENxo90KKXp3i4e8/4s1riVpD /ESw== 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=ai52Eh7g5O8wrZINqxmTT87iCC/Nd7YVlcRjiclsfl4=; b=a/ilgyFZG1LIGG9yp+XNpikEht0SktouO+7EnmNqLhJ6jPjEnSSAh87ArcUhzFOCNZ zXVilXw2KdfQkAPCGBtS+36lc4Q5T7l4ZtHa009v83Iv+wImOS7xG4CYzYxWM5BnyEoC Jrpcr0fznL4vuXYrS81m8g9l4g1RZ8Vkulnx8BALzblxbX3Mo9BCsB76OlJXFVyflhr6 y2Atdx2aye6KuZFm5Lr5smE4KpM0Ox39eZvzyQ94+WUVknpBFNwxqZ11Hd4gE1Ycp8Mv 4bGEJCzkxJyghG68G+4FCrLjrusR/mxTbY96UDGDTHrObRchICRpFZ3nX39Ql0cV4XPF HGvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="m/kVgMxB"; 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 f15si9937761ejr.2.2020.10.12.17.41.28; Mon, 12 Oct 2020 17:41:52 -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="m/kVgMxB"; 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 S2390954AbgJLOEw (ORCPT + 99 others); Mon, 12 Oct 2020 10:04:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:38658 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730947AbgJLNgC (ORCPT ); Mon, 12 Oct 2020 09:36:02 -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 A0797204EA; Mon, 12 Oct 2020 13:36:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602509762; bh=+lY72T++mi2yCqmDkAbpdLZPhicPGPe0qnP/BOHIv2g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m/kVgMxByGuzJNbf1yZFUHSWmnAqkj5tUnPwvAm30xoEyZR5S+15GYaY+1PdSsp75 Lc9Mbx3NOvYnbhToBx0L8m5Crcs820zLSVaPqdClujR6lyLTwiYH8D/ywC5d12QWw5 Fr4eQclo9uKyzOza4hSbEJ0HYB4IgMS6ISKUOktY= 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.14 06/70] gpio: tc35894: fix up tc35894 interrupt configuration Date: Mon, 12 Oct 2020 15:26:22 +0200 Message-Id: <20201012132630.522455850@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201012132630.201442517@linuxfoundation.org> References: <20201012132630.201442517@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 @@ -209,7 +209,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); } }