Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1771298rwl; Thu, 30 Mar 2023 01:01:19 -0700 (PDT) X-Google-Smtp-Source: AKy350YhH/1+6UeHaqghuBtnVrjNA2AI1mj64C5jKDFA4hB7V0Lcx5HC83XEiDngE2lIlBkfashv X-Received: by 2002:a17:906:74c6:b0:8f0:ba09:4abe with SMTP id z6-20020a17090674c600b008f0ba094abemr1285553ejl.2.1680163278862; Thu, 30 Mar 2023 01:01:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680163278; cv=none; d=google.com; s=arc-20160816; b=PEBDlQ2FJmezds2kdnNfDa4FGFHBhHZKoUwi3yHAF7xAw93zyOgW6u8Bc6kk/Zn2dS wy+zVDGg80n17Mur137ER+KYgwEv3kwtpLcmTj0yLQyNdjQSZOjMbUpiATiS/cuP+BHA 5NrqkJ3HgDSjWLwhNLMwU92bIcHXsQ5NjcJMJI755FZ6T4z9Uhc/kjNGP9Pydh+ny4jI I/PZTRXxeK+EhzBRuOHJ9obnmb1sVt04obN3r5Bb5YVr/Fm3Cy/QKvA2IsxOAo4Jdrc4 mfcgOUTqq/SujqaaOVMXUcMcs/g4tNKqAeFy9skFq6dds0q9auKAqPjk5BMKbPU7C9yn axmg== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=qke2unLuXWj7QdPaYt8qKukeWTkU8rTJZZFSuzdH0wg=; b=LB7fOM7pkjy1jZkf09WYlCJ9MFpud8tSeZTX8h80e5X1IenZWUAU0VQEWvAkmWgMOe vqr+JyKuWI611Ztu4GGPt7RW7NMdrb4teRCKQ7Gc65JWlM821nFp8iUFrraxY/u/PlO3 uk1tcDoEsy4bmPNaKbBPqB1bS0eN+0O2V3C6U4/dFk7lwYhxiWetKr2UYZdsiFeEXBC4 thzmgjwD6H0OzSQr2OZO9eJDgaX2sv6qkmNhZZVkNPehQ7DlmOD/JS3BwTnye4Ps2SlY QTxudn+D0Na6pluZ/ZkEKE0n/naLDvsPoamRuPNMFY6tsRNq1XD8OfCya4p7H869/BUr tR+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lWborn+V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf27-20020a1709077f1b00b00939f6198089si16765748ejc.859.2023.03.30.01.00.53; Thu, 30 Mar 2023 01:01:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lWborn+V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229894AbjC3H5p (ORCPT + 99 others); Thu, 30 Mar 2023 03:57:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229874AbjC3H5o (ORCPT ); Thu, 30 Mar 2023 03:57:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 017D118F; Thu, 30 Mar 2023 00:57:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 97FA661EB8; Thu, 30 Mar 2023 07:57:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A076FC433EF; Thu, 30 Mar 2023 07:57:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1680163062; bh=ZOAGwAmzYQ7qFd60V4QD6i1iD4nHw43HHmPMAztdHQI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lWborn+VVqZKn5dWcEeN6cVkDyluAGp8qeWDBcpiJW8tN9e5NNG4ZNni1WT2A0dF9 6zkFtqDrGYRzFhKZSRiCC5CgpT+/oLwYFWWMehQkigUeW+zkswTK6N7SQJ2bVEi2tN 6A5n4f0pee5iWVyvjkdw1wC9/6nKI416rnEHM0BE= Date: Thu, 30 Mar 2023 09:57:39 +0200 From: Greg KH To: VaibhaavRam.TL@microchip.com Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, UNGLinuxDriver@microchip.com, arnd@arndb.de, Tharunkumar.Pasumarthi@microchip.com Subject: Re: [PATCH v8 char-misc-next 3/5] misc: microchip: pci1xxxx: Add EEPROM Functionality to read and write into EEPROM bin sysfs Message-ID: References: <20230328144008.4113-1-vaibhaavram.tl@microchip.com> <20230328144008.4113-4-vaibhaavram.tl@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 30, 2023 at 05:28:43AM +0000, VaibhaavRam.TL@microchip.com wrote: > On Wed, 2023-03-29 at 12:01 +0200, Greg KH wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you > > know the content is safe > > > > On Tue, Mar 28, 2023 at 08:10:06PM +0530, Vaibhaav Ram T.L wrote: > > > From: Kumaravel Thiagarajan > > > > > > Microchip's pci1xxxx is an unmanaged PCIe3.1a switch for consumer, > > > industrial, and automotive applications. This switch integrates OTP > > > and EEPROM to enable customization of the part in the field. > > > This patch adds EEPROM functionality to support the same. > > > > Again, why not use the in-kernel eeprom api instead? > Unlike other in-Kernel EEPROM APIs, this EEPROM is not accessible > through any of the i2c/spi buses available to the kernel. > > It is only accessible through the register interface available in the > EEPROM controller of the PCI1XXXX device. > > The architecture of the device was explained @ > https://lore.kernel.org/all/Y+9HOdHGqmPP%2FUde@kroah.com/ That shows the architecture, but I left it as "try using the EEPROM api and let us know how it goes" and you never did that. If you are going to create your own user/kernel api for something that the kernel already has a user/kernel api for, you need to document it in the changelog text really really really well why you can't use the existing api, and why this new custom one really is the only way to solve this issue, to explain all of this. thanks, greg k-h