Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp2080410lqp; Tue, 16 Apr 2024 06:59:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXhBI03VoMjTa3vYWgRVvAzDNQuOV2h6Isi+gFenT/IBYCI0upwtjdcW7S03XcpdYNkbQlbyAJR++3JKipQO6A0t8SYYR/4naUdgViD1g== X-Google-Smtp-Source: AGHT+IEBzCSTNeZoKQUYNUMsFR4qLat3G1NS+NMt6cZRKdwh5g9GdTX/QwVlZwY+/VFeHkk/ztIW X-Received: by 2002:a25:b941:0:b0:dd1:491e:bf0 with SMTP id s1-20020a25b941000000b00dd1491e0bf0mr10333751ybm.60.1713275949263; Tue, 16 Apr 2024 06:59:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713275949; cv=pass; d=google.com; s=arc-20160816; b=qx5OLJgCnV0906shCxO+BaLPPzW5Vo19+utbpArZRz+dDOF5p+9u2xtrG8BvvY9hg/ ZSzvG1vtyEpqykLpyJNVFJOgIpHLWmqx0DNuQjl7wZVqbD5ieQhiXz1oVjHFRpF16CMH lwBCSuvDVui0Zg/sLUFKyl4PEaYIP5dxmBuWXzAGJuvDGndT1TGV3FtGyh1VsZqVmJwY 0+fkBNy3GQOhqPf8BQYt7hcQLO/gtjxU53FvR7nJu07XsKa/I2ZbhuFc1jz9AE1/meN/ BsFsCGOrXf2UvwR5TIxOFxn3CkDoPGg3qAb940HroHW0T70D6XbWjZ6h3PH47spQDfiw H+Dw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=go38N7jjGrvQlCPvOb3B+Q4rvfjpWKNjxgnorhqbV90=; fh=LLnM4o6AvRlv8eZmEbdJk9QTdHMwILU+6+f+u+rvhvI=; b=VCDGf3PJIivhfAXhKArdmN1S8Fbn8juhLT17o1CcOPJN47QakHpJnQFK4SPH85580b kO+5yG+zaZeKQC2jlZF8uqsavlq3IozLWTHz615nhlT8crwxWfyYVPZpHrH1SnzqCAvl 0rZONLQ2dPdW4SMgKG9bf6UuwdMJR3bcNWtrMRQmdnWAwUKtsHXarHqJ9IDA88oAdji1 BJK/mKkU7KHyrdBqSN6EjLJpA2SGy3lAL3LyVatDdmZTyZUxu9h4jnNr4EMFCKr2V2dS Frwd8mdeYFHs3OqUdaOOR8gdmXvNs3B81ysnTFwp6MMJPCcrCP8ILteeWgN7GIe0OuAk UM+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="nM/FuKIa"; 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-146928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146928-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c5-20020a056214224500b0069b2a0fcf28si15119051qvc.607.2024.04.16.06.59.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 06:59:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="nM/FuKIa"; 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-146928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146928-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 031C11C20FEF for ; Tue, 16 Apr 2024 13:59:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F141F12DD88; Tue, 16 Apr 2024 13:56:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="nM/FuKIa" Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (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 9A18212D771 for ; Tue, 16 Apr 2024 13:56:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713275770; cv=none; b=Z7am/niymTg5zo4vdaE1JDKM9zg3xkVlN1cou9yZ2EeV4mf/jeDa8ixfFeKhNfTN9V0AZtYN0dbj7U8SC17W9mQaBusANRjVvZgI8YoOI6W45IXMG0skWDox5Hr6Jb4fsJrozw0HfZn8MF685ZItaot9Ih6LUnRhc3P07q2QRGo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713275770; c=relaxed/simple; bh=+4LDQwbWUnQ/u6d9IMbWLH0F0s+2LEHatpx9y5lrd3M=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=i42R4CSWpQRw5cCiyKat+mFuC1MnXLU6VgL0XASne6lpcCg9zuMGUU4852Y0NVweP/EVMjTQAGmtNzIPFNNYR86CihrtOGUX0qG23y1VB38UykNWlK1iFMU+PqpS+YnEy8xYpXdIOoh6x5gqSwXoRN3N2a764PvHh19onlgMPB0= 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=nM/FuKIa; arc=none smtp.client-ip=209.85.208.175 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-lj1-f175.google.com with SMTP id 38308e7fff4ca-2da01cb187cso79414791fa.0 for ; Tue, 16 Apr 2024 06:56:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713275767; x=1713880567; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=go38N7jjGrvQlCPvOb3B+Q4rvfjpWKNjxgnorhqbV90=; b=nM/FuKIaKl0MzV1QXGmTrr6iok/ydYgEGSg4rVbXO0JKpIcDmOBHVsrsxkk3FoKOyR 6wMFyAVjblqmh/sZxq0Q3F6MzJM3lYDFIuzpG+cZiWI+bj2iEGB35urzrK7+GJQT2p4L a87MZK7sn4WyMtd8cXyp8K1cPqzI2MEkXE+WXu/6G2L/ZcfaH3qZcuiT7+AjjoYHyKI7 To4oXjBO7s4bmEbeQVFxxoUdDav0LaSYcsb4zUtlkKtpQohHTMgE7oNvCZwawr3mSk7y 15yrewbkcXB1yHjiy9VhdL9NMYzG/kf/eyDVYNx7S1CQ8Lvk8bWzK4paF4AQBc8Id7vN tW/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713275767; x=1713880567; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=go38N7jjGrvQlCPvOb3B+Q4rvfjpWKNjxgnorhqbV90=; b=vSrziV8ziPbkFKVc9hBeW2cGHrGr/RUK3Ew6XGChFNIq4o4oUXWyos2/gW7i0LBHlm +3L7ZHNWh+AoM2Hu7LPPix9jYr+EMXQHCdQgm3QH25OasE7qiRccLzSmCzCmRO+0yQnk Iv94eh8AvhL4ivn0sBLJRzfH/YUHjVygI3UOW6ZzeAa3MwZthNOhS2tL9mdErMli5Axz SEerxuMiAjwIyEcTpqcceV9iUKQY2F9ewKoMiBugyM5iQqbJCI+J3vqqPKUtp1ziI/2Y ZKr7/Q7puzVf4za4HC0k/nh20uV/Hg3axKops175rr8w+CszK5uNIImipDjvpez2KpR4 jl7w== X-Forwarded-Encrypted: i=1; AJvYcCUx26d01MQuMKxdzfzVBT9daSjxszklC/toSg2q8u32/qYiLAH7ezHgfE8v2T42hYnXy0zAJmxjK9Z0KmfWzvJaXmE6kBW4/urCAoAT X-Gm-Message-State: AOJu0YwYcTvQPzOZjF4KxId3LyumXx/yY74ZYyG4TFZU0hF3l4lpthD6 //z/eYK04p+VsrHpUbKw5idzGSP1rja5MJz8rz3kXsV2Xkxol5+Zf5FKOkcgMEs= X-Received: by 2002:a2e:3307:0:b0:2d8:5a4b:17b1 with SMTP id d7-20020a2e3307000000b002d85a4b17b1mr9907557ljc.15.1713275766843; Tue, 16 Apr 2024 06:56:06 -0700 (PDT) Received: from [172.30.205.49] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id t12-20020a2e9c4c000000b002d9fb88a7cfsm1282899ljj.102.2024.04.16.06.56.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Apr 2024 06:56:06 -0700 (PDT) Message-ID: <3c2355de-e79f-4c95-96d9-d835cd91394a@linaro.org> Date: Tue, 16 Apr 2024 15:56:03 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v11 1/3] input: pm8xxx-vibrator: refactor to support new SPMI vibrator To: quic_fenglinw@quicinc.com, kernel@quicinc.com, Andy Gross , Bjorn Andersson , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Dmitry Baryshkov Cc: linux-arm-msm@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20240416-pm8xxx-vibrator-new-design-v11-0-7b1c951e1515@quicinc.com> <20240416-pm8xxx-vibrator-new-design-v11-1-7b1c951e1515@quicinc.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20240416-pm8xxx-vibrator-new-design-v11-1-7b1c951e1515@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/16/24 04: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 > --- Reviewed-by: Konrad Dybcio Konrad