Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4177327imm; Mon, 11 Jun 2018 08:10:22 -0700 (PDT) X-Google-Smtp-Source: ADUXVKInSlbnIaYzEgLYkrTM9WiVRSslrJw74QiXVKQx6m1c39eVN4+WzsKflUyoLfLZL8uh7LRv X-Received: by 2002:a65:57c6:: with SMTP id q6-v6mr15172733pgr.160.1528729821964; Mon, 11 Jun 2018 08:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528729821; cv=none; d=google.com; s=arc-20160816; b=Md7vEKaIYJTiSIqUNQ521UcpdboULbW0lxCzjcVEYnxUq3cMNbY3Y40eGDvYn27DPU 3O8e6YiHWtP4Qc54SO4zSktbHUwGSaW3hdVahnXDz3vl7au2r8Jpw2ltOTIJOFjs0bJ/ AoIn4BrY5WW0EeQSldm0RNcoL9A13jMCWe9DKKBuTpFDhUAc8SKAvLABipIlWAyMmnbI kl5j4E4BaLPggxTeZz/lMEZOWJc/YobsjQDVDdFwNM3usM6v6Ie7t7Yw1kqz2GGtNhcR We7H/ZIrdU3OgchR+rqFO5fPd/Uy4CQUjeUlwIo0EBhwNkkJ5t2c3S9nw3OXnvL2SF7r Mncw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:arc-authentication-results; bh=9n+a6xTvvEIZABtWTS6vuxUxqPoIVPx/5Wc4t2mllf8=; b=kJH4cs1WwhU10el8N1dafXBirrt8X1zKCdQS6b81qF7y8yttJF7UXO+XoT5SofWKgK tZ1NZO/8Ze4zo6Mzt12XchQqeObpqSjxNCNga93IJAtqD0pk7GAiiDGY77kblWQ4dlRU L83JIUxRq6kecvaY8AUmbzcCQjkbNpEjg9HXV7Dxtj3MLNg6qs3u8TBih2cmMMol64BK sns3MCIM13teRuu3iZ1jkLCxnXOoIlxv5vS/3eodGs6lPybFKluD4spvpU9NaTPKi3c+ Qc586A/qAW64S52ujLOQbfqRESkHbhLDwInJIdw0XVqaJlkrE5SNTAmxjXHr1ZjglzR2 QHsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D4caaoKG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l19-v6si10511026pgn.625.2018.06.11.08.10.04; Mon, 11 Jun 2018 08:10:21 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D4caaoKG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932615AbeFKPJf (ORCPT + 99 others); Mon, 11 Jun 2018 11:09:35 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:34507 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932463AbeFKPJd (ORCPT ); Mon, 11 Jun 2018 11:09:33 -0400 Received: by mail-lf0-f68.google.com with SMTP id o9-v6so31101494lfk.1; Mon, 11 Jun 2018 08:09:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=9n+a6xTvvEIZABtWTS6vuxUxqPoIVPx/5Wc4t2mllf8=; b=D4caaoKGro5SPI+549bZb6Y0uWcFpdtfmK/jdhDgLXKsrLH24dHraUcg+x8+EOFTr+ blUJqx38FIW0+N+S3LJrHXTrsgTdD2QAi5h2nCiDngclWvCO3SdvafPvAjhawC8nU9id QGGCtNogQVh6RyQ6pbTGRmshUgMTcoQnUtr1ReOJrF8rzaNlQSg9kMfr/arGSaEkm9lo RDYCm7GUpUAu9f7vzI5bx5g2zelYgNZfTZwWWV5o15Ct5L4yTLwSzZNTiSd5LSpW5tsl CoBmNNjV43U8fo5Xf4jXtIE7G7/6VrAUYijvTQxDSgWjxbUMmjDUIpDVgTLi4lhAXOqI 5tzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=9n+a6xTvvEIZABtWTS6vuxUxqPoIVPx/5Wc4t2mllf8=; b=ag0khNLCWa9LFuoTubyamyIgXczFYLePiIOk2niAg1keGNWXnkn3pRwNCVI52jbQ3x LOulaO2NWyxC9AVmCajbSRg4rkF8gy3E9eP/jUed7DMZ6vKWBaYceDXTtfi+sY7OQO8M V0kFQLuiwlvjQVBFX3InAQYCNLil6sIa4SVjZGUQ7DohvbPbqVGCOz9OVGwJtxNM+Tmw 54047fhrKtGiRG4RMazbkP5orTEpT4sbNkunmykorVeiU0ia5ztYI10sfSppotUCSeHX L2HNFAhp93xcqkxKmjJpvp6MpSGKp1++lo8KEm+J4U2I9Co3VrEmfkpJqljHZi98WugZ x7hg== X-Gm-Message-State: APt69E0jvEc/WgGByPe6XJZACVgWTQ9xwpTiHqYBPWwE+izvk+0/sBqV X2E/VXcVOvDBuH2PcaXjIds9rvVQh3lgk/G51Rc= X-Received: by 2002:a19:7:: with SMTP id 7-v6mr11103880lfa.62.1528729771374; Mon, 11 Jun 2018 08:09:31 -0700 (PDT) MIME-Version: 1.0 References: <20180611115240.32606-1-ricardo.ribalda@gmail.com> <20180611115240.32606-16-ricardo.ribalda@gmail.com> In-Reply-To: From: Ricardo Ribalda Delgado Date: Mon, 11 Jun 2018 17:09:14 +0200 Message-ID: Subject: Re: [PATCH v2 15/24] net: qualcomm: MODULE_DEVICE_TABLE(serdev) To: Marcel Holtmann Cc: LKML , "open list:SERIAL DRIVERS" , Lino Sanfilippo , David Miller , Stefan Wahren , Rob Herring , Johan Hovold , netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marcel, On Mon, Jun 11, 2018 at 3:01 PM Marcel Holtmann wrote= : > > > the commit message is misleading me. If I build something with ACPI or DT= support, then modinfo will show all modalias information for ACPI and DT c= ompatible strings. What else does udev/modprobe actually need? Is something= broken with the modalias export? The main purpose is to autoload drivers for devices that have been created via sysfs or another module. Eg1: We have a serial port on a standard computer that has connected a GPS module. Since it is something that is not in the ACPI nor the DT table the user will run echo serdev_gps > /sys/bus/serial/devices/serial0/new_device Eg2 module: https://github.com/ribalda/linux/blob/415bb3f0076c2b846ebe54095= 89b8e1e3004f55a/drivers/tty/serdev/test_platform.c Modprobe does not know what module to load for that device unless there is a matching MODULE_DEVICE_TABLE Today, we have the same functionality for i2c devices https://www.kernel.org/doc/Documentation/i2c/instantiating-devices I guess the commit message is really bad :), sorry about that. Any suggestions to improve it? Thanks! > > Regards > > Marcel > --=20 Ricardo Ribalda