Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2170422ybd; Mon, 24 Jun 2019 01:54:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1qAKH0wacuL+AotcyOMAUeHwZqFDTs9NUnlE8MOY7X6uoq/kEosXXI+byUweEvQ/slAXE X-Received: by 2002:a63:4c14:: with SMTP id z20mr31625121pga.360.1561366466614; Mon, 24 Jun 2019 01:54:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561366466; cv=none; d=google.com; s=arc-20160816; b=C4uD8CwQqG7UqgRJswO49yr6C4GxxIfrSkTJr8ZutnJ1vewrAGz5cUBjen6DBVBPv7 5cXm4gjCmZEF5B2+lNeXFf3lfW4zVZGqI+REZq1q3TQ9AR739ic278Zf1dEbN12XHmex nYt2p/igwM479djqKVoNvoYXgZ7miVcYgNUhwqYh0gElOtr/vxgvjUG2q5vklWXFwqa1 UjlzSDIJMtfNHymhv9b3ZE3MvxeCi6coOLM3ZFTwcJALReRSHdawIrMz8I3KuWClH7eF RKdp3fahk35g1wZ3x4BNGHIj2sD9DGLm9GTKhxFKErkSDvqJ6tb4pI8ZBY4utP/kqWv9 kz+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=gn8+wR69nlQoHiQKyJSg9t9h/LHJa/xRDbkrx27RCKk=; b=ZQZdtdJEGc0NyFlFFfz9ZjntXPIJXWiKSBSgCIYpgY55toBCluOxWA1nxsat6/GzL2 jAKY7B+dpk9g4HlZwJVEZuzY7Xv9kbMM3UYnN4TP93RDGjzTHuvxMgEzyhOVZnPpcnng VkL3qrzeTaljHFE1VdWTVsmJeSvDmwuEUmtISjT82MGMw4UCxoRWl7gDqQGQeqRgRZvN d3QhB3R+gHLxPUeClvyqj2PYbyFzcVLjvI51Au3kxVdH+rMm/H9tEd+IkGxvJoNeBL1L grTYUKQ8dKzof6nAAppcOO7cYGEIPLtm3FWAi9BUrEYGwVqzFMymfjAsgBSEiYY3Sdhe mzbA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9si8322028pfm.27.2019.06.24.01.54.11; Mon, 24 Jun 2019 01:54:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728161AbfFXIoa (ORCPT + 99 others); Mon, 24 Jun 2019 04:44:30 -0400 Received: from sauhun.de ([88.99.104.3]:58792 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726690AbfFXIoa (ORCPT ); Mon, 24 Jun 2019 04:44:30 -0400 Received: from localhost (p54B33083.dip0.t-ipconnect.de [84.179.48.131]) by pokefinder.org (Postfix) with ESMTPSA id BE0FE2C0398; Mon, 24 Jun 2019 10:44:27 +0200 (CEST) Date: Mon, 24 Jun 2019 10:44:27 +0200 From: Wolfram Sang To: "Enrico Weigelt, metux IT consult" Cc: "Enrico Weigelt, metux IT consult" , linux-kernel@vger.kernel.org, linus.walleij@linaro.org, bgolaszewski@baylibre.com, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org Subject: Re: [PATCH 1/3] include: linux: i2c: more helpers for declaring i2c drivers Message-ID: <20190624084427.GA1014@kunai> References: <1560796779-17117-1-git-send-email-info@metux.net> <20190621211744.GC950@kunai> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9jxsPFA5p3P2qPhR" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > Okay, what's the correct initialization method then ? > Just convert it to already existing module_i2c_driver() ? "module_platform_driver" you mean? That's tricky because it can introduce regressions easily. I had one situation where one wanted subsys_init and one wanted module_init. The correct solution is to fix the boot dependency in the affected I2C client drivers. That definately needs HW and thorough testing. It may also need something better than the current deferred probe. Big topic. --9jxsPFA5p3P2qPhR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl0QjWcACgkQFA3kzBSg Kba6KQ/+IrEzoHbD83+bm8LnEjqeS/uxQqdU5H+QGLisgt8JNWkTX98cpx6LRTex NiAXDmg6yvZxOew2cB+lTdcbs/4N9BhTdRlYpCwpT+f28udsB1eeKRVWmQRfI1Op j9sVIIK5CyvIKfnX6nNYKplz1Hiq+5Plstigjqu695n78nLhKPFAMNvIOi/3JuQq Pcyy9AAxFFU6stvxLb6jtFTW9IMK6NYy4UUQB/b5CGFdAenmdrFbQyHZQq6JaU1r QigZ9wafmD/nUCXy5yfVAU6Fe14+OZyf+r81eKK8Wcsa4q82eLMjXmSAMe1xestF 1NNDy8B3/vr5B/pgfjNu6nIwZ+zkUDZxTdMULm0tHgbNG83ZDhafVRbkuhBaDmeU 7d/y7+zDeZh8yDNGh7G6N++Y6CDMBmK5hpoSAf6vixQNp3MJr1qoFU6diZlUAtIc MeFj18lSRF0sjzxWAYA6Fy64zA/1bqpC3mR+rOqCeK6Lgv1TZ0+VY7CQMfbx/5MH 4MA5bDKacpUoL9FGS6JZl/F+HteIuTP1YYXkaiEk/utUZCB1pdv4F5JWtIoXs66w U5W+FprEMJRGuf51YRXcr43FWCm13QhXUDSi8qN70dC8UqGMvf61jW8MICskROx2 Af12uBnPkqsS2OanoYNdnQJvxUWQaCJKBXdla2j3vQHDo4KxNLY= =PWGk -----END PGP SIGNATURE----- --9jxsPFA5p3P2qPhR--