Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp298785pxb; Wed, 3 Nov 2021 04:32:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8UAKXgCK52XKa3M7kgxgXcCISeWEqgNARqLSGz7dPtx/abaKum35nSX6e1KqskxoQijMh X-Received: by 2002:a17:906:a217:: with SMTP id r23mr52873474ejy.548.1635939152866; Wed, 03 Nov 2021 04:32:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1635939152; cv=pass; d=google.com; s=arc-20160816; b=jtqzaSIQrXjl1kVpISwU5skood+4hiSA4iZ4nwQFx3y2LCgaednfjahDNsyLCcCntb PGQekChxy8Z8jfb+pmS1JGb8g0XI98voG/LKTmX7wksce3z9/nVIAPaAwfcsEc1CmUaH dKj5OnbMHZGRuvDZO0/Ybwa94ViucVgCX5KBY3vzPcLbqbsWYIXpbJsI67po4Th4o/Ri eyyclnjO81YUogH9CBTM5HrE8axL7IOkJpDpzk/EL8VsFJGTeQWPYbhwd/YxnF9m3AW/ YJFp2V/KQNZDV6RTIekPDyMt6nV2PWos1rDTf+aIPlNPQY7YQD4VPc7J7sI+iUUWTEo5 IdHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-language :content-transfer-encoding:in-reply-to:user-agent:date:message-id :from:references:cc:to:subject:dkim-signature; bh=L4kp8KWUwtFv2oHc3DhURiZkdCmTLCIxo7kO4TgIGNQ=; b=SZxRP0cGFtekzpmD9+siRrD1XiNU4tkdaAocR25HPCAgdsUxchZwSHiMayd+bbaCBQ LA+pj5QsZ56PBXFCF91yRAXMUm0YkZU4hg1j2rqTAmPVS1pWXpStq+/LRBZaoCufqNiX icgb6kuh+IcvNqOjc7UlPW07GHlE1FsvkmZs/bMffyMYKI00hbHcPo1TcRjNv2Ttz8T2 IV2JHxzPJLrAZXHu6Sxb132wnRqN4w4bwqDuXXvX8DrxPxgt8u/22xkskOnsvHAOSVOr fGQ//hk2O/WHp1ODu3q4DMktx4+TwyO2wcv86T7Od6/139RugdA067DCDBQ8FWfjttEU vs6A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=VYv2fDqc; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z5si4200406edd.497.2021.11.03.04.32.08; Wed, 03 Nov 2021 04:32:32 -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=@Nvidia.com header.s=selector2 header.b=VYv2fDqc; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230331AbhKCLcA (ORCPT + 99 others); Wed, 3 Nov 2021 07:32:00 -0400 Received: from mail-co1nam11on2043.outbound.protection.outlook.com ([40.107.220.43]:34400 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230112AbhKCLb7 (ORCPT ); Wed, 3 Nov 2021 07:31:59 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LxgccerNysvxGPwQ4ectjthfYK/wjyQzZdSL3l9XtuOPtdu4nZseoC5ci9gty0CvrzuEYuBHaNZxIKFnTh8KQYTt/hEkEacElh79p/XGzr+GuEQRnIf5TpufwXbwuLEJxb5C02zR6VcEf8iYerU7fL7+Zc4TgHy7+61Mt4nKxCFJQhflnVNgkQl/DOLhNhlgGae42trF37dEakWFw0VgOdOihlx8TsTuRUIqPAUet+7SzLSwQAJGIuDo9ATwbUkNuTS1axAS1hYVW1mPybm4zHTihf6yqBsP9lNfyOUJKjvC4SKCTnHVMtQOi0Ar/+iONGZV0JxjVXkdKi8ZQTtsUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=L4kp8KWUwtFv2oHc3DhURiZkdCmTLCIxo7kO4TgIGNQ=; b=QUUMiueO+WicWqMP4BUFfmIvQv4Gmizyuw7BuBvX5Zn/rR6BTxuF+/BJWedXDvVR+csP3L+edj+tDvQDVp4jU4qxAkeRgzHFcP4X6RYOPKEI6x8PYIS8f7vHtcWWgAmk7UeqUQziVpc5fLhlcC+2xnS9+PEBDe2YRTWZ2rqFwOwM0ZqTRtj4qgpycmCoWVyIF4U47FptfgTUhJmAqFc6umYPkb9i/Fxr3jWcrx6jFJLsdU7XYe6pChYQAaz99dF3pSqOQ2D8ICd2QmzrZBxPIACtPhhfhpOpu5wO+9clD5ALLlvsyBCPdYxcASdwc4Uo+0YRdeXnHx9tW9hzC93KyA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=L4kp8KWUwtFv2oHc3DhURiZkdCmTLCIxo7kO4TgIGNQ=; b=VYv2fDqcfvpQxg+Xsw1Ss8VzhBIHBpgJP80GTiRjrre5aqDR5BMArZ+0fMYcl5ix1gRfBWP0bh1hnlTr0tPZCbvt97dueqw08ACx0GVB8PW/eJRbWGyFYDujuF8bc1jW3WU02vlMr/pIu8AxMAs6oGFn3Qet1kCZQP8Z9QYu2h+YkTj0FF+B3fcecG2fzAwYqlFIfFXiFEU2cKJMbwR+PwSIqtcaoS2WnTW/8O77TuvesSWHlCzLYCI7wICQY4iuqoh22Q4Ntjysx/oiXy95Ub1UB5kUxBvAzTTF+nq7w6nDerGB/zfhcvD2WSvBL9AIbqrU+J8PYzoKI9pYP2w+kw== Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=nvidia.com; Received: from BL1PR12MB5317.namprd12.prod.outlook.com (2603:10b6:208:31f::17) by BL0PR12MB5507.namprd12.prod.outlook.com (2603:10b6:208:1c4::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11; Wed, 3 Nov 2021 11:29:21 +0000 Received: from BL1PR12MB5317.namprd12.prod.outlook.com ([fe80::64ed:2ae1:6659:2878]) by BL1PR12MB5317.namprd12.prod.outlook.com ([fe80::64ed:2ae1:6659:2878%3]) with mapi id 15.20.4669.010; Wed, 3 Nov 2021 11:29:21 +0000 Subject: Re: [PATCH 0/4] Fix kcontrol put callback in Tegra drivers To: Jaroslav Kysela , broonie@kernel.org, lgirdwood@gmail.com, tiwai@suse.com Cc: thierry.reding@gmail.com, jonathanh@nvidia.com, alsa-devel@alsa-project.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <1635915897-32313-1-git-send-email-spujar@nvidia.com> <8a00ea68-4859-fbcc-6292-909a66b0a188@perex.cz> From: Sameer Pujar Message-ID: <1b63798e-cf3f-5ef8-1950-3111273ad82d@nvidia.com> Date: Wed, 3 Nov 2021 16:59:08 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 In-Reply-To: <8a00ea68-4859-fbcc-6292-909a66b0a188@perex.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB X-ClientProxiedBy: MAXPR01CA0114.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:5d::32) To BL1PR12MB5317.namprd12.prod.outlook.com (2603:10b6:208:31f::17) MIME-Version: 1.0 Received: from [10.25.98.39] (202.164.25.5) by MAXPR01CA0114.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:5d::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.10 via Frontend Transport; Wed, 3 Nov 2021 11:29:17 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3df35c3c-9744-44cc-aed4-08d99ebd2df2 X-MS-TrafficTypeDiagnostic: BL0PR12MB5507: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3044; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7wtYFwBnECIDqRaXzobxUJuWd6JIC+lfL85WCLG5k4XCZiyYMsc3sfq47sxJSN9NcNAxpNnmVdgPAJLK7eb0+pXQ6kvwe3z7GpaYicr5KNgWw4SmhzGMmsIfCU9vhYWmjGNrhI8aw+YTuNvbieIsIcDUkrAl1ES2cseTBe4olkBvlpzwsH50FyhM2FnlUa74BFCtIdO/0WvKS69ltmb0kSm8K6qKfzXwi2Yj5efb7UZIegH+hZWlPyHAmh50M7S1KsooMsVetCJnj1QihrTtWEmLtx4P/qj/Y+/xDHNrdhrDSvaB1tFDo/DH7fhy70ryRJvm490Tj27eTovYYNdbQ5zjouoEDCWVKmfiuEN6hGs2OoB5eJMCDA2YLxTRZljpuyKrzHTreedYnG/GlqSr+RDcPFEuqSsuJtQ9ORXwcV7WZr/ca4l4VvpSIu7UrP098k6UKw+F+GjhxxZmDaXD1EI83T9uQnpC+W3uCBWWMDJHg88uLB9+259xIPpk+TBVOWvOrSC/6njVdi7locY1aJLp7fQiD3PlAiHFJekdZMvtwC50HLDILPFajgZyqFojbAEIp/pWHUQ8RzRZSk3NOq6R9ychdwKdkH2xvwaLy8l8QeX/zrIbwhFN8U4NBmyMjflF7VZ3iFlJuX+twli9oZTICATq8KTxkWFP7dUt1Q6Sge8L8VZyGzFdWNoBdgwVafCXn70fD/QrgaSM3eRq5EbsbylAxo1YrSE42BkpWCE= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL1PR12MB5317.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(8676002)(6666004)(8936002)(4326008)(66476007)(66556008)(508600001)(66946007)(4744005)(316002)(6486002)(2616005)(38100700002)(956004)(186003)(36756003)(26005)(31696002)(31686004)(16576012)(5660300002)(2906002)(86362001)(53546011)(83380400001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ejhYKzIyYklTYnNvQ09GV25uUUxGTUREWWdvUloxNWVPK2cxS0JZbU1DSG4w?= =?utf-8?B?QUV6MnFRc3RCZUN3cEZlL2h4N3A5cHBPYjFwcTRTb0ZOdWUyUXcyQ2YyVnhM?= =?utf-8?B?Uy82WU83SVUyd1BFZys3eWI0NVFUV3BnWHlqNHRheHZMblYxSWZwYnNWS2NY?= =?utf-8?B?M09sd0Q1N090dG4yRUNnaTJPd3ZYMEtlSjNmY1pqT1grazNiUlMzT3VtTGZz?= =?utf-8?B?bDBk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B6NE9jbkt2?= =?utf-8?B?VVZSM3dhTEpRYUswRGxkTG9xb01IeTlGd2JZZlR1NExTdjlMUERJenlPeGhr?= =?utf-8?B?ZFRUYTV1WnpCNll2VU5ZU0k2dmlmc2ZTU2hLVTBVT3hLTUQvaGtZeCtHNlJG?= =?utf-8?Q?pJnTyXhdCyx7OzsuE5PVirs=3D?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3df35c3c-9744-44cc-aed4-08d99ebd2df2 X-MS-Exchange-CrossTenant-AuthSource: BL1PR12MB5317.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Nov 2021 11:29:21.0246 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: MT0IeejwDvE02VYMOFKg90vN91SHQO3hL3vgawG+S9asZQlPPzncaZXs7DGsX7XVMlI5bgdDtynBGTjFdqb/YQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB5507 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/3/2021 2:20 PM, Jaroslav Kysela wrote: > External email: Use caution opening links or attachments > > > On 03. 11. 21 6:04, Sameer Pujar wrote: >> This series fixes kcontrol put callback in some of the Tegra drivers >> which are used on platforms based on Tegra210 and later. The callback >> is expected to return 1 whenever the HW update is done. > > The logic is a little bit another. The 1 means change, so you should > compare > the register / cached value and return 1 only when a different value > is set. > Your implementation invokes the change events for duplicate updates. Sorry, I did not think the about duplicate updates. Thanks for the suggestion.