From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755420Ab1BXAHO (ORCPT ); Wed, 23 Feb 2011 19:07:14 -0500 Received: from smtp1.linux-foundation.org ([140.211.169.13]:46038 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753676Ab1BXAHM (ORCPT ); Wed, 23 Feb 2011 19:07:12 -0500 Date: Wed, 23 Feb 2011 16:06:32 -0800 From: Andrew Morton To: Pratyush Anand Cc: , , , , , , , Subject: Re: [PATCH V5 Resend] ST SPEAr: PCIE gadget suppport Message-Id: <20110223160632.0b21c550.akpm@linux-foundation.org> In-Reply-To: <1298276455-23989-1-git-send-email-pratyush.anand@st.com> References: <1298276455-23989-1-git-send-email-pratyush.anand@st.com> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 21 Feb 2011 13:50:55 +0530 Pratyush Anand wrote: > This is a configurable gadget. can be configured by configfs interface. Any > IP available at PCIE bus can be programmed to be used by host > controller.It supoorts both INTX and MSI. > By default, gadget is configured for INTX and SYSRAM1 is mapped to BAR0 > with size 0x1000 > > Changes since V4: > - All documentation related comments incorporated > > Changes since V3: > - support for multiple instances of such device ^^ This doesn't seem to agree with the documentation. > ... > > --- /dev/null > +++ b/Documentation/ABI/testing/configfs-spear-pcie-gadget > @@ -0,0 +1,30 @@ > +What: /config/pcie-gadget > +Date: Feb 2011 > +KernelVersion: 2.6.37 > +Contact: Pratyush Anand > +Description: > + > + Interface is used to configure selected dual mode PCIe controller > + as device and then program its various registers to configure it > + as a particular device type. > + This interfaces can be used to show spear's PCIe device capability. > + > + Nodes are only visible when configfs is mounted. To mount configfs > + in /config directory use: > + # mount -t configfs none /config/ > + > + /config/pcie-gadget/ > + link ... used to enable ltssm and read its status. > + int_type ...used to configure and read type of supported > + interrupt > + no_of_msi ... used to configure number of MSI vector needed and > + to read no of MSI granted. > + inta ... write 1 to assert INTA and 0 to de-assert. > + send_msi ... write MSI vector to be sent. > + vendor_id ... used to write and read vendor id (hex) > + device_id ... used to write and read device id (hex) > + bar0_size ... used to write and read bar0_size > + bar0_address ... used to write and read bar0 mapped area in hex. > + bar0_rw_offset ... used to write and read offset of bar0 where > + bar0_data will be written or read. > + bar0_data ... used to write and read data at bar0_rw_offset. What's the configfs naming scheme for the second and later devices?