From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EACB2C433DF for ; Mon, 19 Oct 2020 09:41:30 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E885F2225F for ; Mon, 19 Oct 2020 09:41:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=bytedance-com.20150623.gappssmtp.com header.i=@bytedance-com.20150623.gappssmtp.com header.b="nqtBXPN0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E885F2225F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bytedance.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4CFBbW2QCVzDqZC for ; Mon, 19 Oct 2020 20:41:27 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=bytedance.com (client-ip=2607:f8b0:4864:20::336; helo=mail-ot1-x336.google.com; envelope-from=yulei.sh@bytedance.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=bytedance.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=bytedance-com.20150623.gappssmtp.com header.i=@bytedance-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=nqtBXPN0; dkim-atps=neutral Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4CFBYc1rV4zDqQ9 for ; Mon, 19 Oct 2020 20:39:45 +1100 (AEDT) Received: by mail-ot1-x336.google.com with SMTP id i12so9865823ota.5 for ; Mon, 19 Oct 2020 02:39:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=d6PfV+nK8KR56S/+0Hz+VJRwopEkc4FXo7y35QH4FcQ=; b=nqtBXPN01fXxbuI93EFN1NoZYU5iXI71D3F9FHrmF7MeHfO1jQDRsOQdRmJSjMzDns XOoE/AZtBHb+1E/jcPJBl0kkjrsAMGsrLE5akdcTpo0l7aA+IGdLmiLx8ETwy24Ao7ZV 4BBzMbUjzGdmj/yLvkZUH1VWxe2VnDa2UevcFjMbVpiQ6qedjhnAREgst7Cbcg0KufqD iK3kOzTDnTrIZlpxvNr4J9KSEGkbRjeLGSwIcESV8VrZhgvblxB5eK3muLBeqL/WFMJQ Phge3qyVCr6T3WOqsQ20oOHgqVtyR9Xaa7ejqcxheAY5EBtN2GVr7L5yy79/LwWdPPDJ FuQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=d6PfV+nK8KR56S/+0Hz+VJRwopEkc4FXo7y35QH4FcQ=; b=uNOumuz/Jv8+XF67/BacQ6MyrnlHd4oCDLuWA2/0mTR3wR09zLBuASQAeEzyTIPDNU 4xs6NpKcKVoUhGGUFfRZhrujPjUXij15WGr0nzX2R/Gh0fZDdVinWSx8ViTf06SX0MHY ZU+NW1oEinGm3nxijeJ1iVu9WJ1FQVn2Ayln4M3wO+Vh73Zo+GEPpwUX9Z4TB8IOjUiG AVyvhNOzfzSRzrXYoS4UydwBaGbP22/RunKNz0tZOMSPmZZXhPePD9LUdZzQnP8LLX4I qNQYi+78x2jdwppl5jisDQ0KBE6WDac0N57/1KNLkKwDKE7BZKbrzDNoEMujOOUNmaTJ QErg== X-Gm-Message-State: AOAM531i31IFUXF5z2Gn6yJ7inlfEaYzKzlxRDFceAbrOz2PA//ggF9O d1ezd28tp8P6dPwez5CBPeeslY59/blVbqFUyjw0q+cqTgDa34lB X-Google-Smtp-Source: ABdhPJwbohb+dkx+4jvXUtSgWMtp1o19eqgRAb3WsubSfCEOGYEboRIjgdt9w3aMaJ0PG346oCugkUpgMEcUOjN3Sno= X-Received: by 2002:a05:6830:1bce:: with SMTP id v14mr10565269ota.361.1603100381769; Mon, 19 Oct 2020 02:39:41 -0700 (PDT) MIME-Version: 1.0 From: Lei Yu Date: Mon, 19 Oct 2020 17:39:31 +0800 Message-ID: Subject: Moving phosphor-power/tools/i2c into a separated repo To: openbmc , Brad Bishop , Matt Spinler , Shawn McCarney , Jet_JC_Lee@wistron.com Content-Type: text/plain; charset="UTF-8" X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" This email is to propose to move the i2c library in phosphor-power to a separated repo. In OpenBMC, some repos need i2c/SMBus access to various devices. E.g. * phosphor-power implements a C++ wrapper of libi2c in tools/i2c to talk to PSU. * dbus-sensors is going to have a wrapper to send smbus commands. * We have an internal (probably will be upstreamed later) repo using i2c to communicate with a CPLD. The one in [phosphor-power][1] is a full C++ wrapper, that supports byte/word/block read/write, supports both I2C and SMBus communications, and provides a mocked interface for unit tests. It could be a good candidate for a separate repo so that it could be shared by other repos. What do you think? [1]: https://github.com/openbmc/phosphor-power/tree/master/tools/i2c -- BRs, Lei YU