Received: by 2002:a05:6359:6e8a:b0:12b:e873:ff31 with SMTP id ti10csp7083308rwb; Fri, 21 Jul 2023 07:44:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlGPju7qqTKJMhRj8p4AyLitZ3jeSnkFS7t5rzvT9MiqalGn8VVz9NJRqkSdRQEKwJspclZM X-Received: by 2002:a05:6512:542:b0:4fb:a0f5:d88d with SMTP id h2-20020a056512054200b004fba0f5d88dmr1336968lfl.42.1689950690142; Fri, 21 Jul 2023 07:44:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689950690; cv=none; d=google.com; s=arc-20160816; b=c14eex8/GnX38PSthIQJc4y4rf0pFxjv5N3Wtxf4xjMixnv6zGeHmuwgE+zMGLI55I Q4L79bsNy/PNzPBWHVX49EaFKxa4JquwqZmdL/LCFvu3J6EUI3wWp//YhGpG9cxaQHhC yoHp68JonqYp8aKSablSintbMypvIjhu3V5WpOwa0jJ3LRixHVR8aLgmkh0/Ui37rbpV fnFfer23IVLuZVbeNrFkd4fjvkoJ4cQWS194Is9nHs67AqlFACYdht6nwNED9ZDpFSnc 2G+R4kcku91qZxOJaGMs+ToKv7OQminmNFq4SCbEFOw1+mB5eM14gevfQKDvosT0JB95 FT6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=ysAjf4LaAMYK81D2vTaHAE6f/DlMCudpo3ZriX8GUwA=; fh=wqYxEPYBezYUGOgBsTpeNqcUccS4oguhg+YVLMrNbVA=; b=t6ltSGsaTavCOKNJ5qbTIqCcqM/WNUlNziUXxtnwe/gxJFzgun24AFcQhUR29qE4Kr I3UEtcUWKb544T21Y2DzMbgYp+YlSQAj+7gjG65NDQPAorqtFXtsGZFa+xz8Hq4t4FTl 6SEY0AkdwCaPRSNFnxXV1eVG+ovOYRwabQJhDiN1vFaQv9v27uszyueK0z7BIft+Ay/D r0/+PK2Sc4Omi18WMFDd6FYMKmfY6iCNmgJ+cwxNr1rUg0/gRNYXMlIijOkyiOGpKIUa bGwSkmyUcdhuQO9eXnnW/W7VYWwWw8RUz7meEZVLWnA+t2ISitrMd1kfnbz89BnIKEYT y3Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="UUujr/pt"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=OFnCMSO9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a10-20020aa7d74a000000b0051e0f8b1699si2263421eds.185.2023.07.21.07.44.25; Fri, 21 Jul 2023 07:44:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="UUujr/pt"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=OFnCMSO9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229884AbjGUOV6 (ORCPT + 99 others); Fri, 21 Jul 2023 10:21:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231734AbjGUOV5 (ORCPT ); Fri, 21 Jul 2023 10:21:57 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07B212D6D for ; Fri, 21 Jul 2023 07:21:52 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id B66AD21846; Fri, 21 Jul 2023 14:21:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1689949311; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ysAjf4LaAMYK81D2vTaHAE6f/DlMCudpo3ZriX8GUwA=; b=UUujr/pt9EUeSV0flxzGlho75ibuqAHQ5eyLqBuvPQu+buTyk9lVNB4Cmv6neDEZ+Q55po VPqib/jyIWoXbNwdi3Vo1hDmWF26yzcTg+sVjVMUOcZn2gkvQbVBLfgehymq3/aL3DMzqg DZTYmhgA0iZ38CRqI9DWd+Tqfe+oPRE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1689949311; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ysAjf4LaAMYK81D2vTaHAE6f/DlMCudpo3ZriX8GUwA=; b=OFnCMSO95Dml0FqzVI/VLkaZkkbmwKijXB4em4Y2GimQYV3QHr3iQZwKzUytxHGozsJG/C 59a/j1JTozvD8NBQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 86D37134BA; Fri, 21 Jul 2023 14:21:51 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id EpQEIH+UumRWCgAAMHmgww (envelope-from ); Fri, 21 Jul 2023 14:21:51 +0000 Date: Fri, 21 Jul 2023 16:21:51 +0200 Message-ID: <875y6dfips.wl-tiwai@suse.de> From: Takashi Iwai To: Andy Shevchenko Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Jaroslav Kysela , Takashi Iwai , Dan Williams Subject: Re: [PATCH v1 1/1] ALSA: korg1212: Re-use sockptr_t and respective APIs In-Reply-To: References: <20230721100146.67293-1-andriy.shevchenko@linux.intel.com> <878rb9h901.wl-tiwai@suse.de> <87y1j9fs55.wl-tiwai@suse.de> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 21 Jul 2023 14:58:05 +0200, Andy Shevchenko wrote: > > On Fri, Jul 21, 2023 at 12:58:14PM +0200, Takashi Iwai wrote: > > On Fri, 21 Jul 2023 12:42:08 +0200, > > Andy Shevchenko wrote: > > > On Fri, Jul 21, 2023 at 12:08:46PM +0200, Takashi Iwai wrote: > > > > On Fri, 21 Jul 2023 12:01:46 +0200, > > > > Andy Shevchenko wrote: > > ... > > > > > While I see the benefit, I feel this is very confusing. If we use the > > > > API for a generic use, it should be renamed at first. > > > > Any suggestion for the name? > > > > It's a universal pointer... uniptr_t? > > Or a generic pointer, genptr_t? > > > > I'm not good at naming, and I'm open for it. > > It seems it's already spread enough with this name, I would rather stick with > it for now (besides net it's used in crypto, nvme, and security). > > The (new) callback though makes a lot of sense on its own. OK, fair enough. > What do you think? Yes, we can go with it. Basically we need to add a new "copy" callback to take sockptr_t and use it instead of the old "copy_kernel" and "copy_user" callbacks. It's used only in sound/core/pcm_lib.c, so it shouldn't be too difficult, I suppose. Then replace the defined callbacks in each driver, and finally deprecate old callbacks. thanks, Takashi