Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1585380ybb; Thu, 2 Apr 2020 03:44:54 -0700 (PDT) X-Google-Smtp-Source: APiQypKAIfNpdFUlLGRFrw0+FcEgk61cHc7zdbIsN6ryn0lt/2jld5ZBEU3eKSJNEueEJFDVLEDS X-Received: by 2002:aca:f346:: with SMTP id r67mr793924oih.39.1585824294616; Thu, 02 Apr 2020 03:44:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585824294; cv=none; d=google.com; s=arc-20160816; b=llLpp7HD/2v0RBglEVt1Mai7AkTcrNg5Z06k2fepCJZAr424n2EFdKWrsGHnn/7RYR 754dOud1L3bzBVNNQtRo+iNDpP5dF3qLv4/qFSHRXntqh6FbS+Q/xcbCCriAQP0zwBX7 2ae6rLHZQb0WvicmQY5PDu3slQgpCRPARg48BY00SrIMepd0x1layQJfMLbfoh4gYLrd VQikyioelS4gEPyoTBzjh7Ot5tARK1TtLxuM5fpuH2gW/oJ0o0Cs8+D7wu/o9m9oBgwh mUA0n9lniN3+GV6tU4Wu3pAeC9YhpE+qfcE7AzajrfYl1vcdWz0mw262YoxK8nY2Fit0 UeJA== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=XtvKzGFhhO3KBD8YAwW6hHZCHgh/ucs2QVDhdR3YeyY=; b=xNZBC6s7/qE55i+qjbsProOosNbatLwiFnXN2Y1UPqbKECNsbZZ+mbi+c9/3vnllqf tiHiU7gGcXLJncGfZMET6hj046Oqf+tAVw9izN7yJ7vJuRtw44tije94S/oAEqIGJ/PU Z1fITVGu1/GkSz9QPfAeERRYxoOl/QG47/A+BWkaOLnIP7lxkxnoj1ERzXQlHwEBwY+J yA+haA8UdNwIAP4OOlBiD3lrQIeBGD7Cu/R6JO4Ler5iZtxOd2mJvY79OyL0prXPyEWt X73f+goSa0qRwDqJv3v5pvHCt7TzcHSMb79iqSnzfg8Y0GkhDEn89PgwA2cNrpYErRxg w0PQ== ARC-Authentication-Results: i=1; mx.google.com; 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 o203si2130597oig.1.2020.04.02.03.44.42; Thu, 02 Apr 2020 03:44:54 -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; 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 S2387988AbgDBKnB (ORCPT + 99 others); Thu, 2 Apr 2020 06:43:01 -0400 Received: from kernel.crashing.org ([76.164.61.194]:37706 "EHLO kernel.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728612AbgDBKnA (ORCPT ); Thu, 2 Apr 2020 06:43:00 -0400 Received: from localhost (gate.crashing.org [63.228.1.57]) (authenticated bits=0) by kernel.crashing.org (8.14.7/8.14.7) with ESMTP id 032AfWgw028540 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 2 Apr 2020 05:41:35 -0500 Message-ID: Subject: Re: [PATCH v4 03/25] powerpc/powernv: Map & release OpenCAPI LPC memory From: Benjamin Herrenschmidt To: Dan Williams , "Alastair D'Silva" Cc: "Aneesh Kumar K . V" , "Oliver O'Halloran" , Paul Mackerras , Michael Ellerman , Frederic Barrat , Andrew Donnellan , Arnd Bergmann , Greg Kroah-Hartman , Vishal Verma , Dave Jiang , Ira Weiny , Andrew Morton , Mauro Carvalho Chehab , "David S. Miller" , Rob Herring , Anton Blanchard , Krzysztof Kozlowski , Mahesh Salgaonkar , Madhavan Srinivasan , =?ISO-8859-1?Q?C=E9dric?= Le Goater , Anju T Sudhakar , Hari Bathini , Thomas Gleixner , Greg Kurz , Nicholas Piggin , Masahiro Yamada , Alexey Kardashevskiy , Linux Kernel Mailing List , linuxppc-dev , linux-nvdimm , Linux MM Date: Thu, 02 Apr 2020 21:41:30 +1100 In-Reply-To: References: <20200327071202.2159885-1-alastair@d-silva.org> <20200327071202.2159885-4-alastair@d-silva.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-04-01 at 01:48 -0700, Dan Williams wrote: > > > > +u64 pnv_ocxl_platform_lpc_setup(struct pci_dev *pdev, u64 size) > > +{ > > + struct pci_controller *hose = pci_bus_to_host(pdev->bus); > > + struct pnv_phb *phb = hose->private_data; > > Is calling the local variable 'hose' instead of 'host' on purpose? Haha that's funny :-) It's an oooooooold usage that comes iirc from sparc ? or maybe alpha ? I somewhat accidentally picked it up when adding multiple host-bridge support on powerpc in the early 2000's and it hasn't quite died yet :) Cheers, Ben.