Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6016033ybl; Tue, 14 Jan 2020 19:58:14 -0800 (PST) X-Google-Smtp-Source: APXvYqwZAB6bfpA3T4GfL9kt/H9+0W1yTxzy5Pc0CzDa9KExjxoF1jKx/JT2/leU0FxiSzd6JJf0 X-Received: by 2002:a05:6808:312:: with SMTP id i18mr19933812oie.44.1579060694247; Tue, 14 Jan 2020 19:58:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579060694; cv=none; d=google.com; s=arc-20160816; b=VFxJnqWPkpsfrsVtr2j7rLskgd+MZG4OEBal0+SSpH4UJMz3UdIJJ8ZAonz1cOrryg n/GwiiXaE5S7xpcjL7/CYbyX1FqCYbPX2lmBFN1VcwXmDCvzEwEx7UnlBqbRrMdK7pLu llfFU06uHYAzgAflobjFVIHgXVpmVL1ur6keOdyFTwx81m9pvuC8yil8F/kcMvyWacWu 7GWdtsL3M6b6KROqPRzJVQgqnjNyq5cQMzOXARkn+m3g85uUqHkbP10JOXLRdfNqgrdt WF1zltlpzUU/daykAo5slBnpvoNau1p2CyorPcEAaZPMKtvwvvQ5ME73i80t4HP9uOLF wcCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:message-id:date:cc:to:from; bh=Sc7zXW0VCg9LBZMAOM1qLG7cVk60vN2vCBgC9Ytvazw=; b=XGJPu80U+B7SPSqMJ1VWfv5kAziqvNyXTvhIqcH+Uq3/R61sJ2my8/k4PDNAZK2slr h8ztxEHluFgodH1zR/qJtA3VzXGGJEvDJWAKwlk4Rj+6NPNaQ9hh3Bpbmokvnpfk0dvx tFR6pczIzBTO4M4xn0duBBJLOIcsj5NJeNqqhEG0A/utMu7EiSp6ttZWzVaG4rY9vLc+ sw0GlBjupTAYGuM42/ZJLYl+8obP3fTepB9S9bMNeOU5+S4nlLzXakILsSNdfEB0FjZj J00+VG9dbKzK1ERAnWofwShDUvswEC2uYH4amnQJWXxyulx2q7fulXun58O0+Q/SYpSt Repw== 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 e6si9798844otq.217.2020.01.14.19.58.03; Tue, 14 Jan 2020 19:58:14 -0800 (PST) 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 S1729127AbgAOD5E (ORCPT + 99 others); Tue, 14 Jan 2020 22:57:04 -0500 Received: from ale.deltatee.com ([207.54.116.67]:43354 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729100AbgAOD5C (ORCPT ); Tue, 14 Jan 2020 22:57:02 -0500 Received: from cgy1-donard.priv.deltatee.com ([172.16.1.31]) by ale.deltatee.com with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1irZna-0001ij-30; Tue, 14 Jan 2020 20:56:59 -0700 Received: from gunthorp by cgy1-donard.priv.deltatee.com with local (Exim 4.92) (envelope-from ) id 1irZnW-0000gQ-KY; Tue, 14 Jan 2020 20:56:50 -0700 From: Logan Gunthorpe To: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Bjorn Helgaas Cc: Kelvin.Cao@microchip.com, Eric Pilmore , Doug Meyer , Logan Gunthorpe Date: Tue, 14 Jan 2020 20:56:41 -0700 Message-Id: <20200115035648.2578-1-logang@deltatee.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 172.16.1.31 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, bhelgaas@google.com, Kelvin.Cao@microchip.com, epilmore@gigaio.com, dmeyer@gigaio.com, logang@deltatee.com X-SA-Exim-Mail-From: gunthorp@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.7 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE,MYRULES_NO_TEXT autolearn=ham autolearn_force=no version=3.4.2 Subject: [PATCH v2 0/7] Switchtec Gen4 Support X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Here are the cleaned up version of the patches for Gen4 support in switchtec. The end result is mostly the same, save some very minor changes, but the organization into commits has been reworked per Bjorn's feedback. This set is also rebased onto pci/switchtec. A git branch is available here: https://github.com/sbates130272/linux-p2pmem switchtec-next-v2 Thanks, Logan -- Kelvin Cao (2): PCI/switchtec: Add gen4 support for the flash information interface PCI/switchtec: Introduce gen4 variant IDS in the device ID table Logan Gunthorpe (5): PCI/switchtec: Rename generation specific constants PCI/switchtec: Introduce Generation Variable PCI/switchtec: Refactor ioctl_flash_part_info() PCI/switchtec: Separate out gen3 register structures into unionse PCI/switchtec: Add gen4 support for the system info registers drivers/pci/quirks.c | 18 ++ drivers/pci/switch/switchtec.c | 334 +++++++++++++++++++++------ include/linux/switchtec.h | 148 ++++++++++-- include/uapi/linux/switchtec_ioctl.h | 13 +- 4 files changed, 424 insertions(+), 89 deletions(-) -- 2.20.1