Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp1403506pxy; Sun, 15 Aug 2021 20:19:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyg3F0Q9GcZo0ZnCCKV8scHsO6Q/1Q/5ULGh9BWBhPiOFOqZbxZ+oj58Ah9YHQdiqnR5ja X-Received: by 2002:a05:6602:1848:: with SMTP id d8mr11093002ioi.72.1629083963782; Sun, 15 Aug 2021 20:19:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629083963; cv=none; d=google.com; s=arc-20160816; b=KX61kRQYMn5pMRD8fkVMLh7Q7aV5quVE9UbCp3RREKRG3IA8VJeXi1ttJUao63QoiM TzYGaQapr5fYB7Slu0/pqihtlsB8sq4r4jEhBCAP/zIb7EjzkzId0oCNZ62pkA4M85c/ 7HQhTaUGf4IhCso+UUpEUc+cBvfubY92U52mPGXSvYy7dmEaPVFJbANfMgKoDBftg3PS 1Ps5MD/pV9D5JOcjybic95m3o7N8v4jMlNZwMoguIMrjM/rvjsJvi+v3ndli0eE1l3ZT Q//grH9whAgYDKhnLXm2xg33hTtbKSmvxoB+PGBFbAwBnZzbTCAv5tmxBEnYrh/etLqV 5l3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=JPWcI9v0ZCyvdiVi5dfvxe01XSsbf3gBRTJfVEUpQHY=; b=w9wFLbpH23fV6WsMWW1xESDYRrH0oCkXVybP5DHHj23c7oxX0lJedR2ih/LusrKIDn yw5VCk821YcUZ9UKWcki0O5psBffJ7NsJUmOxrEsZtqXFl7hOuf6HnUg8DCZo9sEq7WO PqKYx0SAuUnd5v6RV+MUD5g0m83uCyDVjc0DZATz7JkzE6UJY6dl8NQ7rkYrLA6EYENi a3r1lu6sJNDz+E2fvvppcxcdq3upatszGNGKWXyjD8KeOPfnMhfCGPitUGh3ia3w1BLy 3i0DNO96ZhBjII7EUAyUuM9nMHIaT+teumeW44ctW7FYlfANuM1EQOsYnRzoThh/Qz7Q xONw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h199si4518100iof.50.2021.08.15.20.19.13; Sun, 15 Aug 2021 20:19:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231738AbhHPDSo (ORCPT + 99 others); Sun, 15 Aug 2021 23:18:44 -0400 Received: from [138.197.143.207] ([138.197.143.207]:45302 "EHLO rosenzweig.io" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S233030AbhHPDSj (ORCPT ); Sun, 15 Aug 2021 23:18:39 -0400 Date: Sun, 15 Aug 2021 17:40:09 -0400 From: Alyssa Rosenzweig To: Sven Peter Cc: linux-pci@vger.kernel.org, Bjorn Helgaas , Rob Herring , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Stan Skowronek , Marc Zyngier , Mark Kettenis , Hector Martin , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 2/2] PCI: apple: Add driver for the Apple M1 Message-ID: References: <20210815042525.36878-1-alyssa@rosenzweig.io> <20210815042525.36878-3-alyssa@rosenzweig.io> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > +/* The hardware exposes 3 ports. Port 0 (WiFi and Bluetooth) is > > special, as it > > + * is power-gated by SMC to facilitate rfkill. > > + */ > > +enum apple_pcie_port { > > + APPLE_PCIE_PORT_RADIO = 0, > > + APPLE_PCIE_PORT_USB = 1, > > + APPLE_PCIE_PORT_ETHERNET = 2, > > + APPLE_PCIE_NUM_PORTS > > +}; > > This will also be used for the Thunderbolt ports, where this enum > won't apply at all. I could also see Apple changing the individual port > assignments in the future. I'd just remove it here and have this file be > a generic PCIe driver for Apple SoCs. Removed in v2. > As above, I don't think it makes sense to special-case anything for the > devices on the bus here. These controllers also have hot plug support, > so the radios don't have to be on by the time it's initialized. > We could also just turn them on in the bootloader for now. This should be fixed in v2 with Mark's device tree bindings.