Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1488567pxb; Fri, 22 Oct 2021 01:49:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRbIryMzy9stARUKAHQWMa4oH8Hnzmt1Y9Zrm/6k/pGcriopwpiBouCAAJTb5wzdD4kNcu X-Received: by 2002:a05:6a00:2449:b0:44c:2221:8c38 with SMTP id d9-20020a056a00244900b0044c22218c38mr11177861pfj.74.1634892553585; Fri, 22 Oct 2021 01:49:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634892553; cv=none; d=google.com; s=arc-20160816; b=tKUU1UNlfxScWCEusAzgJeE17/ut1aBSzNt6FoNb0lqxTlpePytNjwRohQMVAog5bZ 84QOwP+eE6VD2oO9S6kXehKYEMfYnFI8w83kM8RGFQlmedmeXoPGa0+qBLKes6Gp/ZDP GW/WcJkFqnLG+S0x0Nx94xzWdTTQdNi/xR5fLvi4hIgvNVzpN62cvycqCA1FXql9va06 k4+k0MGC/aUqRoMlX/WyZ2Fexo6rnITANm/wLyOnX9kEOyv8PVDRY/7SJQyUD91cLptW xzC3xQAVTGPmr6IDgVhdM/8xESf5ruoGwviwu4ELuboTkGSfr123JwrAhns0GZxd9mPZ paeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=z98QOONnqmyvZAl5YiXeVWVzJz0HwxhDBc4bEffbC/Q=; b=hUQK8QZp2ZkqkNVqQpPMjwiHgOHJyWlUpkLFb18wojRvm48DxG+vqrLFblpy25lchu zmPCerxo6GZIDDzoEodzBge8G5L7snRzr38RDmtD9UQjo08wBKsZISBbwr6PpSVpqbPh /+uHM774WcdWZQtI7CccxPNFSz/yXtIiahmd/6gKEQmc+L2fj1dw9527LIhr1uUT2rel egQ5QXMxU0fpH6WppPF7L9vCy/0XJYHwqqeFwB3QoiUl/ivr/DCVx7ye5wNfj9l5EWCp 8UYMZ/CFFjsZwDD/4lyesr5uUuAv80l6cykvoUX84uRZeOO/O04q2mWKqcfbXwxzCxxy 4ltg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IPdZy73Z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k5si10083752pls.135.2021.10.22.01.49.00; Fri, 22 Oct 2021 01:49:13 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=IPdZy73Z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232353AbhJVItL (ORCPT + 99 others); Fri, 22 Oct 2021 04:49:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:44984 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232261AbhJVItK (ORCPT ); Fri, 22 Oct 2021 04:49:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8F177610A8; Fri, 22 Oct 2021 08:46:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634892413; bh=CEILUiLo3Ef5aUsDfS+97SOXG+XSykycfDZEsicSCbc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IPdZy73Zdj0qjeDuIbt5ig6hXmBFzbZloroiFVw16isUzfHgX6GQLrmx9gcorrwNE NoSkQtN0ZCrbL8ku/fxnQSEyeBEL0FWA8UXdfQDFOuTfgomVvav729qU3dr124JsWP yI47CJ9v+yrDRFcWAJe+ydel14ydLn886h6+6Z8R56dDayaCMDhI1Avnm0eHNLDPLm JfzpxfOvgdlXdPC6Ggz/tbfS7gMwBRkdeg3rdJnq8qCnP+sUBRDPqT6R4nUJK+spY9 JskkAut0gtIv8ikGS2+4770ZAxl+RHB0p0HiO930Q9q5TnxUsVJ6y7X+lw5gNKvgeC YmpE2ruBUlQNA== Date: Fri, 22 Oct 2021 10:46:45 +0200 From: Wolfram Sang To: Dmitry Osipenko Cc: Lee Jones , Liam Girdwood , Mark Brown , Alessandro Zummo , Alexandre Belloni , Laxman Dewangan , linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, linux-i2c@vger.kernel.org Subject: Re: [PATCH v1 3/3] mfd: tps80031: Remove driver Message-ID: Mail-Followup-To: Wolfram Sang , Dmitry Osipenko , Lee Jones , Liam Girdwood , Mark Brown , Alessandro Zummo , Alexandre Belloni , Laxman Dewangan , linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, linux-i2c@vger.kernel.org References: <20211021192258.21968-1-digetx@gmail.com> <20211021192258.21968-4-digetx@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="e7GVzSQ1DCf4k6lf" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --e7GVzSQ1DCf4k6lf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > It's I2C driver. I'm not sure about auto-probing because something > should provide information about device to Linux. It's possible to > detect/scan whether there is device sitting on I2C address, but there is > no auto-discovery mechanism, AFAIK. Well, in general, it could be manually instantiated from userspace... >=20 > TPS80031 device will fail to bind to this driver because it explicitly > requires platform data which should be NULL if device is probed solely > by I2C ID. =2E.but I agree in this case. The driver has this code: if (!pdata) { dev_err(&client->dev, "tps80031 requires platform data\n"); return -EINVAL; } and git grep shows no user having platform data. Shouldn't 'drivers/regulator/tps80031-regulator.c' and './rtc/rtc-tps80031.c' be removed as well? --e7GVzSQ1DCf4k6lf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmFyenEACgkQFA3kzBSg Kba3fg//Wb58LU2rHxo161/nonnSA3fMC2oFlw2yXZiYciLEhsqe5B3fd+GXSn7B aD3TDYvtFIB9i6Ifs+OtEvaemQut8ea2/nVJqVAe9sEn4CnF7UJFefVSu/in6pA3 yey4ZzqRBZqcyzN9EYjcheLvvGC1+NeSo2Y/Ft05vSxop28auMs4oNDJ+90B/CEH NhtQ5QZ51AxotkPDWP1i5iAyAVINhZPoXSQVTLFAdnTKe+1VE98SePISzVnrP4vt BqFqANZuMuYGI3/ziZUoSeMGJYxgvHVvBejom+x/cwCNvLAdpANOY3JG7MsSTDU+ TMVQeld7cSZB0wzXWXeb0K7hGBnTJdkFK/3D+5g7DldZSCw4UxCA0673nTP7SPeK H8f8lTuYs4VjdMokVPuuhYa4WRWxbgteHJB3z/s6rwv/1p50VL/VU7WUnTzFbMc4 LDAToft++xsYBz4z/oZd/zAKX6FBsuWfG19xvDLUBjxh1NgYUHo6NzF3K86VfImD vNBkbl08DuHdbi4kvgOE+XTbO2xSABrAmvpZX4j8f8GF9/4gBTUOah+Leo4HIhj6 u6Ynd8famuDpSpU66/5AuWIFlcY/cqy1fCzc14fFt+wDV5J5Y/gl3Omba+1Hfun2 iquq00hc5cwz1rqsEbqyZcgcI3SdD7vGOoxwwMs1wus/g3wb8vc= =6mGi -----END PGP SIGNATURE----- --e7GVzSQ1DCf4k6lf--