From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E27EFC433F5 for ; Tue, 10 May 2022 12:24:29 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 154A918B1; Tue, 10 May 2022 14:23:38 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 154A918B1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1652185468; bh=mA+nW4xL13M7xmPRylZjLEJKfvNXCW1FsObhBO9u2eg=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=tmH18Vd2aMboBo1+QrsCJxJtgfgq8/N7enGL1fTp/ta0N4IGZ5nc5xTRWIRVcdDlz GS4t0Op4St1fQ9aT092S2LtwbTk7IxJgoAoYwTbKIWbdh0fVQNqdnEMAoIvaS/zLZi GCJTVP4jvEuHQoaglS5repUWDHaBWoVQPvGJnvQg= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id BBBA3F80533; Tue, 10 May 2022 14:21:54 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E634EF8025D; Mon, 9 May 2022 09:26:02 +0200 (CEST) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id CB871F8011C for ; Mon, 9 May 2022 09:25:52 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz CB871F8011C Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="UoVW1UNU"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="hvLqelyD" Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 21E1621C12; Mon, 9 May 2022 07:25:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1652081152; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DkVjeit/lk71CFlURWPuyWOi+BM5c9PXTKXlXZNy4J8=; b=UoVW1UNUd3JJyPxi7Me6WCrriJyvw5+Ko5Cbq3XdkkFq6nmyPNWe6ixlc9kmtHWJBKAZR1 hDoKLuxkPIDwchfQKuG5vjYcMNusB2gUaJ8hO56Pcio5KAPabEXqNOz64fWuJjSoV5Gcgp v2RjBBDj2ixI4n/OkHHMyHC36I64wG4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1652081152; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DkVjeit/lk71CFlURWPuyWOi+BM5c9PXTKXlXZNy4J8=; b=hvLqelyDQILDmc6tEMXQb5abblgHvKPpo/77GZSrf9i7Nkfwk/YfP8c887ekyQ4YaDVFcl A5VyyNHI324mU5AQ== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 43DAE2C141; Mon, 9 May 2022 07:25:51 +0000 (UTC) Date: Mon, 09 May 2022 09:25:51 +0200 Message-ID: From: Takashi Iwai To: Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= Subject: Re: [PATCH] kernel/drivers: Remove redundant driver match function In-Reply-To: <20220506064927.7y7a422jqbse22fr@pengutronix.de> References: <20220506045952.136290-1-sensor1010@163.com> <20220506064927.7y7a422jqbse22fr@pengutronix.de> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Tue, 10 May 2022 14:21:48 +0200 Cc: alsa-devel@alsa-project.org, target-devel@vger.kernel.org, srinivas.kandagatla@linaro.org, zbr@ioremap.net, agordeev@linux.ibm.com, lee.jones@linaro.org, linux-s390@vger.kernel.org, bvanassche@acm.org, linux-scsi@vger.kernel.org, pasic@linux.ibm.com, wens@csie.org, borntraeger@linux.ibm.com, jejb@linux.ibm.com, jjherne@linux.ibm.com, gor@linux.ibm.com, lizhe , hca@linux.ibm.com, linux-m68k@lists.linux-m68k.org, freude@linux.ibm.com, hare@suse.de, dan.j.williams@intel.com, akrowiak@linux.ibm.com, martin.petersen@oracle.com, fthain@linux-m68k.org, tiwai@suse.com, linux-kernel@vger.kernel.org, svens@linux.ibm.com, colin.king@intel.com X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Fri, 06 May 2022 08:49:27 +0200, Uwe Kleine-König wrote: > > Hello, > > On Thu, May 05, 2022 at 09:59:52PM -0700, lizhe wrote: > > If there is no driver match function, the driver core assumes that each > > candidate pair (driver, device) matches, see driver_match_device(). > > > > Signed-off-by: lizhe > > Reviewed-by: Uwe Kleine-König > > Side note: While looking through this patch I was surprised to see there > are two different busses for ac97: sound/ac97/bus.c + sound/ac97_bus.c . > It seems the duplication exists since 2017. Those are intentional and will be likely kept as-is. In theory those could be unified, but there are quite lots of quirk codes for the old bus implementations and it'll be way too much work to rewrite for the new bus. Takashi