Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1362874imm; Fri, 28 Sep 2018 17:19:24 -0700 (PDT) X-Google-Smtp-Source: ACcGV63wVH8FiHaauAV26sZav84vHJoDLP0YCJaveZfhHnxICxYNBUKd/s7E1ZVFLWFZ+WLD4U1c X-Received: by 2002:a62:5343:: with SMTP id h64-v6mr910107pfb.226.1538180364819; Fri, 28 Sep 2018 17:19:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538180364; cv=none; d=google.com; s=arc-20160816; b=GOcjqf7QLtXTQDvIGBUiXX+gpfHCPgW7GYYZLM3uwJ8YifYQWjt0rlIKhW069Bwo+l fmVUKPzyy93qv/KSmbU2Fez0eKLQheyU0lA+yOph6F56cq08QZ8BBI+Fj5rYaV3NDtfv epc7XYjOnU9CLJjZO5bB7jkSoOvVC08ev5tSJIzCw9Jl1x7wKdWs5arJ2cO8FGoQMXJp 18ibW/FmhSrQzL1PV6dkGGRL7dBPzQiaLYnFLYc+42m33VZByuegx5oIkhDbjXHBCV48 vaOvhm28i1dVxcS1e912DhYmMGG8yghQsxlV1ajzZfzHWNEO0PLgCTKVDUaMXYczgZL4 XV4w== 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=gMHyU/2rVS2rVaT2Mvuic0wzkY6wrvKjTTOWzTehV/o=; b=qceMS/gCNW71I5lq902iNQcO+bD/y7VqvY7iqLLfvZ1foQSpPadUBHIM22JGSgVWTZ TclYKbTAMVouUOcgeu31i+SnF2lQfLkKLlwS5t+4hIDabLSsKuAuFUwiFydFWLdiblsh ebrKREcGTgvVPzNYKhkoQSFKx/eEKKb21r6AIbjXMyrwb2MrsDvjQGIZ++OvpVQOxKXK RXNnWDBMv/joFE5DWcYIPF77GfLyIh++CFJeoP6Uc0F60118dt6UEYE+/epWEoAbFN9N jZN3vR7RLxUHGz5j0iawEkmhTPO2ZuHC76JECpxQ0hwdp+i3SKsLPZkE8UPyts/V8rNq 377g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IoOgkxbg; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w2-v6si5919051pll.171.2018.09.28.17.19.09; Fri, 28 Sep 2018 17:19:24 -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; dkim=pass header.i=@chromium.org header.s=google header.b=IoOgkxbg; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727355AbeI2GpP (ORCPT + 99 others); Sat, 29 Sep 2018 02:45:15 -0400 Received: from mail-vs1-f66.google.com ([209.85.217.66]:46409 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726804AbeI2GpO (ORCPT ); Sat, 29 Sep 2018 02:45:14 -0400 Received: by mail-vs1-f66.google.com with SMTP id t21-v6so4575070vso.13 for ; Fri, 28 Sep 2018 17:19:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gMHyU/2rVS2rVaT2Mvuic0wzkY6wrvKjTTOWzTehV/o=; b=IoOgkxbgbKzjJeeuxfyqmSUzjrTQrFyTgwp3hyeks9bt2mla88qkjGuxVYsjWxyKxP k6zAcKsCHZBRw5mkagSJNeNsPO0u8PsEjAQhS6n/loxt3eytqMtytiJeeI8dYLf9IBay lYF/1q0qF83b8TCxZ0FPJshwQXXZmYgaYMe1U= 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=gMHyU/2rVS2rVaT2Mvuic0wzkY6wrvKjTTOWzTehV/o=; b=HupY6Lwhe9eCbM49Z0ESf3bf/9ghFDJcLCTgqJSUNt3T31EnkddFpnojbr+wFFFsHt mPzVLvUOduLY0XJN/S2j9tLwAP1nrdZiszhjakmD5cHYYbt+sCvFmM+lPTJtxEXNbBzH JMzibYKXEwJpqTuZnE/Diai/S5idPKLtz+HFLPqmA6qXLDhvjKeTZqYzc3TLncMtjeVo wpgAzCxh95zZx/EFns0cpJ7G5iPl5k0RvmyAbSboXgieqiOmbgsT++9FyJweO8zGfeiI qn7miB5EEYBC6LffsLWZ+ys/M2PRw4Qtgwqglx43hMk6U3e9i0rS/bWcPQFcPNeIQ5tG EmCw== X-Gm-Message-State: ABuFfoh8eSg53HVwTk7ZfJfh+e7Rgny4Ht86GCkHvvBOmq1p+TnFotMD TodInqMZ1qov5Pm+10nObPBHldJwFUU= X-Received: by 2002:a67:4581:: with SMTP id z1-v6mr449379vsf.45.1538180341885; Fri, 28 Sep 2018 17:19:01 -0700 (PDT) Received: from mail-vs1-f46.google.com (mail-vs1-f46.google.com. [209.85.217.46]) by smtp.gmail.com with ESMTPSA id 72-v6sm7002620uas.19.2018.09.28.17.19.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Sep 2018 17:19:00 -0700 (PDT) Received: by mail-vs1-f46.google.com with SMTP id i23-v6so4225133vsj.12 for ; Fri, 28 Sep 2018 17:19:00 -0700 (PDT) X-Received: by 2002:a67:7949:: with SMTP id u70-v6mr459646vsc.119.1538180340315; Fri, 28 Sep 2018 17:19:00 -0700 (PDT) MIME-Version: 1.0 References: <20180926205204.184898-1-ryandcase@chromium.org> <20180926205204.184898-2-ryandcase@chromium.org> <153803059441.119890.891880266219521584@swboyd.mtv.corp.google.com> In-Reply-To: From: Doug Anderson Date: Fri, 28 Sep 2018 17:18:47 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 2/2] spi: Introduce new driver for Qualcomm QuadSPI controller To: ryandcase@chromium.org Cc: Stephen Boyd , Mark Brown , Randy Dunlap , linux-arm-msm , Trent Piepho , boris.brezillon@bootlin.com, Girish Mahadevan , LKML , linux-spi 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 Fri, Sep 28, 2018 at 11:20 AM Ryan Case wrote: > > > + master->max_speed_hz = 300000000; > > > + master->num_chipselect = QSPI_NUM_CS; > > > + master->bus_num = pdev->id; > > > > Can this come from DT aliases? I've never thought about qspi and > > "regular" spi being in the same spi bus numbering system, but I suppose > > that will happen now and we need to make sure that qspi numbers start > > after the regular ones? > > I'm not sure. Can look into it. In a previous response for the other Qualcomm SPI driver Mark said to set this to -1. Specifically the code was checking the alias and Mark said: > Don't do this, just set bus_num to -1 and let the core assign an ID. [1] https://lkml.kernel.org/r/20180503233849.GF13402@sirena.org.uk -Doug