Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2289422imu; Wed, 21 Nov 2018 09:19:08 -0800 (PST) X-Google-Smtp-Source: AFSGD/Un2iiDtaeTiW2GdJRpWeaVEF3lkTQfLq0uUaZow6HXyzh9Na+YkBNUZ34Gk0Z9x4m5/P8r X-Received: by 2002:a63:2744:: with SMTP id n65mr6703822pgn.65.1542820748111; Wed, 21 Nov 2018 09:19:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542820748; cv=none; d=google.com; s=arc-20160816; b=u58C75wJhdosVorf8AHg8IqBvzReb+EcLMrK8G2rtASgqZpOfG2B6jUj/2YnKzf3L1 Zrb4INFmXMWcMdK6f6pYP9+QTTdj4F04jtlTtvAjHVBpbCLeOimyGDeIy90tmHShd4ZA sXk3hzVKENUA/TygCqIDF10PoH1Utqzegqwbm/QBX3mss1k6H7sDZ9AJgtABvQSIK+EK YMYJVP60Rva1F8RdPxhIYRZ8k2rA20F1U449cvp9g5fT+/LENV72zfrqrgDrw7KIUCMP GigwsLXU7GRLsXfc8lZ+6BPQHhyY8fxpF1xm3scrvDa7gyJ1ahEYKGxnLmFgsZ0uL3TL egOQ== 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:references:message-id:subject:cc :to:from:date; bh=ngvPueYg1kCCaEOA6Zp4FRoE1Q3eprvdEDY78N7n7y4=; b=IURXYMENFtTmwHQCIPpAEOR9aoqTdYnvnk2w6nhYoqwJdHN3uIkgyvJfu02VJdpkB7 p2iioArd8XWuLUbvxL/IWOzt+aFSVH4rpB/p3V7zDbxtwF62Lr1Kwmdbsqri0hFelGhq OVuAsmrPAb6BFukGSgLFeMRBmZWo9v7fb2pdoW6TUd4QtjPnJROP+3VLg8P7uaXPS/B+ IEmlTPcVEOQQoylK43fUt1AY/0Lk91Ob90DrW4jf+GVKF8OqF5k0iGMY/C0/HkzlBVHb 60pIiqUx3j1j1N5hmzjH4B/QPyr16fTgKJ15Y40O7kEjRnH9F3AXGQ8s5EwRLDcdd0u1 MCyg== 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 20si5805630pgt.469.2018.11.21.09.18.45; Wed, 21 Nov 2018 09:19:08 -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 S1730705AbeKVAwJ (ORCPT + 99 others); Wed, 21 Nov 2018 19:52:09 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:51212 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727723AbeKVAwI (ORCPT ); Wed, 21 Nov 2018 19:52:08 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DAB3E22F8; Wed, 21 Nov 2018 06:17:32 -0800 (PST) Received: from e107981-ln.cambridge.arm.com (e107981-ln.cambridge.arm.com [10.1.197.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E974A3F575; Wed, 21 Nov 2018 06:17:30 -0800 (PST) Date: Wed, 21 Nov 2018 14:17:25 +0000 From: Lorenzo Pieralisi To: Leonard Crestez Cc: "stefan@agner.ch" , Trent Piepho , Richard Zhu , "linux-kernel@vger.kernel.org" , "jingoohan1@gmail.com" , "gustavo.pimentel@synopsys.com" , "andrew.smirnov@gmail.com" , "linux-pci@vger.kernel.org" , "l.stach@pengutronix.de" , "bhelgaas@google.com" Subject: Re: [PATCH v3 2/2] PCI: imx6: limit DBI register length Message-ID: <20181121141725.GA24537@e107981-ln.cambridge.arm.com> References: <20181120165626.26424-1-stefan@agner.ch> <20181120165626.26424-2-stefan@agner.ch> <581b9548043d5276f6685f534386180fd0673a9a.camel@nxp.com> <1542741198.30311.608.camel@impinj.com> <268e109e1c6b309454bd5a313078894c@agner.ch> <1542749302.30311.624.camel@impinj.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 21, 2018 at 01:47:05PM +0000, Leonard Crestez wrote: > On 11/20/2018 11:28 PM, Trent Piepho wrote: > > On Tue, 2018-11-20 at 21:42 +0100, Stefan Agner wrote: > >> On 20.11.2018 20:13, Trent Piepho wrote: > > >>> It also seems to me that this doesn't need to be in the internal pci > >>> config access functions. The driver shouldn't be reading registers > >>> that don't exist anyway. It's really about trying to fix sysfs access > >>> to registers that don't exist. So maybe it should be done there. > >> > >> That was my first approach, see: > > > > Yes, but that just used the pci device id which applies to every IMX > > design. > > > > It's also not totally correct, as it seems real registers after 0x200 > > do work on imx6, and that would prevent access to them. > > I see that Lorenzo already accepted the patch in pci/dwc: > > https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/pci.git/commit/?h=pci/dwc&id=f14eaec153aaebbe940ddd21e4198cc2abc927c2 > > My tests show that this series breaks pci cards on 6qdl and I think it > should be reverted until a fix is found. Are you OK with this? I will drop the patches from the PCI queue. Lorenzo