Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4309535ybv; Tue, 25 Feb 2020 17:32:05 -0800 (PST) X-Google-Smtp-Source: APXvYqxtqvDwne35f4t8KvDZdA5wf+SIdtGVptt7Fr/I566Qrz00TCKE8R23MZkCgyjCU6vvpEcV X-Received: by 2002:a9d:1ca3:: with SMTP id l35mr1076310ota.271.1582680725605; Tue, 25 Feb 2020 17:32:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582680725; cv=none; d=google.com; s=arc-20160816; b=P2DMypaXxgGxga+Erh1bMp64B/ASQpbMC1LVmac2OR4U4BFJBj0VK39zjlYM7LHgK7 Sk0TknCPvzlprJFvI3y8q0rFsJeTEJFhT4uuTsYLs2Awbi5lJcageJE0XTwwH8sgfepj 2BaP5kTq3p7FGzZQ7SbfBTZnRVWTwrHrPbR9Vm8AYIPTniMkFv8aierCdYdffYGs5CEN nz6PaUqmaWmaTWbZF1CQ2+r7qch9Db0Irewy4AfchXZrUL5DWtsLaY9Hok0QAC43l5Jl hjRe20H/03Swhbj3RuRpzlJskqGg9hAnjyWV0eoH3R5Y9ASKbgAZ5Qe4t/1KSwn/IXVh 71Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=m69OUPpDCFCPc/oa2eyFJo4I++z0wlZi/kprUKpLj3Y=; b=mI8EwKifncUl5YouTttHrsUK8ZK2S56HtEIum6Uw+OpVjZoiqWVcQbAMOoCQ3f4hj2 9lxHGvXKXOoAyG6Lwt/RltrBSur7GFcXSA1FlsFXOeUxWjdLGbRCctvTm9BuZKvW6tzn 7Qu7R7vE8Hk5jS5BciSEFBnlLndLsKPW5q1TFe4gK85jZcpzkZuZhGTOP7iwjnNGa/8d zXpiZiN/yn61xt4BNmxKvSIqMHh/Go7loBeoWtLCA7aG0ddT9FjSs3s8StpkPELnwqn6 XkxeiSEI7P501UHJB6kP2gOe8eR0Lzeuv+WvnrTqDWWpqhGtCQ+q0uhSjhNYdRSztQ0m cuVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nA2f+OLz; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g17si331264otk.252.2020.02.25.17.31.53; Tue, 25 Feb 2020 17:32:05 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nA2f+OLz; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729498AbgBZBbq (ORCPT + 99 others); Tue, 25 Feb 2020 20:31:46 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:35484 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729170AbgBZBbp (ORCPT ); Tue, 25 Feb 2020 20:31:45 -0500 Received: by mail-ot1-f66.google.com with SMTP id r16so1484774otd.2; Tue, 25 Feb 2020 17:31:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=m69OUPpDCFCPc/oa2eyFJo4I++z0wlZi/kprUKpLj3Y=; b=nA2f+OLzY/0xumh5TuXz4ftOJdyLWFEddIBk66xJxkReDm94lliWkpwvPZ4a2z3aL+ 7F+sqVUc1AzH4De2HzKgueukRv45rp0BhL1+N00JyaUl0pf8w2HajjUgeCkoJF7IJOlA ggEwGRbikFgBXKyJuSgVOcXhbcpJCTQKeyo/nw/xbjt6rWvnKRe6cB5I1Zh31qnj988D ZkrhLAL1NuHixK58f6i/pdi/eHNF5m+KjXIhJbAzoqxI3ZfMK2b0tUyDtQ86XgSM/Yq1 8gK34CHyXzjHzraPQJFoD50QgHtNUe9dEYNAgyQra9e7EQzFbKF/kURdvfMeW7/ka4B6 +tGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=m69OUPpDCFCPc/oa2eyFJo4I++z0wlZi/kprUKpLj3Y=; b=KJQ8jt2HgPtLxfqvnaJc7gIHrnRmN+23m4cnYRYAEi7l7rN/hSbJUoYWzYDdL7mKGf +abaZzNu89E0+PNEy5D5YqBReo41egOjPV4uW+WTvb6D6VcM5Iys4kqhw86hJr+wsp46 2G21oQ8DCMRtvXEtJM9ALJwi8f3DJGgQQfM1rT5dtKw1LMczbSdNX+padXHtuOpnIuNG xcTHRvb7anJ/OQxJ73ThyO9cbjrxxpCKtcaHlH8bYxK5mksSlFnpWICZKTn0c/RHlQr6 GVtCWz0bowEa8Hi7hHcgt0XFhP+Wvj5q7OP1r4x8NVVPVgmYWXtlfWe72k4b1WY+oA77 6VZw== X-Gm-Message-State: APjAAAXS2Lq5qhEWfyKw2ZxGWQJrJJuWg3VZn6bHKJjqPOnC2+qlM1Dm XN52MejeXm3LJuvevzVzfRrk8VZgD8n7CvSAFq8= X-Received: by 2002:a9d:6a4f:: with SMTP id h15mr1129292otn.86.1582680704677; Tue, 25 Feb 2020 17:31:44 -0800 (PST) MIME-Version: 1.0 References: <20200215065826.739102-1-gch981213@gmail.com> <20200218125557.GD4232@sirena.org.uk> <20200225173137.GA31830@bogus> In-Reply-To: <20200225173137.GA31830@bogus> From: Chuanhong Guo Date: Wed, 26 Feb 2020 09:31:33 +0800 Message-ID: Subject: Re: [PATCH 0/2] rewrite mtk-quadspi spi-nor driver with spi-mem To: Rob Herring , Mark Brown Cc: linux-mediatek@lists.infradead.org, linux-spi@vger.kernel.org, linux-mtd@lists.infradead.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Mark Rutland , Matthias Brugger , linux-arm-kernel@lists.infradead.org, open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! On Wed, Feb 26, 2020 at 1:31 AM Rob Herring wrote: > > On Thu, Feb 20, 2020 at 07:58:06AM +0800, Chuanhong Guo wrote: > > Hi! > > > > On Tue, Feb 18, 2020 at 8:55 PM Mark Brown wrote: > > > This is an ABI break so you shouldn't be doing this, if the existing > > > binding works it should continue to work. > > > > The missing spi-max-frequency is the only part preventing old > > device tree to work with this driver. > > If the goal is to make existing dt binding work, I could patch dt using > > of_add_property in v2. I saw similar device tree patching for legacy > > bindings in pinctrl-single driver. I just noticed that of_add_property isn't a exported symbol, which means that device tree patching isn't possible unless driver is builtin. > > You should should really only need 'spi-max-frequency' if the max freq > is less than the minimum of the host and device max freq. But current spi framework forces that a "spi-max-frequency" property is present. [0] Should we patch spi framework then? [0] https://elixir.bootlin.com/linux/latest/source/drivers/spi/spi.c#L1951 -- Regards, Chuanhong Guo