Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751524AbbHEFQm (ORCPT ); Wed, 5 Aug 2015 01:16:42 -0400 Received: from mail-bn1on0061.outbound.protection.outlook.com ([157.56.110.61]:36000 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750848AbbHEFQk convert rfc822-to-8bit (ORCPT ); Wed, 5 Aug 2015 01:16:40 -0400 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; gmail.com; dkim=none (message not signed) header.d=none; From: Ranjit Abhimanyu Waghmode To: Mark Brown CC: "dwmw2@infradead.org" , "computersforpeace@gmail.com" , Michal Simek , "Soren Brinkmann" , "zajec5@gmail.com" , "ben@decadent.org.uk" , "marex@denx.de" , "knut.wohlrab@de.bosch.com" , "juhosg@openwrt.org" , "beanhuo@micron.com" , "linux-mtd@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-spi@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Harini Katakam , Punnaiah Choudary Kalluri , "ran27jit@gmail.com" Subject: RE: [LINUX RFC 1/2] mtd: spi-nor: add dual parallel mode support Thread-Topic: [LINUX RFC 1/2] mtd: spi-nor: add dual parallel mode support Thread-Index: AQHQzcuJh81RJ1JM/kqj9TFBhy09jp3565KAgALvVeA= Date: Wed, 5 Aug 2015 05:01:15 +0000 Message-ID: <7CFCFE83B8145347A1D424EC939F1C3C01492420@XAP-PVEXMBX01.xlnx.xilinx.com> References: <1438592707-30713-1-git-send-email-ranjit.waghmode@xilinx.com> <1438592707-30713-2-git-send-email-ranjit.waghmode@xilinx.com> <20150803160829.GX20873@sirena.org.uk> In-Reply-To: <20150803160829.GX20873@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.154] 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-21722.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD022;1:w+0crsNZ3p8tQCd3D0O2c/B/5jmPMwR/KyjFCXklvin+zWasGawM4kFZVHbG3hxuu4GQSV7ljqdnocMgjSya2AFe2Ye0oEfowuCjoJ/84bKcvnMceg0YRL0lNEbYLhIquqcGNKHXd+hF1jL+KYIHI9kuVlFlYu27XTfaXsaZz5/1sGMbg5VR49217NtL5Hdx8srY5cK8vur4hXfTy8vAQL5rXdKo/wqhEXXzuiACqqyHFdzDThisWJGNw0/Sw2KxVvc99oBiVW9BjGODMqdA0c1lR7Q20pkZdB4xHNRJZg9IQNQrnMxknHufBSkX5MlR X-Forefront-Antispam-Report: CIP:149.199.60.100;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(438002)(199003)(13464003)(189002)(24454002)(377454003)(164054003)(46102003)(2920100001)(106116001)(2950100001)(2656002)(19580405001)(92566002)(189998001)(106466001)(19580395003)(6806004)(5003600100002)(86362001)(5250100002)(46406003)(50986999)(47776003)(110136002)(5001920100001)(76176999)(77156002)(62966003)(2900100001)(81156007)(102836002)(5001860100001)(87936001)(50466002)(5001960100002)(33656002)(64706001)(55846006)(97756001)(5001830100001)(54356999)(23726002)(4001540100001)(63266004)(107986001)(5001870100001)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:BL2FFO11HUB036;H:xsj-pvapsmtpgw02;FPR:;SPF:Pass;PTR:xapps1.xilinx.com,unknown-60-100.xilinx.com;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11HUB036;2:IhemHzARmf9lO5LTxGOmxGHALQn6WNSzduom8m/OcgruAvimmSin9sjtxymypaRr9DwNpjqHQY7ePz7uubUFqKfkcw6NJiiK6Ny36edia25jw/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5wjB6HH40fyb1EUjvCa6vG8l6e1tZrwaZNn935tUwIxgjeWEomG3eNOMM5tuDU+NZk+teqTRvG5q5HJw5gG6yukilKgiWSRFovCsCZYbEEzoqb+5KjfVEFPpaL3WiVKQMcTPNfO2PC;4:+WnqCrv/F8PAmOcbl8Hvl+2eFumV142LKE9koi4tSIYqCTp+vb8bFjgLkRCiHjZ3PdbHfZieh0vpNL+0Zgc/qI7iO+a1av81V5yJ13cd1wevPLi+QZ9sNDikgSXB+HiKPQ5TSCRaeX7mbbXA+WKjM/TsLmxAen0LeCZAhCo9v35OHWElhVrhuUtJWbAQxJdPP3oFr3xHGqMdt+Di391qxvLO+U2il/E23Gi+R1rscc2Lp7owRejtyr/CFmrjeffAjyyLE2ZbRg5pFkFDXTZOKeRTwAULvlXaF17jfmau2Dw= 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:BL2FFO11HUB036;BCL:0;PCL:0;RULEID:;SRVR:BL2FFO11HUB036; X-Forefront-PRVS: 06592CCE58 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL2FFO11HUB036;23:mlvdKk+QT9+L1da2PTHk6FS8eB3NeFf4nIXqLrEH?= =?us-ascii?Q?3HWKTM2O81NAnzYvDpR5O+1BCaxFeqOMC3vILHY4eSs/gf3lOXz5wajElJaM?= =?us-ascii?Q?YYwKpKER5+Wb6wfuTJjaXUlBXkO3iwXG2y6uR9hmHI1VgVmZ0XCd1l0kHxHh?= =?us-ascii?Q?r/8lsBwwmKjJmFmtJKo/ok9FGXONi/6p1TctIyJ0uynPEMytOhH7qEyFRaMj?= =?us-ascii?Q?PK8hB7cdeVeVnLfAgX1y101wMegstnjfL7r69B48z7gTGBocYbRgs9tydxnX?= =?us-ascii?Q?rPrGiBXJJ5LnKwqXOzb9e0yCALz8uDlZL7pl4Wq9x7WVgo3XckSDeX4lkqOL?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2TjIb/nntsSHCSB0m4+Lcm/?= =?us-ascii?Q?flOHkN2Lhu9SOvnWLrXdVQPZbHmx7GmxufJq8KIcXrcSxaqq97Ib8Gnu8UBK?= =?us-ascii?Q?H987ugIGDv5wv4ZKMP4SV0hbQ39B+nC9l7FW4G7aWSVH?= X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11HUB036;5:jo3DqWiCULRqAblfp8Fuj8/Fs27o1TOTF0wsXkvL9t6Xf5vwLCRLMce++cflDQldbbQ39tFM4nrgZgHM5/p9wmsg+q54xCSBblyyFmR+D+xgcvEwuQwP8UZ5qEqzRKqZWQvoMekpdQ8c7HxlNT/YBA==;24:49dsSSSkpIkmSjgDTBsGBMDR6EVuh/S/fSjio1EGsHV3s7wQbpLAeeK01Dhw7wJ0UQW3TQPeQWTHuCsVWPUm6LUSuzgG0bXk0IdWSgdvviY= X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2015 05:01:19.9708 (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.100];Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2FFO11HUB036 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2830 Lines: 66 Hi Mark, > -----Original Message----- > From: Mark Brown [mailto:broonie@kernel.org] > Sent: Monday, August 03, 2015 9:38 PM > To: Ranjit Abhimanyu Waghmode > Cc: dwmw2@infradead.org; computersforpeace@gmail.com; Michal Simek; > Soren Brinkmann; zajec5@gmail.com; ben@decadent.org.uk; marex@denx.de; > b32955@freescale.com; knut.wohlrab@de.bosch.com; juhosg@openwrt.org; > beanhuo@micron.com; linux-mtd@lists.infradead.org; linux- > kernel@vger.kernel.org; linux-spi@vger.kernel.org; linux-arm- > kernel@lists.infradead.org; Harini Katakam; Punnaiah Choudary Kalluri; Ranjit > Abhimanyu Waghmode; ran27jit@gmail.com > Subject: Re: [LINUX RFC 1/2] mtd: spi-nor: add dual parallel mode support > > On Mon, Aug 03, 2015 at 02:35:06PM +0530, Ranjit Waghmode wrote: > > > drivers/mtd/devices/m25p80.c | 1 + > > drivers/mtd/spi-nor/spi-nor.c | 92 ++++++++++++++++++++++++++++++++++-- > ------- > > include/linux/mtd/spi-nor.h | 3 ++ > > include/linux/spi/spi.h | 2 + > > 4 files changed, 79 insertions(+), 19 deletions(-) > > You need to at least split this into two patches, one adding a new SPI interface > and another using it in MTD. Probably the MTD core and driver changes need > splitting too. Please see SubmittingPatches for discussion of splitting things. > I will split and resend the same. > > diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index > > d673072..8dec349 100644 > > --- a/include/linux/spi/spi.h > > +++ b/include/linux/spi/spi.h > > @@ -355,6 +355,8 @@ struct spi_master { > > #define SPI_MASTER_NO_TX BIT(2) /* can't do buffer write */ > > #define SPI_MASTER_MUST_RX BIT(3) /* requires rx */ > > #define SPI_MASTER_MUST_TX BIT(4) /* requires tx */ > > +#define SPI_MASTER_DATA_STRIPE BIT(7) /* support > data stripe */ > > +#define SPI_MASTER_BOTH_CS BIT(8) /* enable both > chips */ > > This is really not adequate description for a new API, I can't tell what "data > stripe" is supposed to mean at all and I've got at best a vague idea what "both > chips" really means. This means other developers won't be able to tell how to > use or implement these flags either, and it means I can't really review this. You > need to provide more information here, both in the code and in the commit > message. > I'm sorry about that. I have added description in cover letter, but will add more information about the same here too. > I'd also expect some handling in the core for these, for example error handling if > they can't be supported. Will update and send you the updated version. Thanks, 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/