Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753527AbcDRLu6 (ORCPT ); Mon, 18 Apr 2016 07:50:58 -0400 Received: from mail-db3on0119.outbound.protection.outlook.com ([157.55.234.119]:35280 "EHLO emea01-db3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752857AbcDRLuz (ORCPT ); Mon, 18 Apr 2016 07:50:55 -0400 X-Greylist: delayed 1057 seconds by postgrey-1.27 at vger.kernel.org; Mon, 18 Apr 2016 07:50:54 EDT Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=toradex.com; From: Bhuvanchandra DV To: CC: , , , , Bhuvanchandra DV Subject: [RFC 0/2] sysfs new_id file support for spidev Date: Mon, 18 Apr 2016 16:48:26 +0530 Message-ID: <1460978308-8062-1-git-send-email-bhuvanchandra.dv@toradex.com> X-Mailer: git-send-email 2.7.3 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.115.225.206] X-ClientProxiedBy: HKXPR03CA0066.apcprd03.prod.outlook.com (10.163.104.24) To AMSPR05MB262.eurprd05.prod.outlook.com (10.242.95.19) X-MS-Office365-Filtering-Correlation-Id: cbacb334-69cb-42c6-7408-08d3677b3b98 X-Microsoft-Exchange-Diagnostics: 1;AMSPR05MB262;2:bFqqh2mFyjl1o5rdBbDxu7MyTxVwZYg1bVGbgv/qg66jwHjPSLYVm5StZU3q50VGyFoOV2aRxySRv4e4xCDllOD3XlKgHqwXRtzU2xKjnhQLvO+aMU3DDFvN58fRW0vfhZQtMO5D+mpJP5/PWn2QJfIeMO9ifOMi2HaEGXV25JsU2Cd2RRDTvPvfnWDZJZEI;3:qc4kiCf/40W5gpRxZojoWqrMFS7n3o6SuCdzmkDM+ysuwt+XH5fKdpZX9sJHqjsEJyuVQWoLkj230+0YG3PqAnyaJL114qJiWpBdzKSHQ8rbOUxq0/K6Dr8p0byFrIcg X-Microsoft-Antispam: Uri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W/r2oFv209Tx1a35JUnAjaI9MOU9QOhZRBZUAIsqIEc8abg==;4:dvN5pQ6qGo0UBLolXgVP5E09PepdCNPLgKPJt1JrpZEsBB6tLdM1VVpIQAzwbCqNQp7p7UGJ3kqZs4WGnjTZCp0ULV3Ra6vPH13rbn/MgNUCEjWESUwa+nOI5p4SeVQ/8EN4kpsjC5STzYDob+aJUbNSEgTFloEDZgU70iA0Z94e0MOHSyHK2q2HfyP9Xw/0VkUF3rIdT9QfOW9Je8c6iBHJMnDF/vrI263rLsl9m9x1Nsk+sRqzGCKILd+9PbTyIYlFLCLAaiZSC7VI8QwwWuoGhc9KQslmCHb/OUzUqbWKpqRKnFueURdYv116gB7TrImL5l9ttpQNuUAB0kzvlqQJmMPtN4TSsawZqM99yTq3ImNGOO6nd/M6EN8C0qN/0C3O5ge36C5SO8ffhjwYaQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(9101521026)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046);SRVR:AMSPR05MB262;BCL:0;PCL:0;RULEID:;SRVR:AMSPR05MB262; X-Forefront-PRVS: 0916FC3A18 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(77096005)(586003)(92566002)(189998001)(36756003)(47776003)(229853001)(4326007)(2351001)(66066001)(3846002)(6116002)(1096002)(50986999)(107886002)(110136002)(86362001)(33646002)(2906002)(53416004)(50466002)(81166005)(48376002)(42186005)(50226001)(5008740100001)(4001430100002);DIR:OUT;SFP:1102;SCL:1;SRVR:AMSPR05MB262;H:linuxdev-in.toradex.int;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;AMSPR05MB262;23:5u1O6KG624cV9QVHs8fZTzeJ/KwDJlBki4gWmi86W0eXIMzJZv52DegdZLBli+KFrlGR9tqOT0isRu6aFKmWXBko1iNVuJNnlBTqwX86lh39V8vG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bC1PLa7MmZykyVKPY9svb2LlYyc1U7g/zSulyF2rNm++I6RgY0zg3zD8inx4zEeLLJgIR5kpo/1gTjyBJZdh8EV7tghKV6PSiF9BIMh0bfk58MxLgCuS3luHhFs5UaEfMrsXRNi5FOOsDsAQNnropnuVJO8HfrlSnKpbYhbSF01nbU1paFkFoU3TQ2V8QMN3Y= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2016 11:18:53.4731 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AMSPR05MB262 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 619 Lines: 16 This patchset adds support for loading spidev via sysfs new_id file. Any comments/suggestions welcome! Bhuvanchandra DV (2): spi: spidev: Use 'new_id' sysfs file for enabling spidev spi core: Add new sysfs 'num_chipselect' file Documentation/ABI/testing/sysfs-bus-spi-spidev | 8 +++ Documentation/spi/spi-summary | 3 ++ drivers/spi/spi.c | 23 ++++++++ drivers/spi/spidev.c | 75 +++++++++++++++++++++++--- 4 files changed, 103 insertions(+), 6 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-bus-spi-spidev -- 2.7.3