Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4175168imm; Tue, 11 Sep 2018 08:03:46 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb2+EL1moOt9L3OydV8EY8Smt4dA471kpTytmPEnvzr4vIB+q5Trt2hg8ZxIOkTkf1QI2Vu X-Received: by 2002:a17:902:aa05:: with SMTP id be5-v6mr27715984plb.313.1536678226829; Tue, 11 Sep 2018 08:03:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536678226; cv=none; d=google.com; s=arc-20160816; b=PiOBSx8IfxxoxbQbaxuI7+GWRXRnYhZQpZfafGBjvJu9o3+LTsDk1NL7Klao46zuf8 QwShwXBKki/L4k6npKCVupz/kFzPcrvQk6pO7ujdO1SHFrGZSEsLapNS2fjeOzsYiqsW 98UoWK+nE4uqh12aHl+ryIrqqeQbuF7VAcfAQoLXB0w0iTnnmnFGEDaQfBAk4vZEAjfc qK/VatCu1xugYBYea/tOBjb976l5FjXnodSl3OLMWaPh0JkcxOMME9NX/fxbe405Xn9B GS8IZAiFQV7Xui25zp6r1M2znqTB2cU6DaW3/cM0+RLnl/3aJsP/rx5ulN0XKuozeONW deRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature; bh=zYclH69D691sLkF0oz+e4R1EfrJLQEJKYIzvAla9sMU=; b=wTjBgonEpV1sn5roOKlBQD58jQesj2XDSnUql6S6gE4rJ5iFQQ/LFbwDKXJzagmToo /ct2oQC5TasmaGhboHYSzSt0ZMa9a3hflWF+0b7lTLTbJNfqaqJlRcmAFgupqnKFrj4E UE2Uf5GJ5JC1RBYnfnyTb/ccwIaHuGVsJQXU+suIXZEDg0uhORAJw2dqsSzGFd4tvpHc A7k51KYvi1r/kyx9xpySoc0BmtF9G4R8U0okItYwuqs9E80IUsNTtYPcQVPiLWssMmeE x/wPv8CbxxPXsLpoCY4O7R24VJaKzkAzb/NRJ4e9uYbno4TuP15Pf2RByPeiMSeYlxRs mfyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=1cURDPyY; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5-v6si18761394pgq.316.2018.09.11.08.03.24; Tue, 11 Sep 2018 08:03:46 -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=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=1cURDPyY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726989AbeIKUCw (ORCPT + 99 others); Tue, 11 Sep 2018 16:02:52 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:40267 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726775AbeIKUCv (ORCPT ); Tue, 11 Sep 2018 16:02:51 -0400 Received: by mail-lj1-f196.google.com with SMTP id j19-v6so21103816ljc.7 for ; Tue, 11 Sep 2018 08:03:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=zYclH69D691sLkF0oz+e4R1EfrJLQEJKYIzvAla9sMU=; b=1cURDPyYZg+NysgZfkd089d80AFwOcoLgq/1gz1pIDf7czhwSxOCjP7LDXz6fnP829 RJMtOXUkSqmmXQrsCb2LnyqjSQhwBvYaierOfWYKqJEdHKW4GsiXxVdQDzCsVgt/uEtO UOEOgCplMJGq8g10XIh9EpEvLtzuMUMiCYh6d2rPEI8cdZKgNPfAMAj8pXujFtqFwKLX JucPUChGyDoBim3raT+CpX/wmGXEjv2l1PcqX8LMVtD4vzTuUHT79hjMJNpKHWFoY+fL WeNC80DwAenWm77rmSdtx5CG2FWd20K5791ciCvU2jO8OtdfGYvur5d76d/XEEynyykf sYiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=zYclH69D691sLkF0oz+e4R1EfrJLQEJKYIzvAla9sMU=; b=PE1Y0i3F039sR0GpiJImE2L5a3HvPL/i5gNTeAl/dDcZERL9hTN/yZwc8nNuhx1EDN 9TigTAmVcnyxMXuoGMkX9nzRRlX+67rUSRwwl9t2Ke1wHln1sd6GPvbHjcK1xbKCpPB4 ofXv7cAp9cQBmrZxLPM6D8Ar2PS4//99woCOoCRafSYjOwobHT0Jb6CarEp+NjIGMsmn FxZ5dP8tt1Q2TDR0jgWMvJV82EaPZ/r5yQ+E+x7U3lKRJl41yoseFGHjjrGTK0BMdIxx liOrz6v9uoLmbC0ZG/GR8eeHT2EQzmf419GnaXguW/BunFDV5C/eB2ZV4dbg8uDIe3SZ Hc/A== X-Gm-Message-State: APzg51CaFUXnRLFlKklRpl70k1lk7RoIA+ZjzQQDg78zSRkT7y0py7Ju hY9A47hpaPNDS8U4/L1kbC9R3XU21PP3rxzWNUObxA== X-Received: by 2002:a2e:87cf:: with SMTP id v15-v6mr1949269ljj.13.1536678188337; Tue, 11 Sep 2018 08:03:08 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:6413:0:0:0:0:0 with HTTP; Tue, 11 Sep 2018 08:03:06 -0700 (PDT) X-Originating-IP: [2620:10d:c090:200::7:2b58] In-Reply-To: References: <1533318808-10781-1-git-send-email-jollys@xilinx.com> <1533318808-10781-4-git-send-email-jollys@xilinx.com> From: Olof Johansson Date: Tue, 11 Sep 2018 08:03:06 -0700 Message-ID: Subject: Re: [PATCH v11 03/11] firmware: xilinx: Add zynqmp IOCTL API for device control To: Jolly Shah Cc: "ard.biesheuvel@linaro.org" , Ingo Molnar , Greg Kroah-Hartman , "matt@codeblueprint.co.uk" , Sudeep Holla , "hkallweit1@gmail.com" , Kees Cook , Dmitry Torokhov , Michael Turquette , Stephen Boyd , Michal Simek , Rob Herring , Mark Rutland , linux-clk , Rajan Vaja , Linux ARM Mailing List , Linux Kernel Mailing List , DTML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jolly, On Mon, Sep 10, 2018 at 12:17 PM, Jolly Shah wrote: > Hi All, > > Adding more clarification on top of what Michal said: > Here ioctl is not a system ioctl and just a eemi API like other interface= APIs. It cannot be called from userspace. Only Linux drivers can use this = API for defined ioctl operations. This API is meant for any platform specif= ic operations which needs to be managed by firmware. Firmware will always v= alidate the request for action being performed. > Debugfs interface is just for debugging during development. We can remove= debugfs support for ioctl API if you suggest. Are there any pending patchsets that make use of the ioctl interface besides the debugfs piece? None of the ones in this pull request (besides the debugfs) seems to call into it. It might just be easier to leave it out until you have a use case for it. The rest of the patchset looks fine to me, and I'd be happy to take it. Once you have a need for it we can discuss specifics. -Olof