Received: by 10.223.176.5 with SMTP id f5csp147785wra; Thu, 8 Feb 2018 18:30:17 -0800 (PST) X-Google-Smtp-Source: AH8x2279KNWiTHMyGVDhIPNtW6u5ao7Wi/MwZ/9hCN5y+uYvC9U5C8XrBP8qGuH8y6cxrw+JesaR X-Received: by 10.99.183.68 with SMTP id w4mr1023995pgt.221.1518143416969; Thu, 08 Feb 2018 18:30:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518143416; cv=none; d=google.com; s=arc-20160816; b=SKWvhlf+LNGE80CnQweowpmcwtlIhBarFURAPg2UFWmrpKTdR9aN3Hfcao7Wwlr8iD h0i8Wd6oiaeDiEzsnec+BDNuU44YpkheZDcbtwmquwBc6AU/lT5X2ScZnUD9pVG9pfYg GSzwTdCfBne0hAmxvJ0dLDj8W+9400s1ROqHJ871Ahh5sbg2dnbfU9Cp0OEUtKaXLJMu z7nWodqrBk+4P9L29aRIN/02n4YnmtskcfAjMDvgs4oiNqkwchKuJRAWQn0yREytkyfF xvUtD8F/6tkET+6GPK6FnfdpNYjp3JKY71x4vRZdB2OqFTSPxHnO3Iv/mmkCyDSu0YGq H3aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=wlOwSWwfqfN6diPjxyeZyLPyP8w0AkWNPjQNpcEMTFM=; b=aCqD0afqfj5poixdrSZ95uKNEFX2D5mXV3ImDEZii74dQZgNtr9npUdol9mieojucl +NuUizEUsqd6Y/FtZbJ3slB+58iR8QqjSts/S8XP2FUqHeXEyFFo0lOnqdyDW582zdmg Ba9t6Vg6kjnFgCrhz1J/6IurjlhkEGASvl9FkhWhXk2W7laouWEKO29Kllr84pZt/e36 NjM8g7Z/9HiOUpd8zHcqd9L2PZNDY7hdXoCH1wLEFCF8YhGTS8j+StMt30T8Zs75C+LL FCP2icoMG8M6OlfM+zcUxGUJgtVTZEh3sRuffTbP6yZtg36uw7ULGld48lfiP4GuXYR2 60Bw== 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 h16-v6si871769pli.216.2018.02.08.18.30.01; Thu, 08 Feb 2018 18:30:16 -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; 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 S1752391AbeBIC3V (ORCPT + 99 others); Thu, 8 Feb 2018 21:29:21 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:40610 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752111AbeBIC3R (ORCPT ); Thu, 8 Feb 2018 21:29:17 -0500 Received: by mail-pg0-f68.google.com with SMTP id g2so2679814pgn.7; Thu, 08 Feb 2018 18:29:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wlOwSWwfqfN6diPjxyeZyLPyP8w0AkWNPjQNpcEMTFM=; b=MUFXPOdF1L7CIf4Y4vTeEAev4MJkqv3PZl97VQAdb4gE2hj6vK7FBxELiKarvN7XGM LPkirKzTMqBkocWYrhTQmN+cST4yr/18IhwlekvHl2Acu11SAWu8MdeAXayXcYEg2bc3 mKMd06aIOU2tRKZ37cOsHCGLyVCTsVWMdZCS0vx42KApYXBY4DVjPj6uiu7xUOgWt8NL UIGJLuJ1L6Z52q9/2hRhb7kfZWDHybuVIMBdwLBLe/UNc2l52kRMVvkchqjrceHP896H 4tBoRaXYgwaV9hBxHdSVDU/4Byz6hXi7YJt80Wx+tEqbcAnMX33f7XtG/xXy43Qzoglm a+fg== X-Gm-Message-State: APf1xPCYWJV+tiot2uRcFMikBCLhJz+smU+F3q8o3BPjH0lThYOv4UEi qAhRoMtaESc/n5Q2BsUaeJEuwbY= X-Received: by 10.101.76.2 with SMTP id u2mr988984pgq.363.1518143357278; Thu, 08 Feb 2018 18:29:17 -0800 (PST) Received: from localhost ([199.36.244.13]) by smtp.gmail.com with ESMTPSA id p20sm2347660pfh.100.2018.02.08.18.29.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Feb 2018 18:29:16 -0800 (PST) Date: Thu, 8 Feb 2018 20:29:15 -0600 From: Rob Herring To: Can Guo Cc: subhashj@codeaurora.org, asutoshd@codeaurora.org, vivek.gautam@codeaurora.org, rnayak@codeaurora.org, vinholikatti@gmail.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, Gilad Broner , Mark Rutland , Venkat Gopalakrishnan , Noa Rubens , Sujit Reddy Thumma , Maya Erez , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list Subject: Re: [PATCH] scsi: ufs-qcom: add number of lanes per direction Message-ID: <20180209022915.2kki7avsia2k7tjp@rob-hp-laptop> References: <20180205121021.11012-1-cang@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180205121021.11012-1-cang@codeaurora.org> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 05, 2018 at 08:02:07PM +0800, Can Guo wrote: > From: Gilad Broner > > Different platforms may have different number of lanes for the UFS link. > Add parameter to device tree specifying how many lanes should be > configured for the UFS link. And don't print err message for clocks > that are optional, this leads to unnecessary confusion about failure. > > Signed-off-by: Gilad Broner > Signed-off-by: Subhash Jadavani > Signed-off-by: Can Guo > > diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt b/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt > index 5357919..4cee3f9 100644 > --- a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt > +++ b/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt > @@ -31,6 +31,9 @@ Optional properties: > defined or a value in the array is "0" then it is assumed > that the frequency is set by the parent clock or a > fixed rate clock source. > +- lanes-per-direction: number of lanes available per direction - either 1 or 2. > + Note that it is assume same number of lanes is used both directions at once. Seems reasonable until someone does not make things symmetrical. We should design for that case. > + If not specified, default is 2 lanes per direction. > > Note: If above properties are not defined it can be assumed that the supply > regulators or clocks are always on.