Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2576559ybg; Fri, 31 Jul 2020 04:15:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxq2524bxY9hxkWK3eC9Bv+kkRuZVVKO+beDyzhEgyzeMd/5S5TJg1CMgnuF/OYnnC8Pg/j X-Received: by 2002:a17:906:1c84:: with SMTP id g4mr3520550ejh.59.1596194143593; Fri, 31 Jul 2020 04:15:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596194143; cv=none; d=google.com; s=arc-20160816; b=PkuAvyXsw1BZSMMjz5jOSV5AnTCToeEWnstGyPkDU3MCeGwejLI7QAJiYADQL5d6h0 da3kR/Xg7I0f2zFiUJJpeuYCnUWdQTCLEYzYa54nBgo2sH49MNj7VtKJDfQxyFEvMA/h Schm5vEY2WubvUiWOyekGuauL+EhZ/Vmi3g/NT/+C2YrrEnXRitBFChlm+GuMGIkTWB5 A0mdhUoN63I60h4m36bPpF8Nc+BecPvEQMawHbjXxAQhPjoyMMq9HKAxtD/GYNAUbU9m mjUwMA42ZgYbIlb6m2t+gOKxkMAzqLoiNjfQaySlK1PUhRy8/8p/1tpXLjyr3CVQxBbz AovA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=SAJ/B5vlycsw95obezE/2ESChFtR1rGop3GZL1mr6Lo=; b=zHLFNGkqIA/3yzq1UtUf7pTUfY4RejZWhB4MbrPxpbgT+4xkOYG07SABxoNm1efJ5C yQ3Aa+8EGvwiWCSfEi2wZk0KC1KH6rWFjckQNCyaAtNGUEVzjMG8J9Mf3n2UzmdFWUAe uUWL1o4/6fpOHZtntfDtMt3ubB2jeYwroT4vWRmhSwfiupc1CoRWG1wR4VDyXq44hTS3 Kmwgz7QIeG1MXnCh8ulIdzyKRFNYb+P1qR41A4UtonVNWVqk9c3xhhXPaHkWmeWjomK4 35r1aFsIGSXPMb18fIpHNpZ6GgBUzTUzurzIaSXzDfq0kasQbyGS05Ze88auDMdWLVx2 Lb0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BPU0S8RA; 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 gu8si1780449ejb.317.2020.07.31.04.15.12; Fri, 31 Jul 2020 04:15:43 -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=BPU0S8RA; 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 S1732485AbgGaLMe (ORCPT + 99 others); Fri, 31 Jul 2020 07:12:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732104AbgGaLMd (ORCPT ); Fri, 31 Jul 2020 07:12:33 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73C52C061574 for ; Fri, 31 Jul 2020 04:12:33 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id r4so24670326wrx.9 for ; Fri, 31 Jul 2020 04:12:33 -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:content-transfer-encoding:in-reply-to; bh=SAJ/B5vlycsw95obezE/2ESChFtR1rGop3GZL1mr6Lo=; b=BPU0S8RALM+4SBkU/ZFFEL3yo2qQphBGZUs+LshQF7KlODLeCvfG4d/JmT+U9ly/rs W15FjoBZLQwg/HTpX0n/dZJcmeRnpoi1dtFF6Y91gg28NgbZolEHiuot9hYMuM6YOZ8u twVVDL1Vtesepv3ut0O5olUjb+pzArd1T0Y7Nuut8AgObrEH8O6iIa2AgXU7RsPAj1it ErQm+5MU3eIdG5EefdCKDWWNS2ej67t1BsZodVcp55+UOi5Rlbe0kYNYqncMRYs26DSp O1mSR0Y4vONAczHDpGrGK3UQ97vSqxOCi+/ZtkE/opPOUCY7Pt5QjGhc/O+T1lUqDXL8 4QsQ== 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:content-transfer-encoding :in-reply-to; bh=SAJ/B5vlycsw95obezE/2ESChFtR1rGop3GZL1mr6Lo=; b=kVSlSoNRb7py/akqGyIQMT6GWTulUMoQPGsZwr00JviYZPQIKHciRfxqkEQH1fDea5 i/JIdf6XUUsBw59nV+szBEXrjRjyJdgTaMIhn6KfT1aZdPajRAYIsK1XK8cT+fqQYYZh Vf2L19Yihvv++NnagE5DX+usW2WxlA5qBDCXQ8B0E/0RwEVebTs/+JqldEnG2p2aPUIK 9zMWcsxZET/hu/rg9Lj7/dUK5CwVAANbTYYDgXf9pCBGYP6npdZyX31Sc2aUImdwQPBF imViNJTypT4WefCTVtTZRBQNzmhxab5y7m8CNAtugpo3okxgII6lDy94sEDPUt5DXFaD L/xA== X-Gm-Message-State: AOAM532TFrIvTmlZJZO4QorNHqDmJ+dWHJF3Tq5wLfqltUDwRAR5H/Ps l+/LLcAsYSrqDMF44aTLtVM8CPA+r4s= X-Received: by 2002:adf:cd12:: with SMTP id w18mr3148164wrm.352.1596193952052; Fri, 31 Jul 2020 04:12:32 -0700 (PDT) Received: from dell ([2.27.167.73]) by smtp.gmail.com with ESMTPSA id w2sm15366588wre.5.2020.07.31.04.12.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2020 04:12:31 -0700 (PDT) Date: Fri, 31 Jul 2020 12:12:29 +0100 From: Lee Jones To: Gene Chen Cc: Matthias Brugger , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Gene Chen , benjamin.chao@mediatek.com, shufan_lee@richtek.com, cy_huang@richtek.com Subject: Re: [PATCH v2 4/9] mfd: mt6360: Combine mt6360 pmic/ldo resouces into mt6360 regulator resources Message-ID: <20200731111229.GL2419169@dell> References: <1594983811-25908-1-git-send-email-gene.chen.richtek@gmail.com> <1594983811-25908-5-git-send-email-gene.chen.richtek@gmail.com> <20200727112921.GK1850026@dell> <20200728065422.GB1850026@dell> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 31 Jul 2020, Gene Chen wrote: > Lee Jones 於 2020年7月28日 週二 下午2:54寫道: > > > > On Tue, 28 Jul 2020, Gene Chen wrote: > > > > > Lee Jones 於 2020年7月27日 週一 下午7:29寫道: > > > > > > > > On Fri, 17 Jul 2020, Gene Chen wrote: > > > > > > > > > From: Gene Chen > > > > > > > > > > Combine mt6360 pmic/ldo resouces into mt6360 regulator resources > > > > > to simplify the similar resources object. > > > > > > > > Do the sub-devices actually share these resources, or are you doing > > > > this just to make the code simpler? > > > > > > > > > > They are different resources used by different bucks and ldos without > > > sharing relations. > > > I just to make the code simpler. > > > > I don't think that's sensible. > > > > You should only share resources with child devices that consume them. > > > > At first, I separated regulators into two drivers, mt6360-pmic.c and > mt6360-ldo.c, according to default-on power or not. > Then, I merged two drivers into mt6360-regulator.c and merged their > resources as well. > Therefore, for every device of BUCK/LDO, I'll find resources according > to their name and request IRQs. Okay, so all of the resources are consumed by a single driver? That is fine then. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog