Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1233116ybl; Wed, 8 Jan 2020 13:25:45 -0800 (PST) X-Google-Smtp-Source: APXvYqw9ul5rlj0atxFDedtWUvhgkixYa8L9RvnKceWNgEwn1r9Hb9u41yWoqB/TZRsyxZv1Kwfe X-Received: by 2002:a9d:7ad9:: with SMTP id m25mr5431373otn.13.1578518745347; Wed, 08 Jan 2020 13:25:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578518745; cv=none; d=google.com; s=arc-20160816; b=DtXNzUHUyMH3nCEQ0/Ph1A368AodLVKQan6PQu9v7EWU2gnd5d1zzQSGwFZzq+yOhy TOYtC7fQxjQvUkEffSRzWtFgvit5B/jjCJ3mw6EmOzW9Gdnn59geLGFlksFGsgZ5fdi7 mTMvcOeaYi+nDIPH9cWKvPeaKcmNKNOMicsN3K9EcpN1Sk/wU5TeIutu77E+LpoRjAfu y77CfQ/igdZTNKU1XIifFn1xfqu7ajxphR0P+SvCBoyUUVuCU+YBxq80IZNG890YiSNt YiKGzUML+xiOS4a0OmA6S/v8Q25AQ9sIHP0XX2S9yXW85OQFVNIZU2A51QsPKqFjJ6ks D+Pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=0He1CkES3Meiu1pokbnxcH74Z3pbtQUOYiV83n7NoDg=; b=twdz4dtJPVEpIGeGOz7aFCQtEnYoMlRpbZn7Fk1JsQJdZiNj00ZBuwwZci0dH1EWNE H/U5q+eLEijO6pqGeQWiUxROnUdGR+TNo+HAzgM0V18rgtzwTlo+eSHoJX7cjue1lU5H YghyCJKLbw7rZnVzQXjG7dak6qDIV4fyWgdXmVI/+h8ClF5puoFatbi0p/t5yO0WMFMZ 0VvFelF3iASviQ0gyXjk6hTs7NSCaO6u6H5qQCPAh7vLC+u8kp2cID3PevIyazl5d088 IO5Ko9UukJLoyBL0aUhKK6HHx1Km4ovpdpmJr/+Cyvsat2kuipCtJppi97WHA7AUZrpG 4xJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GAX6U5ZB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p26si2657012oto.240.2020.01.08.13.25.33; Wed, 08 Jan 2020 13:25:45 -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; dkim=pass header.i=@kernel.org header.s=default header.b=GAX6U5ZB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727328AbgAHVXu (ORCPT + 99 others); Wed, 8 Jan 2020 16:23:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:59692 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726836AbgAHVXt (ORCPT ); Wed, 8 Jan 2020 16:23:49 -0500 Received: from localhost (mobile-166-170-223-177.mycingular.net [166.170.223.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C99A3206DA; Wed, 8 Jan 2020 21:23:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578518629; bh=3o5eOcLo/avT4KVRkLtp/ebecyBmOIz2OoTMExZnZ9U=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=GAX6U5ZBSBhfL3of/JrrGOM3VkfXHC0Ss6T3n1cfux8OJShjKueO2kB2yRotSJ2JG cb/qlF+pkp5jeUvFR4uziYwmdoHfZyAFTpJviZDePo0wo7AHQNa59J4DlnuNq9uotN Yw8F3fAQ3mX05uPqYGK3D5g1xAVNsdzVmFzMwXB8= Date: Wed, 8 Jan 2020 15:23:47 -0600 From: Bjorn Helgaas To: Logan Gunthorpe Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Kelvin.Cao@microchip.com, Eric Pilmore , Doug Meyer Subject: Re: [PATCH 09/12] PCI/switchtec: Add gen4 support in struct flash_info_regs Message-ID: <20200108212347.GA207738@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200106190337.2428-10-logang@deltatee.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 06, 2020 at 12:03:34PM -0700, Logan Gunthorpe wrote: > From: Kelvin Cao > > Add a union with gen3 and gen4 flash_info structs. This does a lot more than add a union :) I think this looks reasonable, but I would like it even better if this and related patches could be split up a little bit differently: - Rename SWITCHTEC_CFG0_RUNNING to SWITCHTEC_GEN3_CFG0_RUNNING, etc (purely mechanical change, so trivial and obvious). - Add switchtec_gen and the tests where it's needed, but with only SWITCHTEC_GEN3 cases for now. - Refactor ioctl_flash_part_info() (still only supports GEN3). Maybe adds struct flash_info_regs and union, but only with gen3. - Add GEN4 support (patch basically contains only GEN4-related things and doesn't touch GEN3 things at all). Maybe it would still make sense to split the GEN4 support into multiple patches (as in this series), or maybe they could be squashed into a single GEN4 patch? - It seems like at least the aliasing quirk and the driver device ID update could/should be squashed since they contain the same constants. Bjorn