Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2277555imm; Mon, 24 Sep 2018 01:12:38 -0700 (PDT) X-Google-Smtp-Source: ACcGV60VGVK1J7/WWGh1ejE6BJvG05Oz41Okqi06AQbbKEMp+iVs1r4aMN8RCFPJzC/l5l3iqcfx X-Received: by 2002:a17:902:a715:: with SMTP id w21-v6mr9562270plq.61.1537776758582; Mon, 24 Sep 2018 01:12:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537776758; cv=none; d=google.com; s=arc-20160816; b=aaaHcsngNc3s+YyvUVlfCcmBviUI0kLvOAMv1TQ6IVE33lGtSwQQlrKtFOlvuzWOis QC4bczSa8/SEH8rcf9ynLXcp+9UfLPC+0ONjLVu5L+2BwXzvUuRWiD5heTWyCcGieCAn sV2FOo5tIto1ofJmAQb8GHqoKwYH8FvQdVLZvIJfnzcF4skJPo0BB3oUUpBPBZBazpQk k7OL9WSYED+g5SI9pNexBuXgcASIXKLsa9Xdl5XYQa1lQFM1eHYnoJA2X3+K57kNe3ze pedQb3e0DS5uBPJNSf1Kz/fvGqzNclJ8tNSD6w2NAHIEa9ZcB3rhpUTlvJsAAYLoarpF jgMw== 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=PlkHYqfm/OcI9dWSaGFletmPJsWJa9K+glsS+ZMx/aM=; b=i4MnDazs50WCoA68f7NH6JyfpvD7VKVA5hRkG48OdAvDpBuE0i6KUeqHnTTT1NIQLH 3zpK/gkrFxx7zTlY/fn3QEhjF9Lco75P6eKe7YWmDFYaJeU0TpbGc8CyPy+kToIIvk9h m8Tog6EABR4kwnbubKlvvT5tk+l2s3T4vbHHePgLKAtifAiPE8Y57wa5z26RMgz/KPSp Pd+YNCFCF+f/GqdaWV7e/dPLtvx60CX98q2OQWaTAaXyu4/2K/pfdtXVQSZaJ0fyaxVL J1bxIt03x/YVx6EYfiPtjNH0K7YO8BdHp7vaNDGGPBpwr3CwT4xTUXLFqUc+fFDD7aXU GTcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dCUzUo6y; 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 q2-v6si34057550pgd.303.2018.09.24.01.12.22; Mon, 24 Sep 2018 01:12:38 -0700 (PDT) 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=dCUzUo6y; 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 S1727489AbeIXOMa (ORCPT + 99 others); Mon, 24 Sep 2018 10:12:30 -0400 Received: from mail-it1-f195.google.com ([209.85.166.195]:39899 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727159AbeIXOM3 (ORCPT ); Mon, 24 Sep 2018 10:12:29 -0400 Received: by mail-it1-f195.google.com with SMTP id w200-v6so1150812itc.4 for ; Mon, 24 Sep 2018 01:11:36 -0700 (PDT) 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=PlkHYqfm/OcI9dWSaGFletmPJsWJa9K+glsS+ZMx/aM=; b=dCUzUo6ykF7dX3U550+ahyUNwiGOoROpCpM//E4AustwPBVT8J5SDjGmHcp9Qyk/Er jyrYlmuHj2ZuJlOB2rbV3nw/YMemXKNprzN24i+LbHxg5ljXmfiKLFQzmpKatjLv+nxy D1H8Lf+0TgJpED7C5pc78koiPxnyk/deRRYpA= 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=PlkHYqfm/OcI9dWSaGFletmPJsWJa9K+glsS+ZMx/aM=; b=uAI+M/z4h7VARGfNGNCh6wNPGH14A4H9HguG+h9WP2fqw5DrBB3dR4WfkYXbdr4Jfw /Woi0c+veMTW5tHcE2Vw0YMqeI1XonSAaaKV6KNu2wpqCRLFmEYe2IOXM/8fXn9lbv+p ekSB1jOr0nCB+/VTYRymNps5mHfwHzzPUhA6VZcT5cznSqSTLlFaqvJVPCZyI+wSf2Ds 5KQa2ClEO9lJ2+LiClHSRodWfJoh4E9sz8a8xCRG3AHge/j/4H8canmh99z+Gx5x03FK PoJb6V4FZxvJludGKAp4ybzQjJpq/9kYkI/F14Gkr/daTuNJDGEBrg8QX9OGBe91TodS /w3w== X-Gm-Message-State: APzg51D5LtzUDne/0hp7bEumaCuAyWxCm7jHsFyWdJAXWhHjrZEVobRg 5x9PTdPtin2wonnrobi+awsMDAz+tNReyYQjkKq4Yg== X-Received: by 2002:a02:2505:: with SMTP id g5-v6mr8190725jag.112.1537776696397; Mon, 24 Sep 2018 01:11:36 -0700 (PDT) MIME-Version: 1.0 References: <2785169.v6aIfS3K2k@z50> <20180923235336.22148-1-jmkrzyszt@gmail.com> <20180923235336.22148-2-jmkrzyszt@gmail.com> In-Reply-To: <20180923235336.22148-2-jmkrzyszt@gmail.com> From: Linus Walleij Date: Mon, 24 Sep 2018 10:11:23 +0200 Message-ID: Subject: Re: [PATCH 1/2] gpiolib: Fix missing updates of bitmap index To: Janusz Krzysztofik Cc: Jonathan Corbet , Miguel Ojeda Sandonis , Peter Korsgaard , Peter Rosin , Ulf Hansson , Andrew Lunn , Florian Fainelli , "David S. Miller" , Dominik Brodowski , Greg KH , kishon@ti.com, Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Hartmut Knaack , Peter Meerwald , Jiri Slaby , Willy Tarreau , Geert Uytterhoeven , Sebastien Bourdelin , Lukas Wunner , Rojhalat Ibrahim , Russell King , ext Tony Lindgren , Yegor Yefremov , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , linux-doc@vger.kernel.org, linux-i2c@vger.kernel.org, linux-mmc , netdev , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-serial@vger.kernel.org, "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" , Marek Szyprowski , Krzysztof Kozlowski , linux-samsung-soc 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 Mon, Sep 24, 2018 at 1:52 AM Janusz Krzysztofik wrote: > In new code introduced by commit b17566a6b08b ("gpiolib: Implement fast > processing path in get/set array"), bitmap index is not updated with > next found zero bit position as it should while skipping over pins > already processed via fast bitmap path, possibly resulting in an > infinite loop. Fix it. > > Signed-off-by: Janusz Krzysztofik Patch applied! Thanks for working on getting this into shape! Yours, Linus Walleij