Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4111169ybl; Tue, 20 Aug 2019 07:11:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxImMMvPzWCeWwpUDQhYD6+81Ha2wk6sm1hLXp8IqM8oVy3khOaiePiFga8zD7LtrXQ1znv X-Received: by 2002:aa7:9e0a:: with SMTP id y10mr29875519pfq.93.1566310260258; Tue, 20 Aug 2019 07:11:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566310260; cv=none; d=google.com; s=arc-20160816; b=aOBkOxtmSTzw5BuChh+PUccUM7CFVonFThrZ0XE7ti5H+nfIeVossVCBJ8gT11UuQ4 y1Hm/hC7yS9cI5o12uOGe9iRGoTKvfjg170l0V9hdgw2yOFairkDB6tSDyvqq4O9Vfqi BTofda7gfWkC3tGHSDzKcs9OX+1KEWW87LgOwPUXytD5WiyDs8+TPAz1YE/V8+LYaDju hbVfO1dX0S34XxQg55nQ1EkFV0fRi/6kP8npqYjYGfLrGbPedQMWG3M+iigNIq4ib+zx iqbea+MO+SRDCodMJhjTYfs1V1cGOpreajReRK2/yzbu6QhhGvPGJ9xlOYIIiXPpH7Qk oiCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=3Ri6c3YBIqmLetSkJjst+tZv1+cy1Tbd2JpNVOJ+sZ8=; b=yfw9/+sptD4ZST14yAl7Ut2a8j/2e2mlpOgtahtgq68EHn1m/uQJ1wzpV+RisBPl7X QoJKZJFti1PsAckrsNYr42qyka0YdeJcFAbplYpCOqJOuaDF257B4Es+jbP0qKrrkmBI 6YTlPGIF/KgVYZU+8EtX3OpJrtwHkbJQCuFeHNWpx2bTd7/pVgEmFGohjIfjbeSrHECN sjTJJ8jVYAuOrodEgcjzZCF23iYJnxaeHo2HzC4ndNMSTEevc948Ld1EGxMdtRVTsEe9 JFkbbvBN0sWeubM0dKGGf8Hj8ufF/AU5hWZkYPEEzUlFOBfuFYtMzuf22+iGD4RwK9pf DANg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z186si12252187pgd.162.2019.08.20.07.10.44; Tue, 20 Aug 2019 07:11:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730113AbfHTOJd (ORCPT + 99 others); Tue, 20 Aug 2019 10:09:33 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:4736 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729155AbfHTOJc (ORCPT ); Tue, 20 Aug 2019 10:09:32 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 8ED62CBA83DCFAA8EE97; Tue, 20 Aug 2019 22:09:29 +0800 (CST) Received: from [127.0.0.1] (10.202.227.238) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Tue, 20 Aug 2019 22:09:23 +0800 Subject: Re: [PATCH] docs: mtd: Update spi nor reference driver To: Vignesh Raghavendra , Schrempf Frieder , "corbet@lwn.net" , "mchehab+samsung@kernel.org" , "linux-mtd@lists.infradead.org" References: <1565107583-68506-1-git-send-email-john.garry@huawei.com> <6c4bb892-6cf5-af46-3ace-b333fd47ef14@huawei.com> <9b074db7-b95d-a081-2fba-7b2b82997332@kontron.de> CC: "linux-kernel@vger.kernel.org" , "linux-doc@vger.kernel.org" , "marek.vasut@gmail.com" , "tudor.ambarus@microchip.com" , "broonie@kernel.org" , "miquel.raynal@bootlin.com" , "richard@nod.at" , wanghuiqiang From: John Garry Message-ID: Date: Tue, 20 Aug 2019 15:09:15 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.238] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/08/2019 05:39, Vignesh Raghavendra wrote: > Hi, > > On 16/08/19 3:50 PM, John Garry wrote: >> On 06/08/2019 17:40, Schrempf Frieder wrote: > [...] >> >> Hi, >> >> Could someone kindly advise on the following: >> Hi Vignesh, >> I am looking at ACPI support only for an mtd spi nor driver we're >> targeting for mainline support. >> > > If its a new driver, please add it under drivers/spi implementing SPI > MEM framework. > There are few drivers under drivers/spi that can be used as example. > (Search for "spi_mem_ops" Ok, fine. I note that in doing this I would still be using the spi nor framework indirectly through the m25p80 driver. >> So for the host, I could use a proprietary HID in the DSDT for matching >> in the kernel driver. >> >> About the child spi flash devices, is the recommendation to just use >> PRP0001 HID and "jedec,spi-nor" compatible? >> > > I am not quite familiar with ACPI systems, but child flash device should > use "jedec,spi-nor" as compatible. Right, so to use SPI MEM framework, it looks like I will have to use PRP0001 and "jedec,spi-nor" as compatible. My reluctance in using PRP0001 and compatible "jedec,spi-nor" is how other OS can understand this. All the best, John > > Regards > Vignesh > >> thanks, >> John >> >>