From patchwork Thu Dec 14 13:45:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 848554 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ZuyjwXn4"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3yyFGc1LmZz9t2f for ; Fri, 15 Dec 2017 00:46:48 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752874AbdLNNpv (ORCPT ); Thu, 14 Dec 2017 08:45:51 -0500 Received: from mail-qt0-f194.google.com ([209.85.216.194]:35511 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752780AbdLNNpt (ORCPT ); Thu, 14 Dec 2017 08:45:49 -0500 Received: by mail-qt0-f194.google.com with SMTP id u10so7986859qtg.2; Thu, 14 Dec 2017 05:45:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=IRSx8E9HE/R3VO9XsrQ3OIOecebVMO5CPgfsEFI8Gro=; b=ZuyjwXn499Taw5LfC7hY/XY+91ovqiAf/ihIVkOpIKSrNYsFu7TPi1uVLBjjN3eIE9 dR+asQMn6TpwMfbo5nxt+yxFJVoLuSWI+rNBywE1smqFwd7yOMwy2wypGZ7wDDHuheOJ O9tcJmVcNKASj3XPbss7fbx2XHNg6oYIM7mYEGO9hIM+XxH0E+X4l57yXlawnlXFIZNz fipiWmr6lAXa4oEyr65++tuhiGJFIGsF/tyB3xdzbjCN9uSuo+Arety/vG1VwQlKMcga orRIKODURK4yaRQ8V8L1AKPTyoCQBjoRyQIXX/DWQJNUAOvg+l2ehvFm39jCe8jYVh0F Ms+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IRSx8E9HE/R3VO9XsrQ3OIOecebVMO5CPgfsEFI8Gro=; b=GaHHWmfjClP2DFynxVnYsGN+DHCVngu2nzlJXJrbwLmLzZc0bVx/OIi6hF3Rpj13PM iXPeb28Ji2egcmEKzgLL7fTluPwAxLNrdV6C8l32/xJnxJHDEpDYDWVlLsiGGKrm8aX1 o7+0Dd+MFiuAK82nbOvxt8STePDM/O+2N2Th97LhM3vxe0ISkMj/rlxUrgiv2OyI0Uc4 HLSLw98X2vqWG+mV1N7d/srfEbthKIt03yhlFGjRaXFmj4uX6zCQ9Wzayb8ywEFLhV/z Q8qnbbFOSTTSkmArUtKT2BWVvYD5DL38uEaNvE8AhUZkG+PrE+RPNDQKn8lrLUvtvzQt FVeA== X-Gm-Message-State: AKGB3mIovqcqfQjO3IGAObFQsvne0nlHghp6iiq7EPMbHPatuEANCB8w LuM2HOyIQKJHYT6w7ojgHiM= X-Google-Smtp-Source: ACJfBouio/r0WTdfLQ9ujuDtnEHdozFUqxRAhsAct++/GverEvJMboZhry5xXSpuQ/jVQbLfvpIZuw== X-Received: by 10.200.40.157 with SMTP id i29mr16365539qti.86.1513259148344; Thu, 14 Dec 2017 05:45:48 -0800 (PST) Received: from localhost (p200300E41F200F003F65F430A8AE2E44.dip0.t-ipconnect.de. [2003:e4:1f20:f00:3f65:f430:a8ae:2e44]) by smtp.gmail.com with ESMTPSA id e56sm2608043qtc.46.2017.12.14.05.45.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Dec 2017 05:45:47 -0800 (PST) From: Thierry Reding To: Lorenzo Pieralisi , Bjorn Helgaas Cc: Jonathan Hunter , Vidya Saga , Manikanta Maddireddy , linux-pci@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH 0/4] PCI: tegra: Configuration space mapping cleanups and fixes Date: Thu, 14 Dec 2017 14:45:41 +0100 Message-Id: <20171214134545.11143-1-thierry.reding@gmail.com> X-Mailer: git-send-email 2.15.1 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org From: Thierry Reding Hi Lorenzo, This cleans up a few oddities that I found while reviewing and testing the patch [PATCH V3 1/2] PCI: tegra: refactor config space mapping code that Vidya Sagar sent out earlier. The first three patches are mostly cleanup and admittedly somewhat bikeshedding in nature. They could've been just review comments, but I thought I'd just submit them as a series of patches since I had already typed them up anyway. The last patch gets rid of an artificial restriction regarding the mapping address and does a bit of simplification. These are technically incremental on top of the original patch, but if you prefer, feel free to squash them into that patch. I've tested these on all of Tegra20, Tegra30, Tegra124, Tegra210 and Tegra186. Thanks, Thierry Thierry Reding (4): PCI: tegra: Clarify configuration space address computations PCI: tegra: Reorder parameters in offset computations PCI: tegra: Consolidate I/O register variables PCI: tegra: Remove artificial mapping restriction drivers/pci/host/pci-tegra.c | 71 ++++++++++++++++++++------------------------ 1 file changed, 33 insertions(+), 38 deletions(-)