Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp128543lqt; Mon, 18 Mar 2024 03:44:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVFGbZIpnwvQl7eMFIM6COMaFjOGS8L6RcB24XsLkH7ptksx5Ty7IezCYhElkg0z/KPsvvn9ckYLoduMeiEhYv9hGAA6QrMYBKdO/HZUw== X-Google-Smtp-Source: AGHT+IG9nVn6DE7QoY2K11FNJ4iaWJFFA8l/FEUubobSqTjV2J7Iug0BtKVD0CmQUhgldizvPKgq X-Received: by 2002:a05:6a20:438f:b0:1a3:6954:77d2 with SMTP id i15-20020a056a20438f00b001a3695477d2mr1581921pzl.31.1710758686209; Mon, 18 Mar 2024 03:44:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710758686; cv=pass; d=google.com; s=arc-20160816; b=fHqDxHGhYvF+9EvIrXP+LVb2BrtHvDT8N0AMt4wji7VwfuPCKzo+/3pBNmLqeVxXtC WGK1jBK0ZZ/M6GlNH2Cr8izjlUfcX4zWcHHad/WqD/piVKN2LPZhe5lkCjUPhfcBREIr UH26RbKQ4Lci3QhIs4cmSAJ56QOxevH8aKg1go/qx/So5nzX6X58kOu6W8O1HDrvJOXb Warlwg37cWJBqF/qqDYE8H1CYbxQlJNL6p8e3/bRXML0/uetdmUJ2USOcYmo3SRBvFWa Tcke3a71CcKUiKHJLftRK1o1niyXpIzAD0qOX6LIlcHte3vb1ZN1rgIMjjKyHRgHqe3e ICqw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:in-reply-to:date:subject:cc:to:from:user-agent :references:dkim-signature; bh=KCGPrCwTOITqjTnhSele0x2XpulUBe47CHNWCd7XesU=; fh=HesNqa7PcZiYzEIg62z0/UhEdvCsrEJOczA5XlbN2Bo=; b=WaWuGEsDFiQ1y59EnmzxN+UyRMXylCFztIlrXA08TR3Qtmm8MtPL3KB9p6jp0AX/Ga p1HSP0yGb3Xb+31/dw+kSOP5EiS431lArifbVKcoNMzcyszfa1GgjiOpXLz9wp+BrbUM cZMKSWAQFMgVRsHUqcEZKRVprUu9xtrfb414Bgpsd6ABxAzk7lmqBTfXErp81Qe4QaMF cirD0Zx9QmxJ8G2mC8h0nvWHqL8JRpsrbOxpXOQI8n+S9QcbX6gSH9BE0ukTwc8Xxvkp Aaaayq5YFl6ZLgBwDr8SA/jf1/fB+5Qg+nejrjuKfleBsDgJOelteyw/1i4I5Kf3jQsl qx4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=1cM11hDe; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-106017-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106017-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id iz4-20020a170902ef8400b001dd01526874si8310140plb.325.2024.03.18.03.44.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 03:44:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106017-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=1cM11hDe; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-106017-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106017-linux.lists.archive=gmail.com@vger.kernel.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E001F282A40 for ; Mon, 18 Mar 2024 10:44:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A918B2E84F; Mon, 18 Mar 2024 10:44:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="1cM11hDe" Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 0A67F32C92 for ; Mon, 18 Mar 2024 10:44:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710758679; cv=none; b=oBMBrZsCHjG/T0jQbJh43Y7CWWa36+RPOgYdfAT7Sv1zyD7w90AQUUM1v+m7Us9AneNQ+OEiNt+iTa1LYxTCKNDSiivCRckdiWOmmIzQf+VcOr/hl6pYIaU6QFO+PpCIWUgu85cHNbrUMq+2TCdWWkwW1UAVxsU8JPcEYNt7hyA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710758679; c=relaxed/simple; bh=+SOG/JMXzSLzhcPXLSIqOGl5VMrpHzfQZrNkOx8y724=; h=References:From:To:Cc:Subject:Date:In-reply-to:Message-ID: MIME-Version:Content-Type; b=tfDaB+sYvoPEFaMDGUywyWs6jIDTEP8e4x8G4HrqWyhIxTVt3vjmGwjGlsvt9ISnC2oGBFDjMoo0KH8TMd6V71FW1FHurAQv+gJpCbwOcyemMOa6xV7L6LrhRENNt9l8XQJR+PdmkwpPoNoiuVc5wjdoJrG6KZypPy9nRI9prQw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=1cM11hDe; arc=none smtp.client-ip=209.85.167.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-513d3746950so4964529e87.1 for ; Mon, 18 Mar 2024 03:44:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1710758676; x=1711363476; darn=vger.kernel.org; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=KCGPrCwTOITqjTnhSele0x2XpulUBe47CHNWCd7XesU=; b=1cM11hDeSMTR9lFAQfTERjAzuRrCa3rqVEh8PZNzqy7eDhvjQWyz2Y2AL5sm5dsTje +7mG0i3XjWHnHUKnzcJJY3DoxefsHtBLvVXh8+ifZxU8Z7T0dywDnFYKbvrJqyDh2R19 qkquO0aTGqDWuTt2z/K/HinTLVZzcScfgDhd/mkiQDGUS9oCSfDx5v3nWjp/ZRwgW2Ut qSRCe46G/cPOUA4LtQfuzodZnBE9W22UwhqBQ37IPmmNaYbC5Fy6Z5nCrQtYndYpR4Fr GN6JDqT8wIJ2ymn2rxXh+ytzIklDaFm1PQLiB68BWuow9Whp8oKMDBD29i2C7KacOvEO pdzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710758676; x=1711363476; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KCGPrCwTOITqjTnhSele0x2XpulUBe47CHNWCd7XesU=; b=p7c9mARX/mOCKxy4bhmJjNADnOfoPtrrW5mRLydD3Tc9Pg0+LkGUim1yJLH5oI2GO0 3w4bnE0qTnbgf7DBs2RwafA9qtaOFHpCGp0uRaqpAoCUjpWdr9XPr7pdrA6q1rLGerD0 HAAdX75faYJ+6KI/HMMmEiKYdNvg019meTMm791YpBYPi9Wc29gA0aqaYtihaLe+6V+v LSgrVln+cJo68fwTi0YP58bat9+hD6An6hEH8qqrtgs/tEbFGKFRihAWdym5wGUCsLa2 ZGRdMJLIgnFg7hIgcd1WeNEIoEwuEyDJPRJ+H5SXoOFuaB1HWFgRdHYA6/RubIXDOkE5 ZSrw== X-Forwarded-Encrypted: i=1; AJvYcCUglfax3CfHMONmybtwzFYBMTx0Dzjnu+aY32I8j2Gwhuyu3AZNGcNlxDKBQRdqUIodyITOsMEbvyCf93j0QdeK8e3fdp3THfCSAsOv X-Gm-Message-State: AOJu0YyGtxkxmab+rb7pfWRiMDy3gq/569rfj3i9PdfSou/mot9vR/d3 vejDp+JKBSMAW39Fvt37qrMGW0U9vj87QRdaLeXibMGzrTBXrkcISetSiCCnEGQ= X-Received: by 2002:ac2:494f:0:b0:513:c963:895e with SMTP id o15-20020ac2494f000000b00513c963895emr7169639lfi.42.1710758676166; Mon, 18 Mar 2024 03:44:36 -0700 (PDT) Received: from localhost ([2a01:e0a:3c5:5fb1:e4d5:78c0:18b:ad85]) by smtp.gmail.com with ESMTPSA id m8-20020a05600c4f4800b00413ea26f942sm17214532wmq.14.2024.03.18.03.44.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 03:44:35 -0700 (PDT) References: <20240314232201.2102178-1-jan.dakinevich@salutedevices.com> <20240314232201.2102178-10-jan.dakinevich@salutedevices.com> <2a41e8b6-7e8a-4995-a1d7-c5d30e53c2d5@sirena.org.uk> <3ae535cf-9a89-4187-a761-8390d649b00b@salutedevices.com> User-agent: mu4e 1.10.8; emacs 29.2 From: Jerome Brunet To: Jan Dakinevich Cc: Mark Brown , Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Kevin Hilman , Martin Blumenstingl , Liam Girdwood , Linus Walleij , Jaroslav Kysela , Takashi Iwai , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux-gpio@vger.kernel.org, kernel@salutedevices.com Subject: Re: [PATCH 09/25] ASoC: meson: g12a-toacodec: add support for A1 SoC family Date: Mon, 18 Mar 2024 11:42:20 +0100 In-reply-to: <3ae535cf-9a89-4187-a761-8390d649b00b@salutedevices.com> Message-ID: <1ja5mvhl9o.fsf@starbuckisacylon.baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Sun 17 Mar 2024 at 18:19, Jan Dakinevich wrote: > On 3/15/24 16:33, Mark Brown wrote: >> On Fri, Mar 15, 2024 at 02:21:45AM +0300, Jan Dakinevich wrote: >> >>> static const struct regmap_config g12a_toacodec_regmap_cfg = { >>> - .reg_bits = 32, >>> - .val_bits = 32, >>> - .reg_stride = 4, >>> + .reg_bits = 32, >>> + .val_bits = 32, >>> + .reg_stride = 4, >>> + .max_register = TOACODEC_CTRL0, >>> + .max_register_is_0 = true, >> >> If the maximum register is 0 how does the regmap have a stride? > > reg_stride inherited from existing code. Apparently, it was meaningless > even before my modifications (the hardware has single register > regardless of max_register declaration) and it should be dropped. But, > is it okay to remove it in the same commit? Yes it has a single register, for now. Still the stride is 4. And assuming the mmio region passed from DT is correct, I'm not sure the hunk is useful at all. -- Jerome