Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3238009imm; Sun, 29 Jul 2018 13:40:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeWDY352naDbWhCz4vP9J9mARGyL3KqNB1UtgjXU2oryEERTFACK41uQuWpCTzBOmgF678h X-Received: by 2002:a63:1403:: with SMTP id u3-v6mr13799201pgl.13.1532896850629; Sun, 29 Jul 2018 13:40:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532896850; cv=none; d=google.com; s=arc-20160816; b=eeRC+s4fNaQ37zSBsKqI/1OP4TjLx7ckiYiw31K8tBXXgt+QzgFC4NjIOhuQSV7lJE R2qo8k3vW3/gqhBpmJF8JgeXyKEgKrpij/YqSyLzqKQ4y7TYOxPq6fA1G8x1izokWkNt g0AGJ7vgYnBFq4lOn91UwMAeAFifdc/z0EU6ZMA9Hz5ZFcIMNjvlVn0N0p/vm4j1p8X/ fJhng5MaTnwVy0WOXtqQbPAoHQVQHF2mASQPV2UrFbs3HfboQ6uVlT+dJ3bvbd/ztTAg xGFc51jxke3f2b0lhc/bm1rL39J7oY8gE0nJkMPyI+DFmDd8pOEvkhLx2+UJG4B4hUzr bClw== 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=6pqUoOULaUm7F4BE8xvA9BguWkhy4WDnmsqZO7JuL+8=; b=H46l6mCYvx/G/tOunGQ9Y1gooerwJ46rv5lrHWyAB0oNTBklaRCbUZVZVCH8SAyQnJ 1l+LC+u5AfZLN+pNTr2IGPKAU4qf/W7x3Tqc/IgoZWMmYby4X3iLeXDEZmHpcZYo0QhU fz2aoOpO1f9jdKX9DTtblzao4XBrnEVkj4fU/m8Ty+qzi7jAW19ea+OhpiWKoLrdjRGE 2m5daTLNLzJDE78eOHSdvodsJcARdelZqwwdJoXy0VzT555HmddbwVVE/25G1SBntHK0 Zcd8uYNrrlnqLzh7iH4lQBkAgmoegzfbY7rotbbz/BPz5zML53YehpIEi0/6dHCr4LYd wvRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j7Ornk5Z; 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 y8-v6si8960389pfm.141.2018.07.29.13.40.36; Sun, 29 Jul 2018 13:40:50 -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=j7Ornk5Z; 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 S1729093AbeG2WFo (ORCPT + 99 others); Sun, 29 Jul 2018 18:05:44 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:40247 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728637AbeG2WFo (ORCPT ); Sun, 29 Jul 2018 18:05:44 -0400 Received: by mail-it0-f66.google.com with SMTP id h23-v6so14116829ita.5 for ; Sun, 29 Jul 2018 13:34:00 -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=6pqUoOULaUm7F4BE8xvA9BguWkhy4WDnmsqZO7JuL+8=; b=j7Ornk5ZHJ4KVbyEH6fXJHxtr9/QqfFxWZ2NjiHzcjYsd+WmxNXDoAndvg+MryoYMT 6awh1X2R4ix+i11UOoW+NzOKScZ4exuvHeh6oDQgztQTQFcpdOSwYUD1t+qLV5Uu/4tT b838T58U5vov0FwF1HklWuLw7mgVmoDf9GOik= 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=6pqUoOULaUm7F4BE8xvA9BguWkhy4WDnmsqZO7JuL+8=; b=rx5gBSwywiZ0dkX7LVs9/lp3SO7cO0p5zJXhW338JkFtUnj9/fetyiCYdcrKj76JNa cjIJMB4dKwGP89MGO/rdmECnlGH65T64FeXiqRbjpxktMNpZSl72bWmoc8Df3Qm0pyvj vXAMF5c36Ap27ccMoijh6nN/S3idzI/+0rdhYVVynWS/Q+YdMzFbow8+vqmWTsbtqrAE ADMbttrKcwj8zgkwiVJFPNVVFGdv90CFmGCVfOCMef65tDqwX3sFw/WKSDRgblV/lrzc HYzAJlwkVpnG+0zPyQkr9u+yYctyIMdqRWr2k3CCqcNJfrgFDJWyYfTfyoeJ1aOaid3t 7M+Q== X-Gm-Message-State: AOUpUlEm/OLKm6xpkjjCdR5KQZJ5JhrmA4YMrYiaSB3cGnyIwSmXQ61v bupH5HGvcb50ULM4pdwgKymRJM2V1BSF7ni9dOxznQ== X-Received: by 2002:a24:5004:: with SMTP id m4-v6mr12090215itb.38.1532896440367; Sun, 29 Jul 2018 13:34:00 -0700 (PDT) MIME-Version: 1.0 References: <20180718235710.18242-1-jmkrzyszt@gmail.com> <20180718235710.18242-8-jmkrzyszt@gmail.com> In-Reply-To: <20180718235710.18242-8-jmkrzyszt@gmail.com> From: Linus Walleij Date: Sun, 29 Jul 2018 22:33:48 +0200 Message-ID: Subject: Re: [RFC PATCH 7/8] mtd: rawnand: ams-delta: Check sanity of data GPIO resource To: Janusz Krzysztofik Cc: Boris Brezillon , =?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 Hi Janusz! Nice work overall! Some feedback: On Thu, Jul 19, 2018 at 1:57 AM Janusz Krzysztofik wrote: > +#include Let's skip that. > + /* > + * For acceptable performance require the data GPIO > + * chip to support get/set_multiple() callbacks. > + */ > + if (!data_gpioc->get_multiple || !data_gpioc->set_multiple) { > + err = -EINVAL; > + dev_err(&pdev->dev, > + "data GPIO chip does not support get/set_multiple()\n"); > + goto out_mtd; > + } Since we know which platform it is, we know that we applied the previous get/set multiple patch, so we need not check this if the patches are applied in sequence. As long as all patches go in the same merge window, no problem. I'm BTW ready to apply the get/set multiple patch already. Yours, Linus Walleij