Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753221AbdFPJQg (ORCPT ); Fri, 16 Jun 2017 05:16:36 -0400 Received: from mail-io0-f179.google.com ([209.85.223.179]:35496 "EHLO mail-io0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752171AbdFPJQe (ORCPT ); Fri, 16 Jun 2017 05:16:34 -0400 MIME-Version: 1.0 In-Reply-To: <20170609100917.26660-1-gregory.clement@free-electrons.com> References: <20170609100917.26660-1-gregory.clement@free-electrons.com> From: Linus Walleij Date: Fri, 16 Jun 2017 11:16:32 +0200 Message-ID: Subject: Re: [PATCH v2] gpio: mvebu: fix regmap_update_bits usage To: Gregory CLEMENT Cc: "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Thomas Petazzoni , "linux-arm-kernel@lists.infradead.org" , Chris Packham , Ralph Sennhauser Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 677 Lines: 21 On Fri, Jun 9, 2017 at 12:09 PM, Gregory CLEMENT wrote: > In some place in the driver regmap_update_bits was misused. Indeed the > last argument is not the value of the bit (or group of bits) itself but > the mask value inside the register. > > So when setting the bit N, then the value must be BIT(N) and not 1. > > CC: Chris Packham > CC: Ralph Sennhauser > Signed-off-by: Gregory CLEMENT > --- > Hi, > > In this second version I fixed the improper changed pointed by Thomas. This version applied with the tags. Yours, Linus Walleij