From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 9688713B5A4 for ; Fri, 29 Mar 2024 20:14:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711743283; cv=none; b=qRNsthIi1gRfTQqv7o8RjWFK/IKXaO+SQzna8/N91a5edrRPxQcfpXxA2fdETanItnnF5enPbBYAmg8zAHV1fjmLlboW4ifPmHLFDTTUE3NbYX193FOBjCKvgkeGcNv1hFFWsG2OtS4KQY1wL1O/2DfsAt/56MGK5N/ju3Vz7WU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711743283; c=relaxed/simple; bh=Ue67/aWZBFXHbks1VsfgKBe2xxXryMkq5NnPitT7UFs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=i1BIGN/MwxgZrvxIJyCznzoWgiejXcTXepIVCYbo5flFWOmxwXOhlquKlStsbDLqBzQH/S4fvpObkLcqOdca4hzrjk+7WsYJ67wrox3s4AnqvtquP/sNSaXuxH+dKg/2zJgWy5yeCbLr+6EaZGqLnJhRBN49fvpkeBq5IDfG608= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=SrRowCAX; arc=none smtp.client-ip=209.85.214.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="SrRowCAX" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1e062f3a47bso166285ad.1 for ; Fri, 29 Mar 2024 13:14:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1711743282; x=1712348082; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=KyKDOpyo0CvUhZvmqAETcwlXYmOLuTf1osPn+ePZivQ=; b=SrRowCAX7LLe6QpLPkoa+kW5eL46QpeX4S45NI4hjdGJhlhpM91I1mhdD7uTcPiNb7 1QIRqRZBxVzKrL8cANbiWX8iWnaCIG6Dmbgs5TkLCeYqI4hiOOyyeDouj8S1b8tLSQJs yeXqNRozRSzqUlfRV1vDuBr4nA8575vMblzcnMkJJxbQ/HHDOlFCsyxHNTR3jAgVUHh6 DMtP78qxXEUWN0HuNmuYPnuTOv5INl8ZCLYw5akCOtisH99SP700l6bpk8+1Q95xRCS1 T5DKmD91cZrEHMEROf4sSNxLS4Spv2q/3cVky0Ibuv6GK0IkI6GSyDzxBBPZApnCB6IM SoJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711743282; x=1712348082; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KyKDOpyo0CvUhZvmqAETcwlXYmOLuTf1osPn+ePZivQ=; b=uIsBEbXhJQmmHJEN1jArkqMtQRsN0QkxFoFbZlTxyfJ7E1qt/kv+s6CBgWtMta+52u aAjSn4nlpZxEiK+TpmxnogaxKglBJbVf/++NwseojAPSWoCMibqMOxAx/3/s3dq897O2 WSVWPlvU2YEdsn7OIuMyhrhu8QhT5lRpgZX6tK/eVytomTnoBenrCG2fi2BRZTnI9t0A TW7kz/PGKzv3BA0QCFxl4YtZww/52SxEuf82BqGuBMlsiFbhAdKuR6W4zpD7QAGSz4Ui T8HME8iAf6Vt1CqueWFt+L9bJDv0qk/YjuLaLbt4j2qA7zhM7Dd8gJihnUt5sz9nemy9 mHkw== X-Forwarded-Encrypted: i=1; AJvYcCWEWPjhFlR1iwQMEZWBLuGPHijHpZVn9Ylk35+5r51A2AkIWKduxAbXEfuNpJmhHlRl7bhQkLxGsmTAy4cU9wCFkyy7HmEWSQybhw== X-Gm-Message-State: AOJu0YyV5IoDJZFBax9kDVfbZqiiq66I8UtlVxFqkLXAQprVGyHslUAg AMOoc9P1YY0b8rDPKwsEKzFxfRC7+5ScaCKuvtbfOlPWFWdLEMhMdpgSb1H5Yg== X-Google-Smtp-Source: AGHT+IEs/KL53oMZZ4ceHxkkiQGhFUFfwtYFCC7gcQBKJHFph/5YpTLepHU6Fk1HitA6rVmfl4ITHA== X-Received: by 2002:a17:902:f689:b0:1de:fbe1:beb1 with SMTP id l9-20020a170902f68900b001defbe1beb1mr226387plg.7.1711743281527; Fri, 29 Mar 2024 13:14:41 -0700 (PDT) Received: from google.com (236.219.125.34.bc.googleusercontent.com. [34.125.219.236]) by smtp.gmail.com with ESMTPSA id a8-20020a170902ecc800b001e0eaf9ac5dsm3831012plh.36.2024.03.29.13.14.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 13:14:40 -0700 (PDT) Date: Fri, 29 Mar 2024 20:14:37 +0000 From: Benson Leung To: Tzung-Bi Shih Cc: bleung@chromium.org, groeck@chromium.org, linus.walleij@linaro.org, brgl@bgdev.pl, hverkuil-cisco@xs4all.nl, mchehab@kernel.org, sre@kernel.org, alexandre.belloni@bootlin.com, chrome-platform@lists.linux.dev, pmalani@chromium.org, linux-gpio@vger.kernel.org, linux-media@vger.kernel.org, linux-pm@vger.kernel.org, linux-rtc@vger.kernel.org, krzk@kernel.org Subject: Re: [PATCH 09/18] platform/chrome: cros_ec_debugfs: provide ID table for avoiding fallback match Message-ID: References: <20240329075630.2069474-1-tzungbi@kernel.org> <20240329075630.2069474-10-tzungbi@kernel.org> Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7y0qWvUl4tzyws91" Content-Disposition: inline In-Reply-To: <20240329075630.2069474-10-tzungbi@kernel.org> --7y0qWvUl4tzyws91 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 29, 2024 at 03:56:21PM +0800, Tzung-Bi Shih wrote: > Instead of using fallback driver name match, provide ID table[1] for the > primary match. >=20 > [1]: https://elixir.bootlin.com/linux/v6.8/source/drivers/base/platform.c= #L1353 >=20 > Signed-off-by: Tzung-Bi Shih Reviewed-by: Benson Leung > --- > drivers/platform/chrome/cros_ec_debugfs.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/platform/chrome/cros_ec_debugfs.c b/drivers/platform= /chrome/cros_ec_debugfs.c > index 6bf6f0e7b597..e1d313246beb 100644 > --- a/drivers/platform/chrome/cros_ec_debugfs.c > +++ b/drivers/platform/chrome/cros_ec_debugfs.c > @@ -7,6 +7,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -564,6 +565,12 @@ static int __maybe_unused cros_ec_debugfs_resume(str= uct device *dev) > static SIMPLE_DEV_PM_OPS(cros_ec_debugfs_pm_ops, > cros_ec_debugfs_suspend, cros_ec_debugfs_resume); > =20 > +static const struct platform_device_id cros_ec_debugfs_id[] =3D { > + { DRV_NAME, 0 }, > + {} > +}; > +MODULE_DEVICE_TABLE(platform, cros_ec_debugfs_id); > + > static struct platform_driver cros_ec_debugfs_driver =3D { > .driver =3D { > .name =3D DRV_NAME, > @@ -572,10 +579,10 @@ static struct platform_driver cros_ec_debugfs_drive= r =3D { > }, > .probe =3D cros_ec_debugfs_probe, > .remove_new =3D cros_ec_debugfs_remove, > + .id_table =3D cros_ec_debugfs_id, > }; > =20 > module_platform_driver(cros_ec_debugfs_driver); > =20 > MODULE_LICENSE("GPL"); > MODULE_DESCRIPTION("Debug logs for ChromeOS EC"); > -MODULE_ALIAS("platform:" DRV_NAME); > --=20 > 2.44.0.478.gd926399ef9-goog >=20 >=20 --7y0qWvUl4tzyws91 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQCtZK6p/AktxXfkOlzbaomhzOwwgUCZgchLAAKCRBzbaomhzOw wtX6AP9vqoC57DVK+nXf0l+z9YktOJhv6yXw/fbq5tXbW6H4lQD+PtEfbvOmSXSb J9Kw8aSpHvzFt8U3I38LIhsCTGn+KgY= =FNvA -----END PGP SIGNATURE----- --7y0qWvUl4tzyws91--