Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp111020pxa; Wed, 26 Aug 2020 19:01:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7mjtd3tfAznR4+wzD+lJNeaVG87VUzZ1AlH1SD7BmOEH4XKWHTD8IEDwYIMqW06nbM+wu X-Received: by 2002:a17:906:f84b:: with SMTP id ks11mr14292903ejb.264.1598493692151; Wed, 26 Aug 2020 19:01:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598493692; cv=none; d=google.com; s=arc-20160816; b=qPcfKSut3KBNbbaeh6DXeTdTsy0K1EhLBOTl/ZtSkdHfKm7z8y9H4xvYWpK8OfBRbq XO1TwDCi603G+ubzUvNuiyYaCfJSpkOVKstQGhBZd4pfuWgb8yoii48oytEM/yQ/sMX5 bixpYe4gKno1/7S3gZKHzcWPKy2Et178/RXzQ1eBewdwDyyw9chYX9lQJ9PPgJFv4n0F 8oeghPp2kFAMkEHBNP/00YV9mYzBT7hDh5fpWQ5OyO9UJ23eIZ/hx0UTxMzAOoklFvHG h+mAz2UiGt9Ph2FhBZ1OTd+jJJO4utkKIWDaxdTEXrTNFNxDBdXirZ7jKTh7d3eDC1P0 TJ9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/oidMW/W20jF+NxvzsE3dEflfMY2KxJGTLWf/bdubB0=; b=bDGbSmo0eLb7pU9Lhhh+fGHnlOmxk+H8L8ukufGwZuMtGZVrljw1PB5GjnQSia/9t+ RoV6zvMtHZJTRFcRH7ucnIv+odBO6XrHVc0WuXfYk75dBieimTvDtFsDAKhIFuyUKSeA je0vgGjyl30e23f4CGcu9+a5VdNuiQaDndguNFIpp1Edlv3homuSzIxzTxDsK29rUPj0 Pv7SbNGPPG5yITMJGJLvCCUyH+sd69XrG7hUmxNtExolzBsjGoO3e7mPTmSNedzuVi45 y05rNJ77Dp6mIijCOPVXUvu3fVWW/Fu4IdWsEIjgKPkb73rRxqn4woRAGj30IV7xR0Cf icxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TNH6cFFK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gs14si387512ejb.615.2020.08.26.19.01.10; Wed, 26 Aug 2020 19:01:32 -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; dkim=pass header.i=@linaro.org header.s=google header.b=TNH6cFFK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727786AbgH0B7s (ORCPT + 99 others); Wed, 26 Aug 2020 21:59:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726952AbgH0B7r (ORCPT ); Wed, 26 Aug 2020 21:59:47 -0400 Received: from mail-oo1-xc43.google.com (mail-oo1-xc43.google.com [IPv6:2607:f8b0:4864:20::c43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A37DC061368 for ; Wed, 26 Aug 2020 18:59:46 -0700 (PDT) Received: by mail-oo1-xc43.google.com with SMTP id u28so886125ooe.12 for ; Wed, 26 Aug 2020 18:59:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=/oidMW/W20jF+NxvzsE3dEflfMY2KxJGTLWf/bdubB0=; b=TNH6cFFKpY9pf8bAPVka2j/qvuFuZXl2oamyYo9KGpvLnkLd45PTDkWk7TDAsR8WmD wtmSVzjkxcu6nAodWjSOp5f4imTr7yio+1pWt+I4H67LtWRMcKZCrcxlMgMuCXLglTiu jrmrM41U1j6Uzck5OkbUSJlCvHBWL5pjqYbNQSPcEbqWF8DCpJDa3nSzJFbM3ChUbkXV NlDOkl/1QvcyGsfV8r9aAIMn/qPzeP73cwIbdApi7+SFAWoUFPlt87UfAbsGjhi5d/aQ MByJ66EvunTGaOFQXs0QNh4zOOGNp9TNmmHEKknOwQNKpctUr89yiS+piTm0tDBhRsKx e3PA== 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; bh=/oidMW/W20jF+NxvzsE3dEflfMY2KxJGTLWf/bdubB0=; b=T/Im2ksLZ3KyWlbAnkUltHQtL0Z4qN02+XY+NEQ11JGzxxSvwJJVCVfcQzYm3AEXcZ jbzEFU6m4r5LnI92qEu6B5jl3FGWQKYiMJQxgrtKLTGn9iEa4OaWTyP7xzdlyyZf0Huj I6QgJycsgq63vMA1Cl7t5UJUdBte3Lx/c2RhW0sf5JWP7EMQsjg7ZTMAWmcIamqlQwu5 mZRG6s+G68QsLXEOmuYLWNkzDI/gOqsPKEfX5M1jAtPx0EZ1fTzGRAKJ//adhLBoIJmB sldvUQMyD+Pt3kUPV1ePnp2lagzd0gf5i4C0WCDn2ZRXtmlo7lFyDPwABtgVxfwrd6ml Y1yQ== X-Gm-Message-State: AOAM532hOB43DGtCr8QklmW2a3n7slhQ6L/v8Hhg5M/y/IfVHwfpSW3E ApN8Qp0qYibsa+kzcVkERGIE+Q== X-Received: by 2002:a4a:aa0e:: with SMTP id x14mr12438488oom.27.1598493585763; Wed, 26 Aug 2020 18:59:45 -0700 (PDT) Received: from yoga ([2605:6000:e5cb:c100:8898:14ff:fe6d:34e]) by smtp.gmail.com with ESMTPSA id a16sm179248oop.17.2020.08.26.18.59.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 18:59:45 -0700 (PDT) Date: Wed, 26 Aug 2020 20:59:39 -0500 From: Bjorn Andersson To: Stephen Boyd Cc: Kishon Vijay Abraham I , Vinod Koul , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Jeykumar Sankaran , Chandan Uddaraju , Vara Reddy , Tanmay Shah , Manu Gautam , Sandeep Maheswaram , Douglas Anderson , Sean Paul , Jonathan Marek , Dmitry Baryshkov , Rob Clark Subject: Re: [PATCH v1 5/9] phy: qcom-qmp: Get dp_com I/O resource by index Message-ID: <20200827015939.GI3715@yoga> References: <20200826024711.220080-1-swboyd@chromium.org> <20200826024711.220080-6-swboyd@chromium.org> <20200826043616.GF3715@yoga> <159847755731.334488.13614233203912102191@swboyd.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <159847755731.334488.13614233203912102191@swboyd.mtv.corp.google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 26 Aug 16:32 CDT 2020, Stephen Boyd wrote: > Quoting Bjorn Andersson (2020-08-25 21:36:16) > > On Tue 25 Aug 21:47 CDT 2020, Stephen Boyd wrote: > > > > > The dp_com resource is always at index 1 according to the dts files in > > > the kernel. Get this resource by index so that we don't need to make > > > future additions to the DT binding use 'reg-names'. > > > > > > > Afaict the DT binding for the USB/DP phy defines that there should be a > > reg name of "dp_com" and the current dts files all specifies this. Am I > > missing something? > > Yes the binding enforces this but this patch is removing that > enforcement and instead mandating that dp_com is always at index 1 (i.e. > the second one) so that we can add the DP serdes region directly after > and avoid adding yet another reg-names property. I changed the binding > for this usb3-dp phy compatible to make reg-names optional as well. I > don't see any gain from using reg-names. > Thanks for the explanation, I don't have any objections to this. > > > > PS. Why isn't this a devm_platform_ioremap_resource{,_byname}()? > > Sure. I'll roll that into this patch. Thanks, Bjorn