Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2158890pxa; Mon, 24 Aug 2020 06:54:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxutcxvhNohuejui9WSmgJZEk9uOPckK8GTgtjFtQglJRmoEbsY4gCfb7G0rPc8lgbYiQiZ X-Received: by 2002:a17:907:7094:: with SMTP id yj20mr5547320ejb.471.1598277279750; Mon, 24 Aug 2020 06:54:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598277279; cv=none; d=google.com; s=arc-20160816; b=ccT6JQLkAidZOPnBfxxNB1OjCNI+RVkOw+z26QGpsMFjgYKYBsa58lDm9XC7pcLfe0 9DBU9XkyOqtAF32g85u9sxqu6gVOwHuXk/jZ9fv320lJDD/pLq/m9rR+nKwESnAVCTbb 91M+soBwvH6ZrH1nx15inKchkKiZ0zy3+/o7YsIpVbgHI/Rqyyz/1ZcfZ0bvzGuzttwG 3JsY5alrLWzyRVa6w8RTNrzpjIrN/kzLL9+KcxnV2rZztyZ7rASDbqXGIqRcEZvinzYN bZ/VTQdXGPH7/UOoOJsQpYP03fIswmJxcUFoerXApd/9I20I+YJ8/PVT82hECDSGZXsh OODw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=KPjOT9wW/eMi8OCrn5IkzhmZFc2T+v3Q2uO9LHZ9e7U=; b=xfbpWcnqebTyNqV6Y9bU1Z8sr9ggT/6naK7gUqpj5YHiaBgCCTn+fR1P+EkHIGTpo0 Uo3UthalEONW3BrxrRmThCLv29tu3piB8M+hSaLljZPZRh4fzmW30vIiTDK0FJ3I116Y 7J/sUP89OiHARFlKBkOZaYjPUF9luVzUY/7UZ7ydlZZI/wCB+jImS3z6yAR6y4df1lRn EfplBUDfjUhid6HRkG+rvpUyUlGHXk3gSbNTIJjBlWV9n1bTkoeJ6u93lBZDRykvGmD+ Ah3t1udoTOX5xED4ES4UHRTF8LvieYJR7x1M8Z0sWjV9I76NxwsqzdecHiT7n0ez2V2T AtNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f11si6580495ejr.96.2020.08.24.06.54.16; Mon, 24 Aug 2020 06:54:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726765AbgHXNxY (ORCPT + 99 others); Mon, 24 Aug 2020 09:53:24 -0400 Received: from lizzard.sbs.de ([194.138.37.39]:42072 "EHLO lizzard.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726187AbgHXNxJ (ORCPT ); Mon, 24 Aug 2020 09:53:09 -0400 Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id 07ODqlC5020592 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Aug 2020 15:52:47 +0200 Received: from [167.87.131.75] ([167.87.131.75]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 07ODqgJ2007613; Mon, 24 Aug 2020 15:52:44 +0200 Subject: Re: [RESEND PATCH v3 7/8] mtd: spi-nor: Convert cadence-quadspi to use spi-mem framework To: Boris Brezillon , Vignesh Raghavendra Cc: Tudor Ambarus , Mark Brown , Boris Brezillon , Ramuthevar Vadivel Murugan , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, simon.k.r.goldschmidt@gmail.com, dinguyen@kernel.org, marex@denx.de References: <20200601070444.16923-1-vigneshr@ti.com> <20200601070444.16923-8-vigneshr@ti.com> <00394d38-20d9-60a5-0068-5f9f023520c2@ti.com> <20200824140438.14e72ca6@collabora.com> From: Jan Kiszka Message-ID: Date: Mon, 24 Aug 2020 15:52:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200824140438.14e72ca6@collabora.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24.08.20 14:04, Boris Brezillon wrote: > On Mon, 24 Aug 2020 17:14:56 +0530 > Vignesh Raghavendra wrote: > >> Hi Jan, >> >> On 8/24/20 11:25 AM, Jan Kiszka wrote: >> [...] >> >>>> +MODULE_AUTHOR("Vignesh Raghavendra "); >>>> >>> On the AM65x, this changes mtd->name (thus mtd-id for >>> parser/cmdlinepart) from 47040000.spi.0 to spi7.0. The besides having to >>> deal with both names now, "spi7" sounds like it could easily change >>> again if someone plugs or unplugs some other SPI device. Is this intended? >>> >> >> You could use DT aliases to make sure OSPI0 is always at given bus num >> (say spi7): >> >> aliases { >> spi7 = &ospi0; >> }; > > FWIW, we've added the ->get_name() method [1][2] to avoid such > regressions. > > [1]https://elixir.bootlin.com/linux/latest/source/include/linux/spi/spi-mem.h#L218 > [2]https://elixir.bootlin.com/linux/latest/source/drivers/spi/spi-fsl-qspi.c#L810 > OK, that reads like I was not the first to run into this. Vignesh, please use it so that I can drop the local workaround. Thanks, Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux