Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp336344pxb; Tue, 9 Feb 2021 01:24:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJyp+EmnXwor+W/qLL5t04xLmswemYyhA4dQiWKaKVDOh0dnyAn463vv8Ep3h9YvbGPlXkIf X-Received: by 2002:a17:906:3885:: with SMTP id q5mr21408200ejd.105.1612862652024; Tue, 09 Feb 2021 01:24:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612862652; cv=none; d=google.com; s=arc-20160816; b=wn4yUGiQtKbYI4Y8XxOgkkRljqXcxqbWCFL93pP5EMMrjJJjCHMeAEJ9NNM1ZzCSWd oWtP4dzQ5JXb06YGiOLzzk3lBd6hqrJ3fnUO8ElXzc81e7rwIHnejgmgX3DbIWGlPWAi kQarvOQJdMqpTX8VNHOdwsafoRAPYBVGgwpjFOuotJY+T2rd6HDDhWC1HPW2xZ5RWVvl a97pCpQ8+uRk0aZKSXFTkpVPih0tuhuvTuUJyenwdBfEPclBXnR2gGMcHXXFKfUBGYLb b4aarHy3HOWNl3NSwo7LJHS3Rpk4QGzbrx4jA3TeasHTa3R55kA466Uc7fPTXbblh1SJ XWIQ== 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 :date:cc:to:from:subject:message-id:dkim-signature; bh=EHfugH9XivOgwbFxjFGfRr2+8dLxzVrXiyw4/2iiY4w=; b=kWybBJRwo1r08YvnIcbhaiuNMdP1b8A/bKVqtWXnOypLxJ8hK9eEXy5ZKd0v233z6S /YlWMa1Y6DMXRNGLiTw/GXyBs/C7USFFxJC5oHanE+d4BT53t0ubu48oT5i9yvPWwmiV xdFhTDHXRAzCsK+D+4AYPxOYt7GH2WcczJ9AxwuyRpXheqStU5QrK3GsPHq205qGRsmI yIwZn8oljXmCnY3BF6vy6YsagGmv14NTTpSmXBxOtUdR70JcENVGD7YfsUb072iKytkL gWSWw82iFGrE7Z6xL3lVjyJ0DhWXxlxDieGXrJqTo+upMMsHiEpBSjkKyoEqhCUOMY1B MW0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@igalia.com header.s=20170329 header.b=rTrRTMHO; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v12si12764113ejq.716.2021.02.09.01.23.48; Tue, 09 Feb 2021 01:24:12 -0800 (PST) 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=@igalia.com header.s=20170329 header.b=rTrRTMHO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230001AbhBIJWQ (ORCPT + 99 others); Tue, 9 Feb 2021 04:22:16 -0500 Received: from fanzine.igalia.com ([178.60.130.6]:51467 "EHLO fanzine.igalia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230286AbhBIJSy (ORCPT ); Tue, 9 Feb 2021 04:18:54 -0500 X-Greylist: delayed 2261 seconds by postgrey-1.27 at vger.kernel.org; Tue, 09 Feb 2021 04:18:52 EST DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=MIME-Version:Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID; bh=EHfugH9XivOgwbFxjFGfRr2+8dLxzVrXiyw4/2iiY4w=; b=rTrRTMHOPDuwIxWtw7aIjMBHkkT7lE+AP44+kwH9vNtTO/tq8IxdAjx3Ai7NoUbYmsGRJt1TAeetR+R6xc2Dvb3sBNVsN5ERMRO81CmiQxEdlndENLpS+ipqS1t1qAINLAnYsJhOub8QUY3JOlA3jHvW3zyaXMDQDLiWKIssx6PETFrIEai9Fyq80VCY2J0HEoA28xWiOhhuF2gl/lnLWcR8M/9674Elqr3Xadaenmuhwe71LSvkZ1MzId66pkvW1i68eKvsoCZMpAqXxRXDz4NIuoKNoqGY0GDNafYm9irl7E9/xhBO9TXM0Z8YFDIvApJVdvni1UDqLKclxCHMyw==; Received: from cm-staticip-85-152-0-72.telecable.es ([85.152.0.72] helo=[192.168.1.24]) by fanzine.igalia.com with esmtpsa (Cipher TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) id 1l9OZK-0007Pc-Qx; Tue, 09 Feb 2021 09:40:22 +0100 Message-ID: Subject: Re: [Industrypack-devel] [PATCH v1 1/2] ipack: Fail earlier for drivers without probe function From: Samuel Iglesias =?ISO-8859-1?Q?Gons=E1lvez?= To: Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= , Jens Taprogge , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, industrypack-devel@lists.sourceforge.net Date: Tue, 09 Feb 2021 09:40:12 +0100 In-Reply-To: <20210207215556.96371-1-uwe@kleine-koenig.org> References: <20210207215556.96371-1-uwe@kleine-koenig.org> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-ybWTpaw5+5TbSdnTJkdz" User-Agent: Evolution 3.38.3 (3.38.3-1.fc33) MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-ybWTpaw5+5TbSdnTJkdz Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Uwe, Thanks for the patches! Patch series is, Acked-by: Samuel Iglesias Gonsalvez Greg, Would you mind picking this patch series through your char-misc tree? Thanks! Sam On Sun, 2021-02-07 at 22:55 +0100, Uwe Kleine-K=C3=B6nig wrote: > A driver without a probe function isn't useful as it can never be > used. > Let registering such a driver fail already instead of failing every > binding. >=20 > This is only cosmetic as there is no ipack driver without a probe > function. >=20 > Signed-off-by: Uwe Kleine-K=C3=B6nig > --- > =C2=A0drivers/ipack/ipack.c | 6 +++--- > =C2=A01 file changed, 3 insertions(+), 3 deletions(-) >=20 > diff --git a/drivers/ipack/ipack.c b/drivers/ipack/ipack.c > index 9267a85fee18..eabc4d08792a 100644 > --- a/drivers/ipack/ipack.c > +++ b/drivers/ipack/ipack.c > @@ -64,9 +64,6 @@ static int ipack_bus_probe(struct device *device) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0struct ipack_device *dev = =3D to_ipack_dev(device); > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0struct ipack_driver *drv = =3D to_ipack_driver(device->driver); > =C2=A0 > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if (!drv->ops->probe) > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0return -EINVAL; > - > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0return drv->ops->probe(de= v); > =C2=A0} > =C2=A0 > @@ -252,6 +249,9 @@ EXPORT_SYMBOL_GPL(ipack_bus_unregister); > =C2=A0int ipack_driver_register(struct ipack_driver *edrv, struct module > *owner, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 const char *name) > =C2=A0{ > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if (!edrv->ops->probe) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0return -EINVAL; > + > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0edrv->driver.owner =3D ow= ner; > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0edrv->driver.name =3D nam= e; > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0edrv->driver.bus =3D &ipa= ck_bus_type; >=20 > base-commit: 5c8fe583cce542aa0b84adc939ce85293de36e5e --=-ybWTpaw5+5TbSdnTJkdz Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEQP+ZAvaXWkfuKXiEf/S6MvF9w0MFAmAiSmwACgkQf/S6MvF9 w0NpLhAAlZd76bSRHVVsXi9EWry22SPjAm4dpqXqRBzt9M1oQGy3yAuqa0KMmHqO l2K6CAKQ5I2cPHM+PSjGOpbi9WBmBqmS15ksp/jnIa2DDNBUhCFmC2rRAViuUDVJ y/N+HJSw5iZQ3UHOPwNSKgkYOnbadhXSVZU/vh6p1PpbsUD9Za9s1MobQ19vje+T kdz9jaGJ8mfKUu+CjDV7FwVi66Wpz0/iPIN/yQWqNQLPbnDQ/XVFo9won6NHroON 5Wi8m67neOSCIZaDxpxTjD2fbm78ChaaJbB7+vXSmgdMVyKf/baY8qldVBuR7pzp It1edlBffuj9WXjgxY99o8/30KL01zoWWuZs+SsrkRwa5b07JWv9xsmUlD4bS+QD QGfoRVdlQdPVqGrdt88TJrEhjr8BjqBPbS/az3uWai+ZvVdf0lOrFPbyiF/QRscg t+Hb2GxsKha83sHvrV91Po8kww1Zko0yrjNuti+vHIskh7+kYsFcDIJGducAVKqh NVV3fPxf2hYZeMtwggIDlO112+Btmhk5m86QnhnTa2b2tRIM8ksWW26gjHLK0DUv tx9HPXYakM0BrtfiozRP6CRZWr9bWidUuVFTh4ixya2amzinBWkeVSCWKaTTkGNN gW7ClYBPFWfNEqTcusqCv+E2waazZaSqFRxV8sf6kM3pawGn24g= =sAkw -----END PGP SIGNATURE----- --=-ybWTpaw5+5TbSdnTJkdz--