From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chanwoo Choi Subject: Re: [PATCH] extcon: Add support for qcom SPMI PMIC USB id detection hardware Date: Tue, 28 Jun 2016 21:06:48 +0900 Message-ID: References: <20160626055647.18898-1-stephen.boyd@linaro.org> <146705470025.30684.13257433085055355379@sboyd-linaro> Reply-To: cw00.choi@samsung.com Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <146705470025.30684.13257433085055355379@sboyd-linaro> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-kernel , linux-arm-kernel , Roger Quadros List-Id: linux-arm-msm@vger.kernel.org 2016-06-28 4:11 GMT+09:00 Stephen Boyd : > Quoting Chanwoo Choi (2016-06-26 04:20:43) >> 2016-06-26 14:56 GMT+09:00 Stephen Boyd : >> > +PROPERTIES >> > + >> > +- compatible: >> > + Usage: required >> > + Value type: >> > + Definition: Should contain "qcom,pm8941-misc"; >> > + >> > +- reg: >> > + Usage: required >> > + Value type: >> > + Definition: Should contain the offset to the misc address space >> >> 'reg' property is used on extcon-qcom-spmi-misc.c? >> I think that you don't need to include this property. > > No it isn't used in the driver right now, but there is a register offset > for this module and there are registers that can be read/written in this > module. I'd like to keep it as required so we can easily read the > registers in the future if needed. OK. But, If you want to remain the reg property, you should add the code to get the register offset by using OF functions. This patch don't include the OF function to handle it. [snip] From mboxrd@z Thu Jan 1 00:00:00 1970 From: cwchoi00@gmail.com (Chanwoo Choi) Date: Tue, 28 Jun 2016 21:06:48 +0900 Subject: [PATCH] extcon: Add support for qcom SPMI PMIC USB id detection hardware In-Reply-To: <146705470025.30684.13257433085055355379@sboyd-linaro> References: <20160626055647.18898-1-stephen.boyd@linaro.org> <146705470025.30684.13257433085055355379@sboyd-linaro> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 2016-06-28 4:11 GMT+09:00 Stephen Boyd : > Quoting Chanwoo Choi (2016-06-26 04:20:43) >> 2016-06-26 14:56 GMT+09:00 Stephen Boyd : >> > +PROPERTIES >> > + >> > +- compatible: >> > + Usage: required >> > + Value type: >> > + Definition: Should contain "qcom,pm8941-misc"; >> > + >> > +- reg: >> > + Usage: required >> > + Value type: >> > + Definition: Should contain the offset to the misc address space >> >> 'reg' property is used on extcon-qcom-spmi-misc.c? >> I think that you don't need to include this property. > > No it isn't used in the driver right now, but there is a register offset > for this module and there are registers that can be read/written in this > module. I'd like to keep it as required so we can easily read the > registers in the future if needed. OK. But, If you want to remain the reg property, you should add the code to get the register offset by using OF functions. This patch don't include the OF function to handle it. [snip]