Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3064908imm; Fri, 10 Aug 2018 03:12:59 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzAGLCuDbBX/yBV97GOATMmaRXs/JvSoJWWLj8u12QS9JFFMyCvCemw279s4Q2Y6RHuul0B X-Received: by 2002:a63:2fc6:: with SMTP id v189-v6mr5828941pgv.61.1533895979907; Fri, 10 Aug 2018 03:12:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533895979; cv=none; d=google.com; s=arc-20160816; b=hdzyHaP7JLpfZ33X/EJBg63uh7u7m81NvkjFHkx2EJVqtKs3Sw6hzG1xKaNuvYd0O4 uKCqEEKudg18Ha4WwRzybV2T6DNTtzYbMpHTZ/tESBrDhzEQCMUUPEXHVI2t/dg4i3ic 3QLQKiMDVePbX3f86E3yufQsmoLWFq3HCIk63M8kSgQewuj1sGgRpTgmCygN+o70wnn0 IX7u6JUubkRkSlVYiTGq17qc4CGmmjV7j/JjOEoMche+wf68K68J6mWShuJguS6seGU+ pI/LEaCxmX1PkOJAVbBo7s15OMuQIeEUvmYmdn6TIKXdnhWt0OjUYLi0uqqtZ2dblZYR OQLQ== 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=u6M0dCfaQXx9iYWMNcClBpv33wj3darPut/Qo5lma94=; b=KzlsfY4ZRS4G3AbjAlgah8osUATKr1iLEq0cWVtmxwPVm4o6yUJeSGH18A6FbnBJt3 4ZpDq4Hbz0zqS0Kj1mlHbjIF7xDXrxRGw1vhcT+x2jAq0uxU3zczvT5R72uwEMs+tNKF wqb6OEbk4XePkrnXrlcMKnN80DmiQ5BLxGITpMdE+J+T2k91UW+UI4EW4jm/LFaiR23p uNLC6+vaJSVP1H0zVSd6hDiHhehX+GWhsmyJzp6M0iXEAc01n1tTXPtE4HplwZLR1gle 185hAA5wsXUWfXZ+e4mdRCluhYii+YxmzG8woaCcbdxWhL8TBo1peyPqPDnI/IWD2qyp V+9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fKCLkJEU; 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 x9-v6si7653615plo.377.2018.08.10.03.12.44; Fri, 10 Aug 2018 03:12:59 -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=fKCLkJEU; 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 S1727851AbeHJMko (ORCPT + 99 others); Fri, 10 Aug 2018 08:40:44 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:36068 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727270AbeHJMko (ORCPT ); Fri, 10 Aug 2018 08:40:44 -0400 Received: by mail-it0-f67.google.com with SMTP id p81-v6so1950776itp.1 for ; Fri, 10 Aug 2018 03:11:32 -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=u6M0dCfaQXx9iYWMNcClBpv33wj3darPut/Qo5lma94=; b=fKCLkJEUmp62n+YLnuySzKOEWwogRuCECbZgnOrmrUlSzD1pK51p37H3Ypta15rWrz 90VDDbt74U3A+TQEFNiMZNddn7CNqIwXDrcg1+lQrFSM4LH5SdT3V3I0I1kP79G07V7r 80ZE/KvieoG9MOd/8A8vcEkRyhe6U5xaHhreA= 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=u6M0dCfaQXx9iYWMNcClBpv33wj3darPut/Qo5lma94=; b=FuHmuJZVf6GMFqIs08GaLxZ9rxXz9KhRk/tk6sU8RRQmLQYHtTOgqaUImYneRIxdao ImV3b+PoYcleVuyfYtPXoCWttoy2naZjWj/4z5wtqRl9iWQTODFmRE0MQZksLjGohw1l yejbm2PAHYtoznczuBLqAHgne0xoX9izNVbl8eDcOyg6pvcSe7fQK54x8qfh30ErY0l7 5YqcYfrdKu8S6Hpuw9DPxaKOj49OQW3pdRa8q9k880M08P/0fjdW1M/sxGicxG3JI64b y7IWIV50QJSk3et+hIEAVqZC7pEnJxoUNhJlcERKLwKmFBTeh1zkqOSyE1rsWjnzTd8l eDtQ== X-Gm-Message-State: AOUpUlFcvJqOjIeM8wYVHCPlqX9Jk3JjynVUr0njlrT70HS7LFX7oLWf gzJkX2lfsFHpkiu84G40Y/LWHPatbeU4l/e4V/tMrg== X-Received: by 2002:a02:6c45:: with SMTP id w66-v6mr5148979jab.87.1533895891792; Fri, 10 Aug 2018 03:11:31 -0700 (PDT) MIME-Version: 1.0 References: <20180718235710.18242-1-jmkrzyszt@gmail.com> <20180806222918.12644-1-jmkrzyszt@gmail.com> <20180806222918.12644-5-jmkrzyszt@gmail.com> In-Reply-To: <20180806222918.12644-5-jmkrzyszt@gmail.com> From: Linus Walleij Date: Fri, 10 Aug 2018 12:11:19 +0200 Message-ID: Subject: Re: [RFC PATCH v2 04/12] mtd: rawnand: ams-delta: request data port GPIO resource To: Janusz Krzysztofik Cc: Boris Brezillon , Jonathan Corbet , =?UTF-8?Q?Miqu=C3=A8l_Raynal?= , Richard Weinberger , David Woodhouse , Brian Norris , Mark Vasut , ext Tony Lindgren , Aaro Koskinen , Linux ARM , Linux-OMAP , linux-mtd@lists.infradead.org, linux-doc@vger.kernel.org, "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 Tue, Aug 7, 2018 at 12:29 AM Janusz Krzysztofik wrote: > Data port used by the driver is actually an OMAP MPUIO device, already > under control of gpio-omap driver. For that reason we used to not > request the memory region of the port as that would fail because the > region is already busy. Despite that, we are still accessing the port > by just ioremapping it and performing read/write operations. Moreover, > we are doing that without any proteciton from other users legally > manipulating the port pins over GPIO API. > > The plan is to convert the driver to access the port over functions > exposed by the gpio-omap driver. Before that happens, already prevent > from other users accessing the port pins by requesting an array of its > GPIO descriptors. > > Signed-off-by: Janusz Krzysztofik Reviewed-by: Linus Walleij Yours, Linus Walleij