Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754536AbcDTN1m (ORCPT ); Wed, 20 Apr 2016 09:27:42 -0400 Received: from mail-db5eur01on0101.outbound.protection.outlook.com ([104.47.2.101]:52547 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752463AbcDTN1k (ORCPT ); Wed, 20 Apr 2016 09:27:40 -0400 X-Greylist: delayed 4414 seconds by postgrey-1.27 at vger.kernel.org; Wed, 20 Apr 2016 09:27:39 EDT Authentication-Results: toradex.com; dkim=none (message not signed) header.d=none;toradex.com; dmarc=none action=none header.from=toradex.com; Reply-To: Subject: Re: [RFC 1/2] spi: spidev: Use 'new_id' sysfs file for enabling spidev References: <1460978308-8062-1-git-send-email-bhuvanchandra.dv@toradex.com> <1460978308-8062-2-git-send-email-bhuvanchandra.dv@toradex.com> <20160418130126.GC3217@sirena.org.uk> <5717726C.2090302@toradex.com> <20160420121704.GI3217@sirena.org.uk> To: Mark Brown CC: , , , , Stefan Agner , Bhuvanchandra From: Bhuvanchandra DV Organization: Toradex Message-ID: <57177FEF.8080906@toradex.com> Date: Wed, 20 Apr 2016 18:41:11 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20160420121704.GI3217@sirena.org.uk> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [115.115.225.206] X-ClientProxiedBy: SG2PR03CA0020.apcprd03.prod.outlook.com (2a01:111:e400:b407::30) To AM3PR05MB257.eurprd05.prod.outlook.com (2a01:111:e400:8812::14) X-MS-Office365-Filtering-Correlation-Id: aa0e63b1-110e-4a9e-14b6-08d3691d4dbf X-Microsoft-Exchange-Diagnostics: 1;AM3PR05MB257;2:R5nzWrLo6beRL8PkKxIs2R8wqYF1DJtYfs1ckYSm29CQuw01chqbw50yPUFp5b66uiYHJmxH1vMzQ9iuGnFSRxXhxmRejTdMDwefqxnBfeP8VOE9iHRt8bMFWdwY+fKEAY2buNJhJrkFsxnxzBsIX+URyl4mA+NfOgG+QHP4Z+nnsia9YrJexiysCq60gjbx;3:o4vksPnnlWu/3o2bQ6MnBybwOS829cZQu5q3s0wXPc90X99aRR7qjxsRHxTwMGbv/H0gQwlekMygUpGe/b320liYAmgRSwXfrU0uom3B4mlokXIgMjD2NoHP43gLXTbo;25:q8p3b1nNXUuclezLyjjrBoJXs0BzL0EybrYme28+KcccyBc8LuguObgriansIpe6eyL6J7ealh040wPTkKMexeUrF8892Yei4LErvfKtspoMwKgNzrq6uwicDblxiXctS71CtXmPRIRr1nHuTJk2I1P3wAh0zJPzYWnpGnfavyoDixfMP66wFd+JgIVtCSz10C9doS949VTdQFcpNOEzfMeXFht6P2wdPM0I78gFd2fZ1zp1mtf6WCZhpL4XNNGnezw1NJeftAB50UG5E35WS78q83zBfWctGD+E1IoX6iJG6dGO9QJBVhbMqe1w4eR4uzFsmL+n4JOJLbNmjLMdFg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM3PR05MB257; X-Microsoft-Exchange-Diagnostics: 1;AM3PR05MB257;20:pSypf6oNcmJPCLsXVGWErNUfjBZhDcX644L4yjVU/G6BgL8jLyoR1zLV6sb9zeV5riL0fZVtkdQ18Xbn2rajmgGYXWNCrXL75FxzOs7DBvae2MZqn+NkXpfBvPKqWDx8kQCAxd4YdJTTQ7BSuSX8YLEPjl+JMska3t/P1950XX+6Rie8dunMmKVmt0gBA4JdWcC4PtLvth+DiKDeAGn7WW4cP9bkW6gNZRWPU0drK3vKMPEjWOXKoiF3/h+h5QTjomibi5LP0kma3oxxpo5L2gGdPczb0qwI4TR07qw89ZFJ7qE89vreacOyNfsbHdXpLwGqU2z+xor3mMiBu02KWg==;4:iCpL5LCaj+6jHxq3QBVfkqtyxBSjuVPSGMS+2zAZbHKanACuKU96lnLwJnvpx9UEB9k0vyo0BrwGHDLZ6rO0C+IbV3nIoqgZshuPWDug0z3q4JHL8v3FKnZygMTseg/YRpDG3lUzFfHt5eJl4mhIpeX6ZVAuB0GAnT4qebp9XCcbJJp8nRsk90GmmEw41fNPlf82Vs2+rTSuDtxHjuPe2GsvbMYi05TJZAAvxHBj5mZGcAKuz87Ifv7T1NbD+oFvL3/XRJ5gNBA+Gj3IOxyq8wUNzB+2EIHY31AtIg6iCDBBP9F7w4Ng37iqgCDV7SxzvWHkhKFVA7JIzZCHFnb1OzQFwtQuR6biMsbzlmMt3WIbSTe7iCPdSmR6yi9qctHDLQ0cNAx1p/O0cyXz9hvXRg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(9101521026)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001);SRVR:AM3PR05MB257;BCL:0;PCL:0;RULEID:;SRVR:AM3PR05MB257; X-Forefront-PRVS: 0918748D70 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(6049001)(377454003)(24454002)(4001430100002)(6116002)(3846002)(50466002)(4001350100001)(586003)(189998001)(107886002)(36756003)(77096005)(230700001)(2950100001)(110136002)(2906002)(65816999)(43066003)(65806001)(64126003)(1096002)(93886004)(86362001)(33656002)(81166005)(65956001)(66066001)(5004730100002)(42186005)(5008740100001)(53806999)(3450700001)(4326007)(76176999)(23746002)(47776003)(54356999)(50986999)(83506001)(80316001)(87266999);DIR:OUT;SFP:1102;SCL:1;SRVR:AM3PR05MB257;H:[10.18.0.138];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;AM3PR05MB257;23:bM/XbsbYix69eZpNZsGeBaDTjxfddMZpLFh4oP?= =?Windows-1252?Q?7X4nObbRPd7PzAg2+hOvDfmEQ5cAqu72Re4AlmUrZHP8F7ProCVMAqcv?= =?Windows-1252?Q?9xjzFxAc2dkzmuY6WUy1c7D8pAz0Cc5zrs9lDyxiNiKRuTGlo7s7BktW?= =?Windows-1252?Q?XpzwB08sIpzdTc2B70wLOUYEk7hfXAdGpRiA71IKg3jOKc6PyHuM7ABC?= =?Windows-1252?Q?7pW3l40TWc4IWyiW9VxNk0dhRjnVCViEnerbMUMCB7bBqGKfnqDAYTXy?= =?Windows-1252?Q?sastXennSN4zciAyVHe9A4lc3LPkk7vOS13DTUsLkjiQ+QIgIshTXPEb?= =?Windows-1252?Q?3iIWxOgbNp7/+Bj6S449MOo5OaA7Nn88LFS7GrH2SeFTX09tlPDBmAh1?= =?Windows-1252?Q?gnjMQz1ByUjjdzi8iD/b6ejykuz7J9E6uTbV5uIvOgAZRRiiooWodOHi?= =?Windows-1252?Q?urdu4EIn+dxvseM13a9872Pe6r08zEhdeIYKmcrg1FYFwhXekkr02uxh?= =?Windows-1252?Q?IbHfr+Yy1ZW2frhQIMmidqHe7wl9jI5gi3M3GyC6nlNLrn+Uy0U3jsYs?= =?Windows-1252?Q?5rTyoIuB3KyR7e7Jxu8C/OWdSbDPWlr45egX8CTjsusHnmTF1bgrsiic?= =?Windows-1252?Q?sW5HhpOSinyq5O3iwfO5zZKyUaklifzIQnjDCMljp1NMChHzcUaHGMcu?= =?Windows-1252?Q?xpoC+loVVaLXwxLTYqfPguCM2ooeAL0aDm54+GU6sH+JToYhKcfQXGca?= =?Windows-1252?Q?LV5v9X8gPXZ5riRVmuk9NBVqfDsmNEKTOgS3CtLQb2XNKn4nc8KSUfjn?= =?Windows-1252?Q?RyOGz4jQoTkM+8OrJrHvADuUGqJP55QlopLG9jbKCUk+cJD/MnqRtZeS?= =?Windows-1252?Q?Q43gAL5z/aVW+J934f0z8W2t3+fPhqdepxe+jAUZk0VGBxzsk2V8uAuQ?= =?Windows-1252?Q?8Dx+7hckFIAN1VrIQk68dfd6rTIyQ8aLbWr6br5engTwq75JM5sIxcEO?= =?Windows-1252?Q?BerSVOlpqJ9SjThG6IvZ38PMbcBM1eDwEJI11tn3mlzOShVnVggl/ZLd?= =?Windows-1252?Q?U1nd3TL1kvTidY1AFy+1ARc28ERb/DxR6DDEsCMQibGXI1YFeUsvn8gw?= =?Windows-1252?Q?8cGCt/iTGVVJ4DvbMeSlS8sqoG9BdF+T/MB98piuqWkcaVyyXZu44ayz?= =?Windows-1252?Q?qjZDZXR2oWEGdkZeNtg7hO56+Hs9E61eILRJt93neQ1wGqw8hI68/lOI?= =?Windows-1252?Q?XAHG7F7t80rSxrPQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;AM3PR05MB257;5:AF7cEEF6/EnNoqPaZ2uLYJac/8AZsI91FIjBDj8bYhVXlHIc1CuGPoFT27dEfDzA7namsQ2a2G30yfZ34dnrO8Dx4hAcECPKHY+MWoZECrZ9EhTr9l4Q8L1iv27l6bdjWL/ooeqfXzBbRu602irLiUX6KNYTlI7XxO5jcwHgPMbTlh73fKu4PiJV/jh9Sn4k;24:37Naa1NqULrF+td81ma9iMkZFe6a5DO5PrlKvRKnWWG+w9VBPZNuXeKHgd/5goGNtRLRqys3zGcP5cjYGKJOzMfdY48H0JDda2rvqi0CZFc=;7:3sb39wEJLKqPCcuCJAen73O8fOrCJthnmmqn8XSVkDM6bwN39BQILMJJMlmQADZwYwYsy0p7MQjjo4E3ykT6X2zI+/uPUF31yL2UMP76kziEZMJs1/rFXBjGNkADgXXJMqVCYpDcpFuV4TP3Gwt/d6EHYht7/vP1GV5yA5VsuZl3FFsy2B1W/TubwHpJLVwkPptmnHQ17j0M2OVKvSnp4DSPOVlB6b5pBsQcUvDc0WI= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2016 13:11:33.6676 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR05MB257 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1161 Lines: 26 On 04/20/2016 05:47 PM, Mark Brown wrote: > On Wed, Apr 20, 2016 at 05:43:32PM +0530, Bhuvanchandra DV wrote: > >> SPI drivers bind to the device as configured in DT, but in case of >> spidev(non DT approach) the device is not available in hand to bind the >> driver. So tried this approach of creating the device and then bind spidev. >> I agree this is not a standard way we bind SPI devices. With out a device >> available, seems it is not possible to bind spidev in non DT approach. >> Please correct me if i'm wrong. > > The DT should describe the hardware so the DT should describe whatever > device is connected to the spidev, what you're trying to do is have > spidev bind to these new compatible strings. The device which i was pointing earlier is the SPI master device(spiB.C) not the external h/w device interfaced to it. Yes, DT will describe the h/w interfaced on SPI master device(spiB.C). In case of spidev we are not supposed to describe in DT as it is not a real h/w. The intention of this patchset is to completely avoid spidev in DT and load it via sysfs new_id file for selected SPI master device(spiB.C). > -- Best regards, Bhuvan