From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=BAYES_00,DATE_IN_PAST_03_06, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80A53C432BE for ; Mon, 16 Aug 2021 03:18:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 695F461929 for ; Mon, 16 Aug 2021 03:18:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233097AbhHPDSn (ORCPT ); Sun, 15 Aug 2021 23:18:43 -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: devicetree@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.