Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2083886imm; Wed, 16 May 2018 07:39:06 -0700 (PDT) X-Google-Smtp-Source: AB8JxZomvyK1CRPwnULvbUDK5mOGS/HW8RuFIkxAKv8Z1fOibTZp0cabekxLspQmaOMkXPTRQlv9 X-Received: by 2002:a65:4642:: with SMTP id k2-v6mr957164pgr.305.1526481546674; Wed, 16 May 2018 07:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526481546; cv=none; d=google.com; s=arc-20160816; b=YHJVP3NdAclqmPJzgCney7f46ss9H868RTCfa5O/+yPJU0W6bfvl5cX8USZv+9aDa+ 0llz8pNt4bqcw/5QNehJ4zYaiRfBJePnRP9I/sBeK+w7mWzak2RTj3KKll8o4jJnSyP6 9of7v9jsCNHKc7R7Vv1eccV7GbppM9xsYjR+/T62TAkJ4MrtsJ0j/Opv1MHssa8FyEa3 gVwvgj1NUsr1kITBF3UX/FMBImibOXwfsfEz/iQpzJjNHq2jlxH+nkWJuUuzCuNaIzxG +IRBKHwisxfD59rBMyVkhKXacmtz2Fu7c/5xfyqMPZVawICLlqpmxZOhD466z5Zu42Qf NDgA== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=ME/3gu1484EaW87HIiVjc5+3+k8IT5i7zeOWsIUAJOg=; b=DRz0sNhDF6f7+8Io5/sZ9jChqGuo3UGqxOdiQWVHkpbVMAYEeDBOnRMuosA0Zu8Uca TMr5hGQGHveSJ4rTuIyu4j0CBEm2g6RsNN/Ajl4Sw5EgRdmEHQBt2/DRXLkBq/XqFuMJ kPGa3cv9B2A5z6hbPHn1SIX8Dmuyh/Fw2LibMsnVQ4TxPUCRLn51Udw4yEXE/nUzd1BT 4DjjE4XRfDcntfAdbQD8tiZcuf2uD/g1u64fo/2A7iDP87pnDdsPhwhKbr23D+gyoj0C 095gH0uKTo2t0BURCfe08xUkwCziJGnxD9UUBfPkmCP3bJzw/J+Vbcp42wBOhFgud2zM XaPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M3lOGSr1; 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 c17-v6si2903503pfk.36.2018.05.16.07.38.52; Wed, 16 May 2018 07:39:06 -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=M3lOGSr1; 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 S1752537AbeEPOi2 (ORCPT + 99 others); Wed, 16 May 2018 10:38:28 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:51088 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752510AbeEPOiZ (ORCPT ); Wed, 16 May 2018 10:38:25 -0400 Received: by mail-it0-f65.google.com with SMTP id p3-v6so2472926itc.0 for ; Wed, 16 May 2018 07:38:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ME/3gu1484EaW87HIiVjc5+3+k8IT5i7zeOWsIUAJOg=; b=M3lOGSr1SU4qlsE7ssTHItCTLmwqOT6XhtCBOq4t7GkzORhN2Sg5O821BJrAnda0el EojcrIph2BGj/QCKgxFde0J10DAND/GNGJubBqiKkZw+mF9BcGL0glu+547dPN3dg4o3 SDX96qrNjs/yQinI/IVSxI30rrbaC5LTyve7w= 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; bh=ME/3gu1484EaW87HIiVjc5+3+k8IT5i7zeOWsIUAJOg=; b=FqfpYuLAo1LrdOgv4Hr82iJWiUnmrKF7uvWtK/xxvHgqstCk4sb/ujBYz6mjc03vzM c76Or804KRorlpKOgZrCnvW839HczI+Lx6Z7WpH+FMGxuV1MpTL6q0TpEPzy3tV3NItm yWb5Aql6DGrxF8dba6HwaQq7zP/YwcOWiSM0VB0XmlShHL/vSz7nSJjGlwOSQLIgG01X GUH7viAfthjfxW7SXbObqDE+bRXLhNTYMdxujWTrQJ+b+IR3AIMm3emxIhRYL24BiyHv duYnBU40qSRnesrojCILJd7ieeyvmYj41hXF8MeKQwNQ+Xz32zLhoUKzjWz/cECeaRTR zbSg== X-Gm-Message-State: ALKqPwfr4DbG+9AkI5jUqsh1Vy5+U1PMO34qcC+Lq8Uqa3nEVpXdem3s EzAEw8gL8xh+U0Zd8CzYpt/NQQoXUugkxw0YP8/TWQ== X-Received: by 2002:a6b:cc02:: with SMTP id c2-v6mr1288355iog.304.1526481504901; Wed, 16 May 2018 07:38:24 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:4c95:0:0:0:0:0 with HTTP; Wed, 16 May 2018 07:38:23 -0700 (PDT) In-Reply-To: <45eca00d-57f5-21b5-1f6e-b5f3f60ad276@xilinx.com> References: <20180501213114.20183-1-robh@kernel.org> <20180507183106.GF2259@tuxbook-pro> <91dad272-e07d-2ab6-2afa-538294e9cefa@suse.de> <45eca00d-57f5-21b5-1f6e-b5f3f60ad276@xilinx.com> From: Linus Walleij Date: Wed, 16 May 2018 16:38:23 +0200 Message-ID: Subject: Re: [RFC PATCH] driver core: make deferring probe forever optional To: Michal Simek Cc: Alexander Graf , Bjorn Andersson , Rob Herring , "linux-kernel@vger.kernel.org" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Greg Kroah-Hartman , Grant Likely , Mark Brown , Stephen Boyd , boot-architecture@lists.linaro.org, Linux ARM , Jan Kiszka 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, May 14, 2018 at 2:44 PM, Michal Simek wrote: > On 14.5.2018 09:37, Alexander Graf wrote: >> On 05/14/2018 12:01 AM, Linus Walleij wrote: >>> On Wed, May 9, 2018 at 11:44 AM, Alexander Graf wrote: >>>> On 05/07/2018 08:31 PM, Bjorn Andersson wrote: >>>>> Can you please name platform that has enough support for Alexander to >>>>> care about backwards and forwards compatibility but lacks a pinctrl >>>>> driver. >>>> ZynqMP is one example that immediately comes to my mind. I'm sure >>>> there are >>>> others too. >>> Why isn't that using drivers/pinctrl/pinctrl-zynq.c? >>> >>> How is it so very different from (old) Zynq as it is already using >>> the same GPIO driver? >> >> That one is very simple: ZynqMP is usually an AMP system where Linux >> doesn't have full knowledge of the overall system. IIUC they have a tiny >> microblaze (PMU) that does the actual full system configuration for >> peripherals that may interfere with each other. This architecture also >> allows for safety critical code to run alongside a (less safe) Linux >> system. > > Linux is running in non secure world that's why Linux can't have full > system visibility and Linux should ask firmware. It doesn't matter if > firmware is running on specific unit or just secure SW in EL3/EL1-S, EL0-S. > You can also configure ZynqMP to protect these address ranges not to be > accessible from NS sw. > If you don't care about security you can use normal read/write accesses > at least for gpio case. Pinctrl/clk will be driven via firmware interface. OK I get it, the situation is similar to some ACPI-based BIOSes on PC where one needs to ask the firmware for misc services. What would be nice is to standardize these APIs (like ACPI or device tree does) so we don't end up with one per-SoC-specific driver per system. But I guess it is not my pick. Yours, Linus Walleij