Message ID | 20230322140348.569397-1-eajames@linux.ibm.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2367683wrt; Wed, 22 Mar 2023 07:19:54 -0700 (PDT) X-Google-Smtp-Source: AK7set95RyDA3qJ2Au7BiTFlzt7ME+TGWhHm3ujuFZZ3Gdo9wFk02ZVhGo9QYTpjX1opX7HHs3g5 X-Received: by 2002:a62:1801:0:b0:622:d84e:846c with SMTP id 1-20020a621801000000b00622d84e846cmr3220649pfy.10.1679494794166; Wed, 22 Mar 2023 07:19:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679494794; cv=none; d=google.com; s=arc-20160816; b=ElYuRIUr+2xj97lMRqKOEu1AOwQ3zDsYhdyCSp6ab/0m9FjMEzkYTQQkr/2QOnWjXp gzqZ1KrrU3rgMoBv3pN8EiKM1zFeI6aIEiS9NrMESyd/4HwiLN6Rmkegg0Ca3NKG2KYZ Pt4gqxaIttbk4qBerZ0mJGbQ1v7DEpQiS4t7L4mRu3mfPtUqSIfIQZcWTzceRyO1g1i+ yZ5V4ZiAoUfo0wIPHbWZ9hC6MS9MUpSfAtkdy+Vdt57zhmdL54STNqLaC6YlLpT4eQif 2zER8t+3VoIyZUOBKiioeKjRUgzU9p1+e6BHjPnrQK3Af8WVHwZBidNjRSnWK7WWbWGA Rb8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=QRy1Cz29LTLU9Ox3HQEn2APJ9OJo5WrEB/csxKH4lq0=; b=z13Rnf0P6AJJsdrj0FiY3HEw1MpuYeFU1KuAg1NQ2xY0p9S4wRX3a/+uzw6ln72bUL 1/bBKDzshb31Brtz2LzfNpAsVHx0a5MA3UOD/b0vGYUnvM31y83d03OV2DOZ3DF3YoIJ pFc/avM/mNhMfKiFKK/9e64Sr+MtayECvV+80grXx9vxi6XeAOF8/ejun+JTdgVQDekE OwgfTL3zutkcVyPfqO10AykHw1D/f1V6kfVjFZiCvVPZ+WCcf0stM/Bs8WVvFNDtVLZo 8DH0CxUL6j1loDsPxYuGPUHjerKX+05YFIrM0R3Bhnt2xSYrTAUEfsKmir/kAOHrJesG NkaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="DIETB/5Z"; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g7-20020a056a00078700b006280cb57794si5485235pfu.47.2023.03.22.07.19.41; Wed, 22 Mar 2023 07:19:54 -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=@ibm.com header.s=pp1 header.b="DIETB/5Z"; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231240AbjCVOEW (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Wed, 22 Mar 2023 10:04:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230220AbjCVOEN (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 22 Mar 2023 10:04:13 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CCC823C4E; Wed, 22 Mar 2023 07:04:12 -0700 (PDT) Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32MD2W07037010; Wed, 22 Mar 2023 14:03:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=QRy1Cz29LTLU9Ox3HQEn2APJ9OJo5WrEB/csxKH4lq0=; b=DIETB/5Zj44N0uTghnJAWcG9yZBmcXKBVjwlUBklDA33ea6hxLE8G6o7a67Be8iKCKO6 v2/2acSdt0bkA8vKfg0aSyHA/JLOVm0uLB2A4LDHCBOUaiR4f1G0YrNtevkLjkjRpJzg H+l2ty18nrV7N7rwkJWhc+iShcvA8DO9cSJbIjosD18fu5HC4d/hIn4T4B7w58espl52 IWEmxpmSwOhU1srovscBV4x6UeWQTnF1uA37yXBlL6Dj1gU00D6fCN/SZOk94bZ9R+Cp Hdeev6K3UKJ4p4kRD6ilxq4Xx2+2+W6ClSD9X8oURQo7NZVVGuIEuzDjpjpR2WdwyQvn ew== Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3pfx528byr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 Mar 2023 14:03:54 +0000 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 32MBk9ZN023444; Wed, 22 Mar 2023 14:03:53 GMT Received: from smtprelay07.wdc07v.mail.ibm.com ([9.208.129.116]) by ppma04dal.us.ibm.com (PPS) with ESMTPS id 3pd4x7emre-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 Mar 2023 14:03:53 +0000 Received: from smtpav03.wdc07v.mail.ibm.com (smtpav03.wdc07v.mail.ibm.com [10.39.53.230]) by smtprelay07.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 32ME3qIx12321292 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 22 Mar 2023 14:03:52 GMT Received: from smtpav03.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EC8155805C; Wed, 22 Mar 2023 14:03:51 +0000 (GMT) Received: from smtpav03.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 72A1D58054; Wed, 22 Mar 2023 14:03:50 +0000 (GMT) Received: from slate16.aus.stglabs.ibm.com (unknown [9.77.129.242]) by smtpav03.wdc07v.mail.ibm.com (Postfix) with ESMTP; Wed, 22 Mar 2023 14:03:50 +0000 (GMT) From: Eddie James <eajames@linux.ibm.com> To: linux-kernel@vger.kernel.org Cc: linux-aspeed@lists.ozlabs.org, devicetree@vger.kernel.org, andrew@aj.id.au, joel@jms.id.au, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org, Eddie James <eajames@linux.ibm.com> Subject: [PATCH v3 0/4] eeprom: ee1004: Enable devices on multiple busses Date: Wed, 22 Mar 2023 09:03:44 -0500 Message-Id: <20230322140348.569397-1-eajames@linux.ibm.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: f3xikoQnijCuU5bTbmIS8dUeWGNG3BAP X-Proofpoint-ORIG-GUID: f3xikoQnijCuU5bTbmIS8dUeWGNG3BAP X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-22_11,2023-03-22_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 impostorscore=0 spamscore=0 priorityscore=1501 mlxscore=0 mlxlogscore=881 adultscore=0 malwarescore=0 clxscore=1015 bulkscore=0 suspectscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303150002 definitions=main-2303220103 X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761077616272894932?= X-GMAIL-MSGID: =?utf-8?q?1761077933173379220?= |
Series |
eeprom: ee1004: Enable devices on multiple busses
|
|
Message
Eddie James
March 22, 2023, 2:03 p.m. UTC
The driver previously prevented probing devices on more than one bus due to locking constraints with the special page addresses. This constraint can be removed by allocating a reference-counted bus structure containing the lock, rather than using global variables. In addition, add devicetree bindings for the EE1004 driver for the AT30TSE device and add the devices to the Bonnell BMC system. Changes since v2: - Remove of_device.h include - Use the full model number of the device for the binding - Fix commit name for the bindings documentation and the OF matching support Changes since v1: - Add the devicetree changes Eddie James (4): eeprom: ee1004: Enable devices on multiple busses dt-bindings: trivial-devices: Add Atmel AT30TSE004A serial eeprom eeprom: ee1004: Add OF matching support ARM: dts: aspeed: bonnell: Add DIMM SPD .../devicetree/bindings/trivial-devices.yaml | 2 + arch/arm/boot/dts/aspeed-bmc-ibm-bonnell.dts | 20 ++ drivers/misc/eeprom/ee1004.c | 181 +++++++++++------- 3 files changed, 134 insertions(+), 69 deletions(-)