Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp2028977lqp; Tue, 16 Apr 2024 05:38:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXCn2qWLXDTGE1Ay+pbjnV1fLVwo6oo6vBJQB5CCyc0xCw7RznKLY/197nA8rQOD/M+mwI4bcimmHEE/YMt0/EL2qMl1sqk563R8My89A== X-Google-Smtp-Source: AGHT+IGBLOX4tx/oOgbZGa+fYTwqqGYVXQX5nw/Z33M+nx+ijHNHv6xLHidrGTKP4ngsi8oaEZtw X-Received: by 2002:a17:907:36ca:b0:a52:551e:7502 with SMTP id bj10-20020a17090736ca00b00a52551e7502mr7878386ejc.9.1713271080201; Tue, 16 Apr 2024 05:38:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713271080; cv=pass; d=google.com; s=arc-20160816; b=Al2b0zA5v4FF4a2ceZpRs+ieo993LkFhx5iincK8xkdUUVn8QG18QV/Fya/HZpLrGI fXI4u4fX78OgHAEpPzplbqdRbYvmkTIdGoIGnQbegmhGDVBF7kaKRM5uZ0uY10sr7pB3 OsgcB1OnUnuu//5S2xqN9Ejzaftjdfbt6JJzmwW3HbBR0eJC4248j/SPAEKsvWp4JYdp efeprAFgJbTMk/3yUqr9vHGpnjQpJVTBBnQcdQ+zrSFZj7Annv7UccqflFc/TIqyQuTU s9YvKqpPtUVh6Bvczzl35WtQUr1eqdCq+TUc8tHuTId96C2HkJwtrGbfaPR+n/fXfTjA 7sCg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=STIdOPhZdYvo112wyFBuLZo9s9LDl2Qu/p6eL5RFdqw=; fh=Gv8b8kKZF3y7RxkBf4hHCZUsideGSqCxxRbVB2FLI4o=; b=fx16pBAO+lEhKVSraZCVGVIyPFy/muNJEt4yIDiSwg9q6l5w/0B8ZmtEOqCyn2BiAB SOr8BDyQ9at4sDIHiuMSBJSKLw5JyDr5mRyFLTcZuWtirYlq1jnkOgmofQhS1msYSc1f 7MfeLWk9/Q0c5gG6K2FSaQcSI1HKiaJHdDS9fesF5qQh+OR5Exe+HX/v3m4cwXcLuul/ 6Iy32afc+7HWxZkC9M2HnVstDSD0fP2QLJTJRtdZM8LhUBF6NFMvIkJP5jFffhZjRiUH kMkccP7L5i+D2sjelpaiRj/M2DraBcr4DxZD1O+Pa+p5ugRE2xgPHMpoDQBVn5MPZYMs 30Gg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cKMYswuQ; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-146804-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146804-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dk16-20020a170907941000b00a522e519d5dsi5214951ejc.395.2024.04.16.05.38.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 05:38:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146804-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cKMYswuQ; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-146804-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146804-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DC4FC1F21ED0 for ; Tue, 16 Apr 2024 12:37:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6043A12B148; Tue, 16 Apr 2024 12:37:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="cKMYswuQ" Received: from mail-yw1-f178.google.com (mail-yw1-f178.google.com [209.85.128.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 965AF5B682 for ; Tue, 16 Apr 2024 12:37:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713271070; cv=none; b=RlO3vZk03V6FmadnAx65j8lcmk4nvknt9UaqiK55B062JemaslaDe9/CrTvtchNkeRyg7INft0WdJT+5SJPo29QBRs72e4sVbJZphaZW6o3Kcngs92HlAC9AIe4gkxl0wGZA1NacEmfEyicSajrmCC6FZSohCFskMSFkRPHLx+k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713271070; c=relaxed/simple; bh=4LJ6HXrr7/zGMxHWwNvwLQ04Lnb+7C3+Akuq4JYINEo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=YIfZCDJV8VTzbZdCAiKHyVeRtwMI6Y9BrmkQ9z/LLINUwKrC8Zm6+z4bmdiWibL4K/ltHL6rQRpRvDpN+GOiLwjRys28X7J8MZfjcaIhkxInTGMpmMeFaENUw/9f9uOL6NHhk/08Ahm+gf5oDkZrZKAD9C7msqcAlXeAAYIDDFs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=cKMYswuQ; arc=none smtp.client-ip=209.85.128.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-617ddc988f5so49930777b3.2 for ; Tue, 16 Apr 2024 05:37:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713271066; x=1713875866; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=STIdOPhZdYvo112wyFBuLZo9s9LDl2Qu/p6eL5RFdqw=; b=cKMYswuQgZEgwzR1koQDAyGsBxb4EB1KCyuqReRXmBwa8wYQ6+2R5KXqrddpRIAQ4c F4X0bJV1fZpuJk6pC1cO94UZthvSZX57xXRumPWhbfNILLAuMqVHmydrcrFYd5TZDqoL cqi1vNDCzJCFGaSOkJvtlkZG9AYDKA9FMWCrGnLWhP3HTS5L4yCp3IjNeHaQQDL3+Jt0 nDdH3WWMAArezeNHY+lgIXXvTJB+1/GHBfzKZVtDUI8MPQDrx3CfRiMOmu6Qd8uK2XCu WbTYHmEAHRaVtJzh63a+QycwcfwHIappfO08eFJN5RelCIG6ndgcGuDgc3HzLj5EGgoq L3Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713271066; x=1713875866; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=STIdOPhZdYvo112wyFBuLZo9s9LDl2Qu/p6eL5RFdqw=; b=eshNa60HEg73nRP25yb55b70ZNckpgK1UvSu6vqMHAdmKq+3NvPFENh8do+Ahf9ARY B8uWzDSijwPka0Ud5r5aEWWIqVMmwQeklPqrABveDoIDIL6Ff1bp5gE9UQwNOZ9bL2b0 t9XUBQMjX9AWND/Aqn0gSMVGKOwDXr1q12B28/X56xr77AR2ppNFQEaCZpzZG+tx5AJj jbWwA3OWGjTaDXG7OT7oOzqEvGZSeXXDFwy2aCJlinlYoVPcR4Lny+ue1WXnyPrdh4m8 rxGk5JGZFUrvF+dSmB/hhexNSeY7/xxepARZ6zpARCxFRO6gBQS/wBQBInsAsDh8E0rC TXQw== X-Forwarded-Encrypted: i=1; AJvYcCXbCtNW8p2HkGr+fyT0n6YhQw7ns8gRIwB4Dh2DQManyd9ytP00J6Gi8FU6XmHpcj4UsqS7JGZTJz++ta0hgWiKmT5Ok6Yn4ZZdbTmy X-Gm-Message-State: AOJu0YwuRackW4Cjs8+3MOBwRt3MrTFc6QkSK+koMmbx2Om+kMdDhCx2 y/ZZXkC+jruimf/rLfbGx0myLyXGrjCJDLRIPEsDPOAo3pc7ZJTIbgzNDIk4DgZWTY7OnstyeK4 Yf6m+OHwVlGmXbdbEUMmEUU8GF8NfT8wjpT0LkQ== X-Received: by 2002:a5b:186:0:b0:dcd:4d:d342 with SMTP id r6-20020a5b0186000000b00dcd004dd342mr10998368ybl.50.1713271065794; Tue, 16 Apr 2024 05:37:45 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240416-pm8xxx-vibrator-new-design-v11-0-7b1c951e1515@quicinc.com> <20240416-pm8xxx-vibrator-new-design-v11-1-7b1c951e1515@quicinc.com> In-Reply-To: <20240416-pm8xxx-vibrator-new-design-v11-1-7b1c951e1515@quicinc.com> From: Dmitry Baryshkov Date: Tue, 16 Apr 2024 15:37:35 +0300 Message-ID: Subject: Re: [PATCH v11 1/3] input: pm8xxx-vibrator: refactor to support new SPMI vibrator To: quic_fenglinw@quicinc.com Cc: kernel@quicinc.com, Andy Gross , Bjorn Andersson , Konrad Dybcio , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Tue, 16 Apr 2024 at 05:44, Fenglin Wu via B4 Relay wrote: > > From: Fenglin Wu > > Currently, vibrator control register addresses are hard coded, > including the base address and offsets, it's not flexible to > support new SPMI vibrator module which is usually included in > different PMICs with different base address. Refactor it by using > the base address defined in devicetree. > > Signed-off-by: Fenglin Wu > --- > drivers/input/misc/pm8xxx-vibrator.c | 41 ++++++++++++++++++++++-------------- > 1 file changed, 25 insertions(+), 16 deletions(-) > Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry