Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3642530ybv; Mon, 10 Feb 2020 03:53:02 -0800 (PST) X-Google-Smtp-Source: APXvYqzRwTyHAXLKmZ+PdXbwKo9V53MVmFFetllnSEVafGaxanVaBuze46+roIi890PQpP/je/MF X-Received: by 2002:a05:6830:95:: with SMTP id a21mr750276oto.171.1581335582861; Mon, 10 Feb 2020 03:53:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581335582; cv=none; d=google.com; s=arc-20160816; b=L9CP5BUvpCr5fVptpbjqhaCdrY+ZgwjQfeEe6dFJpVsTEI/8tYEGIW46c154Ipelj7 Wv+XhvZQbkUNLQngYQ3QiTJa/0ZWZRDR7zwusL1qDSzY+lDLARHwvyuKAhGaarUedRwt sjwtTbE+aIprQiTBHCsQERivWrCZ6p7m9ucwdOTMenWBhsYYkpgFxehRN/8DQHFHkq9m jVsLLptc3iiMYRim1xg/yUqxFSX+nHtBhcoHdJPtuhiv6bkRpZqElwKnl5iAIdOJm8AA UDspm0KNLFoZx/+kXfzDFw7QblXNMhmvCpSYhD7ciAKoyA4VCMk1ugp9tcSCsTRr2Sx2 PdBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=6TSUn8xPcd6H5fjophC7T+z3GxaUtEa64TR/ndAUqog=; b=vaMawZED049FwZHnkqbkY5PMhsdEas7J1uksYnkx3aFaP2V0kXdGb/MppfML88Q8BV 1AZ9sEMFOSmF0jYBUW+53ODLDdWwzh+q/42DtGIgmCrEwu1GYmHOXyQ16dAM5lCi0eWS yiqgRLe5sKcALVGHB1+EZO2leJHbLTmYnS2ADw/kcalZxp7PZ1ygabSlLOhwW8CXHYb1 59mg0HX/CoObJeAI1Y5tWVaRLI6dsCZ4sPv44D0JIfpVCPwNhIjYL0LFXs1jenncr10K JhjsO/xPK1YZQh0fwph7eGDquTT68DF+0vCjg+0u+3fPsdMwsCwlYK5eNuaBtwaFKBGe UvwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EjIiU+YG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 200si73886oii.156.2020.02.10.03.52.50; Mon, 10 Feb 2020 03:53:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EjIiU+YG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727496AbgBJLwm (ORCPT + 99 others); Mon, 10 Feb 2020 06:52:42 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:42108 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727417AbgBJLwm (ORCPT ); Mon, 10 Feb 2020 06:52:42 -0500 Received: by mail-lf1-f65.google.com with SMTP id y19so3968075lfl.9 for ; Mon, 10 Feb 2020 03:52:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6TSUn8xPcd6H5fjophC7T+z3GxaUtEa64TR/ndAUqog=; b=EjIiU+YGccj3kIRt1MhzLYhws7v879uEZ889Ve+TSTVdSqoqRFW0jM+7pskiGaf0xe t6javzVHeGfoVJfweIX1ECBduHJDfBctQlFQmvGhANEwrXZICkD3IZxgTkNqDVZJx+tG M34XypGWKZFWHX9buWHvh/3K7pyQZq3RqgsmlV1rAx0gaBbuTUjcpPtQt2/zDWHtayFb ecg4uzTZm1F0JxtDkP6RfUklVnqkCXNmm9jZMq1YRONE4tZTNzUjWsZYfqa1s3v1xhke SbkTGUoDoyGuWIsPKdpASDHVbNRsWsuNeQbGUZiogCejAeVE4u1sK/fIj+tQtdFtEcUm C15A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6TSUn8xPcd6H5fjophC7T+z3GxaUtEa64TR/ndAUqog=; b=tTj0ducdOjcz/iPQw7xai1irCg3Gm5mW/C8ovGWSTsSk34JgSvInxMMDKoXZf62U8c LaQqcfebxYFbvmWuNfLgk4611EU/pnkosP86JQiTBQBnM2sSCB2X6vKh1PH/4jpiluEG LP/1ds9fAZdos8xtb0LnBX7I3PAPm278T5LQNPnXDfy8/6muNXCDM43W5TqRMOJpsT7r fr2/JtQiQFJpqReqLX7mAarQPiUJRBDoB4m77utoySywF9bnr8wQ0wNagEirJ/7crM/T klBXvq5CKZiZDx4PUd8aIp8ycMbn+5Xf6aAmTCxkKm1DJy+6DJGLknzQElV74JlnMvB4 bkPQ== X-Gm-Message-State: APjAAAUDpvA+6eBSfTTvk4Ct2HvCeQjKSfdPisrz1xRS9SQW1dxpfK91 Dh/XPIQMKqHqhRYUjpm90Fpc4ZuNLyB1RsIWXN+phQ== X-Received: by 2002:a19:40d8:: with SMTP id n207mr594507lfa.4.1581335559768; Mon, 10 Feb 2020 03:52:39 -0800 (PST) MIME-Version: 1.0 References: <20200125221410.8022-1-pthomas8589@gmail.com> In-Reply-To: <20200125221410.8022-1-pthomas8589@gmail.com> From: Linus Walleij Date: Mon, 10 Feb 2020 12:52:28 +0100 Message-ID: Subject: Re: [PATCH] GPIO, Fix bug where the wrong GPIO register is written to To: Paul Thomas Cc: Bartosz Golaszewski , Michal Simek , "open list:GPIO SUBSYSTEM" , Linux ARM , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 25, 2020 at 11:14 PM Paul Thomas wrote: > Care is taken with "index", however with the current version > the actual xgpio_writereg is using index for data but > xgpio_regoffset(chip, i) for the offset. And since i is already > incremented it is incorrect. This patch fixes it so that index > is used for the offset too. > > Signed-off-by: Paul Thomas > --- > There are many different ways to correct this, I'd just like it to get > fixed. I've tested this with a 5.2 kernel, but this patch is against > 5.5rc7. Fixed up the subject and applied, added a tag for stable. Thanks! Linus Walleij