Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp5794794imd; Wed, 31 Oct 2018 02:02:54 -0700 (PDT) X-Google-Smtp-Source: AJdET5eOT/sOMAB7jJk14pZ4/wA9FlxITxLtAF5iYlrNlopbl0gerFlRqEOjZ1BLfr4D2l05Fs9U X-Received: by 2002:a63:1013:: with SMTP id f19-v6mr2341247pgl.38.1540976574044; Wed, 31 Oct 2018 02:02:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540976574; cv=none; d=google.com; s=arc-20160816; b=aeTca60gXpyy2ikZ8zwxk0rUkrDjLacRyQXnGnzfDn1dCbsDvvXD+A49EaU8peWspI 81rW4Pf9iU5eeiB/8GofjIBuoYIUOSPQUgnEzMwlW299VKBf3fx8YgTpYGaHqLXkEVYF 8cY15Rc2szBMBfOafNCZp8BdLAn42Cce7Gjc4c9SzkMgddJt5d3UuHXuy+xDI86g8IyX QfAt4N4Dq7CFzoDjB+1omc+YxET85TBsqCOMLY5iG0QuIrOv5y6g5CylYWcs4fkTd5Yj yY3mAanjhEV13qFdT1CFZ5TC2abYKAMd03JflBYOESG87Eyb1vjdgsN6Jwe00ytxHqCe jCiw== 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=lHQUwjQkZEpbRaLsSl9f7wZMyI2mQDNUNH8zy898Cjk=; b=I67BIdtT4CRc7g+C3mLqG9folHuwLTzILJvow3FRac/oIfL75d7pA8SthtLGHQHnce 8i1OmDjuAg7zVZyJrPS/RTm8DUL+mCjMVtBWwRrRChqexHNZJR8k5gVn8xO7CeprdTF2 jiZSYY8NnQSCzdv+dWna/UsVe5hjAdsPFJoqBuPbOzO/jugFjcc7f9dfDrTDFKjwVuiS 8R1x6SwRaJ6cqjrrE08kyfrxwZq+mP66mHEV84PomWZ/5vCKqXnVxp0pY0ct5+hwAV1g rXww8i3hF92BfRvqa+TnKIr5ks7/GNqeeHKBYEuoZsk5OxqLES8OKVHLmFGs7X9AFf1L 5x3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VEYlPypU; 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 be11-v6si26019091plb.193.2018.10.31.02.02.38; Wed, 31 Oct 2018 02:02:54 -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=VEYlPypU; 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 S1727648AbeJaR5x (ORCPT + 99 others); Wed, 31 Oct 2018 13:57:53 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:38345 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726532AbeJaR5w (ORCPT ); Wed, 31 Oct 2018 13:57:52 -0400 Received: by mail-lj1-f195.google.com with SMTP id q186-v6so725549ljb.5 for ; Wed, 31 Oct 2018 02:00:38 -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=lHQUwjQkZEpbRaLsSl9f7wZMyI2mQDNUNH8zy898Cjk=; b=VEYlPypUGIRs4iDO0eDXHoata8Ds3E0PlXZOmhwOJBQ0LNfuU3rPrtQzIe2vcyvuSD FSEzuEq4xqxFUNSeAxJWO5wXvKXRhn+dObXQCjXXowYbarI88FhMSl13hnoSe7oUT4Hy Ho8n1kepX5S9576KoZZIE8gbExnNDEBq2mjNM= 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=lHQUwjQkZEpbRaLsSl9f7wZMyI2mQDNUNH8zy898Cjk=; b=AzY4O0tED04wxwh/zIIorsGz9y7mmITPF5g505sBn7kYAEmoIG9yTD9iswXlY9TQDE lHqdanT1tEbcQ3i1IfFxYzZp6MY4lFk+S7i07WnpUSBSwbycQqUxdbXMKvhh2L/TF73P SQH5qTVXG2n8AlCtr0Wk3QXJrcH0h2YG3ZAIGXhYX0kUqI/i4ShZWPsZWxwhRP7GxxpT CyWz/c90uxe3ksPaHiSAYTGUEpRfT1BnvR4Vk6qv/jdCCCvbehDakAXufORMH7ZK3+gP tY4mHFj+hiqrFRrP8JwG1r2LfS32s9HT1QnCZ3d4cu4zG9Yc6R7iOob45e7KgHoe53/E 7zpw== X-Gm-Message-State: AGRZ1gJlJLYI3vcvCWZK4jN7lzIc3CnZfA5ooVxvd5sh7ojur2VG5Weo gJUnWL06cr9suZpZH96UDQ/TNdkRWP+MENUrZdhe+6PnRn4= X-Received: by 2002:a2e:1510:: with SMTP id s16-v6mr1404318ljd.4.1540976437461; Wed, 31 Oct 2018 02:00:37 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Linus Walleij Date: Wed, 31 Oct 2018 10:00:26 +0100 Message-ID: Subject: Re: [PATCH 0/6] Mask read inputs for get_multiple callbacks To: William Breathitt Gray Cc: Rasmus Villemoes , "open list:GPIO SUBSYSTEM" , "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 Mon, Oct 22, 2018 at 2:08 PM William Breathitt Gray wrote: > The implementation for several drivers' get_multiple callbacks return > additional input states that were not requested by the mask passed in. > Although the current caller in the kernel does not care, it would be > prudent to ensure the behavior of the get_multiple implementations is to > return exactly the requested input states and not more. This patchset > ensures such behavior by applying a final mask on the read inputs before > setting the bits array. > > William Breathitt Gray (6): > gpio: 104-dio-48e: Mask read inputs for get_multiple > gpio: 104-idi-48e: Mask the read inputs for get_multiple > gpio: gpio-mm: Mask read inputs for get_multiple > gpio: ws16c48: Mask read inputs for get_multiple > gpio: pci-idio-16: Mask read inputs for get_multiple > gpio: pcie-idio-24: Mask read inputs for get_multiple All patches applied for v4.21. Yours, Linus Walleij