Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3253939imm; Sun, 29 Jul 2018 14:06:45 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfx5Qx2g5+QVD6OW+Xwp+rcm7brEzNrQHyUQ9LMQmot4lK9mjwjxechpS1LUpFUBEA4+gUT X-Received: by 2002:a62:4ece:: with SMTP id c197-v6mr15406484pfb.240.1532898405248; Sun, 29 Jul 2018 14:06:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532898405; cv=none; d=google.com; s=arc-20160816; b=nbh95tfun4XwocK1Iy+87HWmfWRDyEKJG6ia5FI0kXvF86zhqKaB2T2M/IzlDButbF B31fGysqATN+CjBfhnwKYd/akYA0bhhgsyJZGClgB8j4IKgyvZBMWSaeoYVag3IbRbJ/ sliPMCkrCevXGNf68hL6zUsMvU6r8GLD0BYushyjfQPPPbZWldSeUYmx6nvERFq4KNb2 BpLMLjfYs7ghFRHgXFcp2xikP4BfvsH5yNTkoMNV3a2Yda+9hD44VzzSFT2SS3/1ageG vKCQXJvzQwzGnKXm6kycbhMRffFFb/b84syiZ1kY1tSrLOLq7CPC/sxLpAur02a4HUaw TJGw== 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 :arc-authentication-results; bh=8141MThgOpeTTEKNYU/CWkdAWhZqbiCOV4MrQInBy6s=; b=aU5lHiRcL5P4UOD9Uv8D9YuMiiGHzpMQZMb510y8eJLvn/vdww2001C52JnJiM2LnQ b3Suy7JSlAiOFPNO3AqtfA4QtvGx2BWHQJpMqSeg5369YI4OZBQqqek6Yhm1kPPjLDb0 v29e4H7plx1pIagmzy0TmtDf3nBfeO4h0hddKv8AYfDH7YwtEkwC7aaowuDoaDgc/Tmp 3mf4h0IaYMg7KlCF5R/PLvSNv/ro66YqHVV84+ta1x6GoB3QNpLG8O+tZH1dHM3IGfuX P4WggG9b0PBEoPOW0FjmkDSdpbKxGr5y9v3o42DVqQSeaVL2ocRsC0amVO87iuynIA+G qC5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MEttzf8n; 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 q23-v6si9065679pgl.275.2018.07.29.14.06.30; Sun, 29 Jul 2018 14:06:45 -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=MEttzf8n; 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 S1729210AbeG2WIp (ORCPT + 99 others); Sun, 29 Jul 2018 18:08:45 -0400 Received: from mail-io0-f193.google.com ([209.85.223.193]:45142 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728637AbeG2WIp (ORCPT ); Sun, 29 Jul 2018 18:08:45 -0400 Received: by mail-io0-f193.google.com with SMTP id k16-v6so8213170iom.12 for ; Sun, 29 Jul 2018 13:37:01 -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=8141MThgOpeTTEKNYU/CWkdAWhZqbiCOV4MrQInBy6s=; b=MEttzf8n8DkXTf+MM6Vz1XRYHoHxVQodIao3Fy/WyeL0IAxjnYGuJ9ZJA4lJKb4eJA z83ZpmTcHWhiCskLme8ep2o7LXukr8zcRlfC0FNnxM2U0Fe1XoC0m75+DBds2U55Y/YW R25Rf4LtYdvBuk9kFpxIXSsf733tdRiL6bV6E= 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=8141MThgOpeTTEKNYU/CWkdAWhZqbiCOV4MrQInBy6s=; b=N8pbYYT3/lOzH6rtqWCd1KemHBLD63l2iTflFtGqzcDhGUpwI2F7t7NLmseb/HyyKR CKl6wSwZCKbZ4mWYWRriIkwArdgdM06EBd3uXAkYcdTRYKR4fl5BFBxEkkKtAO+PULO/ kwPs+K/uyGbtRb24KeaThwZeG01BQChwi8WVC2eD6/DHzAfFupFeQiYyrVQtiSTM9OE9 3Zi9EHX4FV2JQxsIrCz61KbRHldGabGOZWhcWepaMAtbbculNxkEPSVK2lpS8IUL69dp csN3pTgSbFX1X798ysezAkaQPvi31/MVRqOusVYBak7LHtaPrPygp9GJg4xyp/W1eXNt QrhQ== X-Gm-Message-State: AOUpUlH+Tux1Us0lwT5j9gNXzlvvEROgd9wqiyWSfndW7LKjifIMSCeR 7jNMme75NEfBM5VjmlEycV5PathqpZYhS4u12D+5Eg== X-Received: by 2002:a6b:c3c4:: with SMTP id t187-v6mr11459244iof.304.1532896620896; Sun, 29 Jul 2018 13:37:00 -0700 (PDT) MIME-Version: 1.0 References: <20180718235710.18242-1-jmkrzyszt@gmail.com> <20180718235710.18242-8-jmkrzyszt@gmail.com> <20180719084447.239a1b92@bbrezillon> In-Reply-To: <20180719084447.239a1b92@bbrezillon> From: Linus Walleij Date: Sun, 29 Jul 2018 22:36:49 +0200 Message-ID: Subject: Re: [RFC PATCH 7/8] mtd: rawnand: ams-delta: Check sanity of data GPIO resource To: Boris Brezillon Cc: Janusz Krzysztofik , =?UTF-8?Q?Miqu=C3=A8l_Raynal?= , ext Tony Lindgren , Aaro Koskinen , Grygorii Strashko , Santosh Shilimkar , Kevin Hilman , Richard Weinberger , David Woodhouse , Brian Norris , Mark Vasut , linux-mtd@lists.infradead.org, Linux ARM , Linux-OMAP , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" , Artem Bityutskiy 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 Thu, Jul 19, 2018 at 8:44 AM Boris Brezillon wrote: > I guess you'd prefer to have the pin values in a bitmap instead of an > array of integers. That's probably something you can discuss with > Linus, see if he would accept to change the prototype of > gpiod_get_raw_array_value(). I am not so smart as to see the overall effects but if what you're saying is that we shouldn't have designed these functions and callbacks using arrays of integers (or longs) and instead pass bitmaps, you may be just right. It intuitively sounds better. But I'm not good with bitmaps. We would have to refactor the world though. Yours, Linus Walleij