Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753899AbbGXKmo (ORCPT ); Fri, 24 Jul 2015 06:42:44 -0400 Received: from mail-bn1bon0061.outbound.protection.outlook.com ([157.56.111.61]:51776 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751550AbbGXKml convert rfc822-to-8bit (ORCPT ); Fri, 24 Jul 2015 06:42:41 -0400 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; gmail.com; dkim=none (message not signed) header.d=none; From: Ranjit Abhimanyu Waghmode To: Mark Brown CC: Mark Brown , Michal Simek , Soren Brinkmann , "zajec5@gmail.com" , "marex@denx.de" , "shijie.huang@intel.com" , "juhosg@openwrt.org" , "ben@decadent.org.uk" , "linux-mtd@lists.infradead.org" , "linux-spi@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Harini Katakam , Punnaiah Choudary Kalluri , "ran27jit@gmail.com" , "dwmw2@infradead.org" , "computersforpeace@gmail.com" Subject: RE: [RFC PATCH 0/2] spi: add dual parallel & stacked mode support in Zynq MPSoC GQSPI controller Thread-Topic: [RFC PATCH 0/2] spi: add dual parallel & stacked mode support in Zynq MPSoC GQSPI controller Thread-Index: AQHQukU049LhNwab9kGRuWMzGe3Kwp3arNKAgAHtGCD//5qIAIABiFkg//+TfYCAAj/tEIAK9VVA Date: Fri, 24 Jul 2015 10:42:35 +0000 Message-ID: <7CFCFE83B8145347A1D424EC939F1C3CA81D12@XAP-PVEXMBX01.xlnx.xilinx.com> References: <1436445895-25504-1-git-send-email-ranjit.waghmode@xilinx.com> <20150714164005.GE11162@sirena.org.uk> <7CFCFE83B8145347A1D424EC939F1C3CA7E53D@XAP-PVEXMBX01.xlnx.xilinx.com> <20150715160146.GS11162@sirena.org.uk> <7CFCFE83B8145347A1D424EC939F1C3CA7E758@XAP-PVEXMBX01.xlnx.xilinx.com> <20150716085739.GT11162@sirena.org.uk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.23.19.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-21700.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD053;1:LHVNIQ+gfdd9LubsqGGFcWlV4/C8kFb1RB4N4uhUNuJDsEDB1dfn+ump6UqaTue7xTLWJtHMcjDR3tMRIrqaAD3yRPg9wbmfAywnCBi5xKKxiq3qnEGZ/t1t2MHiZjL8jyfjFd63bN1Vc6bJ44goOYH24FaySOPGOQBAsaZllvErqYGk5QaQ9ZofdhwGsWEjAoKaLwNiCItI7jijN5U2QdBj+Ekzz+T9iHyHlZV5ZUqZUkg+yhOyqwp8XuiI/FTtZTrx2Vyw7Vq0hi4lhmhCUo+p31HFZScDQ1UJQma3ptKXXDrDhQbHkm12dUBLS+2h0btDuiQHGGP1zyaAuPY9o1Bquz2OAyIDV1daUG7yaG30iPWOsgQoeoGjeZ+OvvOqa7cynrg2epp7Vc04ITYhpvSzM2W6eSosIdQXwcXymVzJ9lTHkbrlWH+Nr8Xl3flO X-Forefront-Antispam-Report: CIP:149.199.60.83;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(438002)(189002)(199003)(5003600100002)(54356999)(46102003)(92566002)(6806004)(50986999)(55846006)(97756001)(87936001)(47776003)(63266004)(189998001)(46406003)(106466001)(62966003)(5001960100002)(110136002)(2656002)(77156002)(106116001)(2920100001)(76176999)(86362001)(23726002)(33656002)(5250100002)(2900100001)(102836002)(50466002)(93886004)(107986001)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:BL2FFO11HUB031;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11HUB031;2:t28KgBg3ToHyQcaC6pcWnH5+gLkglQynEwh5BtZe/N6avj3pqnrcBH7LogJwhAy+;3:FA9iI6fnFM8uWw9WnnHjsGXlgEE03L97ughL+HW8sd0FfQjw5NPUBnHxn/jzWVY8Z0xhAs5bofDD177DObVhbEkRfJSRAJljg6L+06uyRPORy++DN8TNGWOvIlmYUaAzKGSyC/kF6IP8y/ksRQ7iptn1SqCh9MxOlzNI5iQqNKaHeOQq4B7FYVXoduHWF+pcXGWWLMRmg+L6NAFAO5navuAni4PApaQLV6p9AJh64OM=;25:pzc6af5dm0quf22KTQEGU8EwS7yYXVvJ9hvYaMsXZg1gEgqvxox0fJoZZtdIWxUa3dkXZjcpSMjkbqUbtHuSQDMCrCnTQeUCVuQ4izIC+skKEiQyMm/AjdnaHaCPzQ9dJy0mjqmtqoQd6rv3QwLu3GnGiR7IC3wJhajbssM6T1weo/cbf4/gb2D1akSjjoEkc2a7mR3SgYUHTiVt/Sqh6FdmaciK2yUvHgv/72qfItt5lf0Pyfqnf4gYZ6hnjiJDEnHGCa0hKMvNOuGj+oYuKA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2FFO11HUB031; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11HUB031;20:V32rBFK6GOYWhFX2ySklK0SGc4HXnQtcYyRNXhKdDmhDPV5wg6KLaANthFwqsUoNpxcdxkqdmuKeEuksuJ19YJs+bE30cI6NpYUTyEsqH3QhLRWulJdvoYQWAyx3qp1UgbZZKlNHDLvEiF33U+qNgHwvQdq4PZgkuYyV0YxdOUz/UyJBF/jZu8tie77Rwe0ERPloJQdLJrJd0JS6FgZxlzxD1dpq9u10vov5/OU/jkL43uUbc6lhvm0pyUz4ael9H3FEHhLxMsVAEFsIJk5weCe41PjKpHke9bm5V0Vm1fXCPntsO2fxfMfu3j6zc8KlNxvVGSWtjmTw5TPTkL+KOUihzyL98Y3tW0bUKwwPlGinj54J/CTf69HPTjeG192pqK4kp5rRDmkgM6QI3b0pYKlULGccDplht/mXBfilSWiXuf5lRi+IPyecZdUp3rQx1dwCpuW9jLgtoKAQw9TaEZX2ZLg2FKLpKNa4v4l7NAXbPdxq4FG4ZMBUJAcJxoQT;4:y9EQHRYmP1viEvW2QrmVn09+Xilx8iUlJPWMDPbr/RW0IKd4hOhJCUiOlT8IVbrr2PNtgtyUPcPHdYWEQFjpbA2OFldwLEyY/umoTbg/0+stjRf3yOev+ZNrjI1RKe+78M/soE3z2BlzVuIIijfuBMloBSSFkcYTttbRAvqp1elIn/1EzgLC7JLDz5Ye/0cWXoRXE20FW9E8u0rD31ZoTF0QeBtqzPu1KGh1JqFmlLTthGT8hpteVsU3efoDapXeHY51PYf1TLP1x8k6dwQKjPBEa1HlwBMGCiEKJQ2rNdA= BL2FFO11HUB031: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BL2FFO11HUB031;BCL:0;PCL:0;RULEID:;SRVR:BL2FFO11HUB031; X-Forefront-PRVS: 0647963F84 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL2FFO11HUB031;23:oXVAGZmt+Sljmsepe1NlJ3hVAeFowQmbXtiqb2Bg?= =?us-ascii?Q?7p9Xu8XRjvlreIGppW/NWyz+HcqBkxzFCJUbcFj7oXHWXyaXZfNLfb6RxEHM?= =?us-ascii?Q?SSbGgIJxiV1GRq3GmQhh8mlnENkKkkMOIScQLpAXSQuwLcOkuR8pcYFF+NXQ?= =?us-ascii?Q?1mHcI8Mp+/ad5imB2oye6Nz5RpL5DFaacUMDCDiciZnAwHSiximhWLMp1kBB?= =?us-ascii?Q?mRYHPf4NBVihHv2mhAMgssI6uaj30Z8KUGGq9AvqXrnoQ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==;24:9y9jiHFj789KxMcUnmV52Qirxhb5mMDUNm7p/MyjS325oylOcCTfpHA3Tyjdh6yCx2nWh2JfJ+gKLz7w/1rpC6fDO1qGvcKDKYkMQxQnIhk= X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2015 10:42:39.6007 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2FFO11HUB031 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1779 Lines: 42 Hi Mark, > > > For an example take two flashes connected in stacked mode. > > > For user it doesn't matter whether how many flashes are really connected. > > > There will be situation like, single partition is spread across two > > > flashes > > (partition staring at the end of one flash and continued to the second > > flash). But it has to be shown contiguous to user. > > > In this scenario, I am not clear how MTD layer will handle the case. > > > It would be great if you could just put some light on it. > > > > That's something for the MTD layer or possibly even a layer above it > > to worry about - this situation is the same as we have with disks > > where we have md which combines other devices, if something similar is > > needed for flash we should use a similar pattern. To support the dual parallel mode in this controller, following minor things can be added to the driver. 1) Controller needs to know in which mode it is working, then it's obvious to set the appropriate flag for the same 2) There are more than one chip selects, so need to set the same And for supporting the same dual parallel mode, MTD layer may need to update for: 1) Adding TWO_FLASH support 2) Adding DATA_STRIPE support 3) For reading array size needs to be doubled. 4) Need to access even addresses. Basically address/2. So kindly suggest your view on the above request. Regards, Ranjit > > Kindly help in understanding, how can we represent the stacked mode and > parallel mode changes in MTD layer? > > Thanks & Regards, > Ranjit -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/