Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1435498pxb; Mon, 11 Oct 2021 06:04:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytCBX6GB1ps1hyq38TEJJWqpGqk/0g3mAnQzaWe5M/DBeMxI7FyecQUngKs6StItVw5Zxb X-Received: by 2002:a50:d984:: with SMTP id w4mr40608282edj.375.1633957459578; Mon, 11 Oct 2021 06:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633957459; cv=none; d=google.com; s=arc-20160816; b=bQ5BAtPVyqbfyng52xRUQ/q4G3zgjQM9ahq5dA69nD2yqZdMyAzpgHl0UuKyg+D+7V o/+V0UwcQIFfWwzN6I0WOBOyplXkFHIbC1eTb1pXkZ8GxUuYWJq31WeHVIS+g++tiSOf 5x0tggUuu5eoCRL22LYSl6YsZbb7Zg1Qf8EnAOR5YdPqpFEnBbqKtmXh+EovheFFUAaV 4hY5Eomi31PEpzHmJpDszR9kAdt2on7ts1RY5qhWZAdD1Jwy7AEX9ZSFC8O0N5lCreG4 ukuvmGrTyslKM02kSM645Uc7O6mkLTE38ldn7DTpjoLnLnIwlw+OvdeK1RYab5LafZvO /v1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:from:date :message-id:dkim-signature; bh=S05pxta+ZXwPiNVHj0o7znwtIKDPx6p1RnfKWR+ZKzw=; b=R6/oLjBRIyCi+ubHhMY7LzqKhZa52nLg2NUbInSH+G7zl+jnhUbcTgoAmXK85rMxhN iW9eE9CCBu7Ue2G2NOlJ5WgH4f01uuf63lTjSWq/dcd6EBSGLOA6qmDn/DuxMRhRvfzl b6JoOpqRo6vPf4lR/ZmerLrUOQhDE7bQ6FWadnAHR8ZGvtXD478oA4j/6pTtlo+CPQYP O4c/hSmdHVpvf8AuP7PlMIfExV2tkTSiP8ZAkl8nKk7IvOwIyQNKw8dsQjDfvSnAQDGF gO7ElSk+fD6ldlDMl7rGoh/OJtLiSPzGV3f035PaZoOiFKREOJQnICRkz01bnTaERcgl KxWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DT0TReZx; 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 c30si11670036edn.255.2021.10.11.06.03.54; Mon, 11 Oct 2021 06:04:19 -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=DT0TReZx; 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 S235450AbhJKJVf (ORCPT + 99 others); Mon, 11 Oct 2021 05:21:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235454AbhJKJVe (ORCPT ); Mon, 11 Oct 2021 05:21:34 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 415D7C061745 for ; Mon, 11 Oct 2021 02:19:34 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id t2so53927981wrb.8 for ; Mon, 11 Oct 2021 02:19:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:from:content-transfer-encoding; bh=S05pxta+ZXwPiNVHj0o7znwtIKDPx6p1RnfKWR+ZKzw=; b=DT0TReZx/UNR7+7KfZsIrJOTewDmtWUi6/vEbJti1KOwSCHy4KF8PrlyuTmwxZdtvq w2NpaSZOLyRYrjTVL5oTk3pIcqmTd5VV1KMW+I141BzLO5aybXvk7QZhu9yDRcKPzqY+ GwwKhBoL6229xhzjEXM2iK53SkwN809iPF1Ufv29Ipjaoz/KIlEnGa/GxOqM9L47/8OM dzSyeFHq1SQk5/gDAoG8yhr+zsiIkGXlNQjbiEYUA5Ess+Rr5BtI999GyaSQ8Q7zSY88 ml9G5kr11m2CcjbkmsUiDYboeAhirYFbvHkJRXTLRDl1IgHeY9ua/TCRvs/J82CmQ0e7 JuXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:from:content-transfer-encoding; bh=S05pxta+ZXwPiNVHj0o7znwtIKDPx6p1RnfKWR+ZKzw=; b=lhjO5VsshTg4XA1+wLjUZiucu7l4z2nW6sF4DNaWo6r7d9bP3fbrCym8DcywQrZvXC UU3RILSIdN9/lrCR0lt/aXVGDY1A77fOpDKu+hx1DZGqw66cFiC2eosUaQzd0n0xjFfW zlz4YiGrnbTTh9eF7Q6PtsGxkra92GFj77G/2Fv+Oz5fAsm6Ce76dfNANon0X1lECraE Dv+4ZGgLbgk596ocGLlV3I6zCXQfWMbobjJ6nl/DH0szS33uZdNXOBM7Csde9zFCZTfF 3d6MawfT05LOZm1CwZNYlU7oOziw1gnrnRTOdpIuIx472Jtx3zIUOnA1evvlTiRnLbo0 8Q7Q== X-Gm-Message-State: AOAM532OxAXSzPdIt5U5fHOsUubZbBMIHQPAPTAe9CweuG05EHpAulom 5vEo1nnT1qSn4axFAKwo+RrkAelrOubBPw== X-Received: by 2002:a5d:58ec:: with SMTP id f12mr22826412wrd.24.1633943972843; Mon, 11 Oct 2021 02:19:32 -0700 (PDT) Received: from [192.168.86.34] (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.googlemail.com with ESMTPSA id p8sm7243670wmg.15.2021.10.11.02.19.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Oct 2021 02:19:32 -0700 (PDT) Message-ID: <616401a4.1c69fb81.439b9.441f@mx.google.com> Date: Mon, 11 Oct 2021 02:19:32 -0700 (PDT) From: srinivas.kandagatla@linaro.org Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/10/2021 16:30, Mark Brown wrote: > On Fri, Oct 08, 2021 at 07:37:12PM +0530, Srinivasa Rao Mandadapu wrote: >> On 9/28/2021 2:01 PM, Srinivas Kandagatla wrote: > >>> In that case you should probably consider using regmap_register_patch() >>> for corrections to the default registers in sm8250 case. > >> As regmap_register_patch() not working in this use case, updating defaults >> in probe for sc7280 specific differences. > > In what way is regmap_register_patch() not working? SM8250 and SC7280 has different register defaults values for few (atleast 2 that we are aware of) registers. Initially we thought regmap_register_patch() would help in this case, but later learned that it was designed for completely different usecase and this will not update the cache values with the new values from reg_sequence passed to regmap_register_patch(). What we want was to be able to reflect that default values in the regcaches, so that subsequent writes are not ignored based on incorrect cache values. There are two ways to fix this, one is to come up with a full default register list specific to SC7280 or reuse SM8250 defaults with some modifications, other option is to update default registers based on compatible string before regmap creation. I suggested Srinivasa to use the second option as 99% of the defaults match to SM8250. --srini >