Received: by 2002:ab2:7444:0:b0:1ef:eae8:a797 with SMTP id f4csp53716lqn; Fri, 15 Mar 2024 12:33:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWvEP8e03W+TfKYNsRDyRXK7tKevE9iehE7vmFOkJiI+kx+Gex/IcsQ0+DFUoPVUI9XLzDiAy+NFRK4Zd018irhhKsedoCunXgaRdDZ2A== X-Google-Smtp-Source: AGHT+IFIOVHrrAKiEBS4uXi2X65xGJyj72tmsEb/wQS47e2tk6I269aLVuS3XVheGBPgsfnodoZ+ X-Received: by 2002:a05:6808:3205:b0:3c3:71a0:c0d4 with SMTP id cb5-20020a056808320500b003c371a0c0d4mr4824396oib.54.1710531205772; Fri, 15 Mar 2024 12:33:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710531205; cv=pass; d=google.com; s=arc-20160816; b=xZuWvF6Gi71g0Yq4PePgwLNglkttVQ3Y3nidhzuYAdOmk9pKQ0ifsXsHDzIBG0B5Jr e8MyiczmooS29z+w0H9xHqDwTOqQ2oIM0vja8fV+tnyWgF4qcAPIUSLwz115RmHj6kbF hwC2QQEPp2qIVDb3BAVqdSU2/Fu0pVuDwX83H3ucXZajGNLx77X+dZ5D5AED4lkkI5K4 h/8MmlEzUAn1ITXmadwZJF48dvuyYcDFmJQGPA34J80xD/RsGSoOktf0QbH2BXlJBiQg VTs53ofNsj0VhDtHfTJ2fy9SG1Rn/U4LssErXRl3RO7XtqqSEcpbnEeYUH1S6BfuvIqP tr4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=f0Ij9Ng3qFlKHBcCYFWC7NUcoSVwuVabrhGU+kT7tbo=; fh=y7wJp14XU8O1ZSjzhz8S5MYcvySTwtRn21GHO6kMwSw=; b=0DaDC/Nz/0UqnOWmOzDbHqAs4bqpKey6wvBh/YRNWw6saNjDZm7gHjSFL2P3aDoXO/ 8Bw16xbcoQlJZy9uTAzNlsKtWkUlICqQRjFCsaO3EeQ/OAlqFPAVhgTB49faNjC6TfiH 4tGCUfo1gaRgmJu6dZsl24JKSj182v0+R7cwKRzb/x/0mAzysVoi8/nBZ0cYhSRaD3Yr /ZncP4bWphUhUbaaZU9JORGu/Ic/7VChqsptpvyDLYj+pWWI3YbLSskqPdulxNfDxYna 1Jo0DgjzwJj7e29FzB48ka+N6pUHHMD7QKrh0f33mbdGK8B6owaGpIYuPpAYOouLLIhf oDlQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=RLU+jv1w; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-104848-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104848-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id gb14-20020a05622a598e00b0042eee469474si372323qtb.109.2024.03.15.12.33.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 12:33:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104848-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=RLU+jv1w; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-104848-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104848-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7C62E1C219AA for ; Fri, 15 Mar 2024 19:33:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 761B752F87; Fri, 15 Mar 2024 19:33:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="RLU+jv1w" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A8515336A; Fri, 15 Mar 2024 19:33:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710531196; cv=none; b=KCYpNbgBLYyLfUDOdfszNL8u/jXl+ZaoibKKkVLLTdA4T+QWTn6vJDQ9nzmu+NJPB3AMOZNHjW+f9KWWGA6mwigH+57VOo1kEklhWpHIn1x2/Cjnk0tk0U7WF4qh+RyNKJ+hNqAB1kTM2631JhN7QxATv5CKxUqI94rdlpyIJcM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710531196; c=relaxed/simple; bh=eRsl8Rg+OC8BZqUKmC9kI0hyVdWty+mH75K6LNFjvDw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BQJ0J2j9Oz5YWVBTPUEGvs3jaLMIldnoGjERqXsTYZh+onzUHDL2kxHlkABBQKA2OhPbFyaKvpNvR2BETLMyZX0nyzevDQyb7k8KsiehPdfx413FI9BNE37devulnC9mdrXdkaOuCpaBlFGx4ytB5BGE+U9IWo4x71nn5Sif0Eg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=RLU+jv1w; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=f0Ij9Ng3qFlKHBcCYFWC7NUcoSVwuVabrhGU+kT7tbo=; b=RLU+jv1w7ZdSAxv++3QgRTZbWf 4vjrKzoM0i/woxMVS/lsbrXobofT40yChxO9gTsZcRbj3GLv94jEbzhmabLFiEIhMTKotsJOLI3Se xus1fCT3ykkOk8OL6p3h5vchYrpDaWO4hGigLfKlc86mFK9hK1F+DlLbdu3dHg2DzKbnFOFpVBjUB O51jrli51xcMZVAcWUgRrmdTTN159H/KSwvXrP25gEzjL1vcwgiQOkbCdlGIJYTKA7trqp741apPO q0ULoeCjbRyVtJR54Bk9m52c1gYlC9PMeEsTlVx8rXRTp6gTAAJphFyrJ26G8RDGvMbzDSqLmQ2Se NUMKVsqw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:59454) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rlDId-0001uq-28; Fri, 15 Mar 2024 19:33:03 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rlDIX-0006d1-OV; Fri, 15 Mar 2024 19:32:57 +0000 Date: Fri, 15 Mar 2024 19:32:57 +0000 From: "Russell King (Oracle)" To: Ayush Singh Cc: linux-kernel@vger.kernel.org, jkridner@beagleboard.org, robertcnelson@beagleboard.org, Vaishnav M A , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Greg Kroah-Hartman , Liam Girdwood , Mark Brown , Jiri Slaby , Johan Hovold , Alex Elder , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, linux-serial@vger.kernel.org, greybus-dev@lists.linaro.org Subject: Re: [PATCH v3 7/8] mikrobus: Add mikrobus driver Message-ID: References: <20240315184908.500352-1-ayushdevel1325@gmail.com> <20240315184908.500352-8-ayushdevel1325@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240315184908.500352-8-ayushdevel1325@gmail.com> Sender: Russell King (Oracle) On Sat, Mar 16, 2024 at 12:19:05AM +0530, Ayush Singh wrote: > diff --git a/drivers/misc/mikrobus/Kconfig b/drivers/misc/mikrobus/Kconfig > new file mode 100644 > index 000000000000..f0770006b4fe > --- /dev/null > +++ b/drivers/misc/mikrobus/Kconfig > @@ -0,0 +1,19 @@ > +menuconfig MIKROBUS > + tristate "Module for instantiating devices on mikroBUS ports" > + depends on GPIOLIB > + depends on W1 > + depends on W1_MASTER_GPIO > + help > + This option enables the mikroBUS driver. mikroBUS is an add-on > + board socket standard that offers maximum expandability with > + the smallest number of pins. The mikroBUS driver instantiates > + devices on a mikroBUS port described by identifying data present > + in an add-on board resident EEPROM, more details on the mikroBUS > + driver support and discussion can be found in this eLinux wiki : > + elinux.org/Mikrobus I think this is a fallacy. I have boards that support Mikrobus - some of the SolidRun products do. I have several Mikrobus "click" boards. This help text seems to imply that Mikrobus click boards include an EEPROM that identify them, hence you make the support for mikroBUS depend on it. No, this is not the case - the click boards do not contain a 1-wire EEPROM. Please fetch a copy of the official Mikrobus specification which is available here: https://download.mikroe.com/documents/standards/mikrobus/mikrobus-standard-specification-v200.pdf and rather than creating something that is implementation specific but appears to be generic, create something that is generic with implementation specific extensions. You'll find if you search that document, no mention is made of an "eprom". "identification" is also not found. "one wire", "onewire", "1-wire", "1wire" are also not found. What I'm concerned about is if we create this "Mikrobus" subsystem which appears to be dependent on one-wire EEPROMs somewhere in the system, and then end up with a load of drivers for various mikroBUS boards, what about cases where there is no one-wire EEPROM? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!