Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EF651C636CC for ; Thu, 16 Feb 2023 18:43:52 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSjDw-0004zZ-6M; Thu, 16 Feb 2023 13:43:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSjDu-0004z8-VL for qemu-devel@nongnu.org; Thu, 16 Feb 2023 13:43:15 -0500 Received: from 5.mo552.mail-out.ovh.net ([188.165.45.220]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSjDt-00063m-24 for qemu-devel@nongnu.org; Thu, 16 Feb 2023 13:43:14 -0500 Received: from mxplan5.mail.ovh.net (unknown [10.108.16.139]) by mo552.mail-out.ovh.net (Postfix) with ESMTPS id 2AAA12CDF0; Thu, 16 Feb 2023 18:43:08 +0000 (UTC) Received: from kaod.org (37.59.142.99) by DAG4EX2.mxp5.local (172.16.2.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 16 Feb 2023 19:43:08 +0100 Authentication-Results: garm.ovh; auth=pass (GARM-99G0033f673363-6b46-4835-b17c-b02a0971a97a, 6472B0FD1AC4FAE7C483658EB00F62ED22160684) smtp.auth=clg@kaod.org X-OVh-ClientIp: 82.64.250.170 Message-ID: <54967d27-39b9-3889-d026-686b7ca3148a@kaod.org> Date: Thu, 16 Feb 2023 19:43:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Subject: Re: [PATCH qemu 2/2] aspeed/fuji : correct the eeprom size Content-Language: en-US To: Sittisak Sinprem , Peter Delevoryas CC: , , , References: <167636845806.2107.2382940753543768501-2@git.sr.ht> <9a5b9e5a-ed67-e2b3-ddda-56220e40c00a@kaod.org> From: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [37.59.142.99] X-ClientProxiedBy: DAG4EX2.mxp5.local (172.16.2.32) To DAG4EX2.mxp5.local (172.16.2.32) X-Ovh-Tracer-GUID: c02c5bec-1738-494a-a691-eaef909c414c X-Ovh-Tracer-Id: 8735857379794193190 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrudeijedguddugecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfhisehtkeertddtfeejnecuhfhrohhmpeevrogurhhitgcunfgvucfiohgrthgvrhcuoegtlhhgsehkrghougdrohhrgheqnecuggftrfgrthhtvghrnhepffdufeeliedujeeffffhjeffiefghffhhfdvkeeijeehledvueffhfejtdehgeegnecukfhppeduvdejrddtrddtrddupdefjedrheelrddugedvrdelleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoegtlhhgsehkrghougdrohhrgheqpdhnsggprhgtphhtthhopedupdhrtghpthhtohepshhsihhnphhrvghmsegtvghlvghsthhitggrrdgtohhmpdhpvghtvghrsehpjhgurdguvghvpdhqvghmuhdquggvvhgvlhesnhhonhhgnhhurdhorhhgpdhqvghmuhdqshhtrggslhgvsehnohhnghhnuhdrohhrghdpshhrihhkrghnthhhsegtvghlvghsthhitggrrdgtohhmpdhkghgvnhhgrghnsegtvghlvghsthhitggrrdgtohhmpdfovfetjfhoshhtpehmohehhedvpdhmohguvgepshhmthhpohhuth Received-SPF: pass client-ip=188.165.45.220; envelope-from=clg@kaod.org; helo=5.mo552.mail-out.ovh.net X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.351, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Hello Sittisak, On 2/16/23 15:23, Sittisak Sinprem wrote: > From: Sittisak Sinprem > > > Device 24C64 the size is 64 kilobits = 8kilobyte > Device 24C02 the size is 2 kilobits = 256byte > > Signed-off-by: Sittisak Sinprem > Could you please address the comments on patch 1 also and resend both patches as a v2 ? You can use ./scripts/get_maintainer.pl to get the list of persons to send to, which should be : git send-email --to qemu-arm@nongnu.org --to qemu-devel@nongnu.org \ --cc "Joel Stanley " \ --cc "Andrew Jeffery " \ --cc "Peter Maydell " \ --cc "Cédric Le Goater " \ ./v2-000*patches Thanks, C. > --- >  hw/arm/aspeed.c | 36 ++++++++++++++++++++---------------- >  1 file changed, 20 insertions(+), 16 deletions(-) > > diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c > index 27dda58338..40f6076b44 100644 > --- a/hw/arm/aspeed.c > +++ b/hw/arm/aspeed.c > @@ -840,42 +840,46 @@ static void fuji_bmc_i2c_init(AspeedMachineState *bmc) >      i2c_slave_create_simple(i2c[17], TYPE_LM75, 0x4c); >      i2c_slave_create_simple(i2c[17], TYPE_LM75, 0x4d); > > -    at24c_eeprom_init(i2c[19], 0x52, 64 * KiB); > -    at24c_eeprom_init(i2c[20], 0x50, 2 * KiB); > -    at24c_eeprom_init(i2c[22], 0x52, 2 * KiB); > +    /* > +    * EEPROM 24c64 size is 64Kbits or 8 Kbytes > +    *        24c02 size is 2Kbits or 256 bytes > +    */ > +    at24c_eeprom_init(i2c[19], 0x52, 8 * KiB); > +    at24c_eeprom_init(i2c[20], 0x50, 256); > +    at24c_eeprom_init(i2c[22], 0x52, 256); > >      i2c_slave_create_simple(i2c[3], TYPE_LM75, 0x48); >      i2c_slave_create_simple(i2c[3], TYPE_LM75, 0x49); >      i2c_slave_create_simple(i2c[3], TYPE_LM75, 0x4a); >      i2c_slave_create_simple(i2c[3], TYPE_TMP422, 0x4c); > > -    at24c_eeprom_init(i2c[8], 0x51, 64 * KiB); > +    at24c_eeprom_init(i2c[8], 0x51, 8 * KiB); >      i2c_slave_create_simple(i2c[8], TYPE_LM75, 0x4a); > >      i2c_slave_create_simple(i2c[50], TYPE_LM75, 0x4c); > -    at24c_eeprom_init(i2c[50], 0x52, 64 * KiB); > +    at24c_eeprom_init(i2c[50], 0x52, 8 * KiB); >      i2c_slave_create_simple(i2c[51], TYPE_TMP75, 0x48); >      i2c_slave_create_simple(i2c[52], TYPE_TMP75, 0x49); > >      i2c_slave_create_simple(i2c[59], TYPE_TMP75, 0x48); >      i2c_slave_create_simple(i2c[60], TYPE_TMP75, 0x49); > > -    at24c_eeprom_init(i2c[65], 0x53, 64 * KiB); > +    at24c_eeprom_init(i2c[65], 0x53, 8 * KiB); >      i2c_slave_create_simple(i2c[66], TYPE_TMP75, 0x49); >      i2c_slave_create_simple(i2c[66], TYPE_TMP75, 0x48); > -    at24c_eeprom_init(i2c[68], 0x52, 64 * KiB); > -    at24c_eeprom_init(i2c[69], 0x52, 64 * KiB); > -    at24c_eeprom_init(i2c[70], 0x52, 64 * KiB); > -    at24c_eeprom_init(i2c[71], 0x52, 64 * KiB); > +    at24c_eeprom_init(i2c[68], 0x52, 8 * KiB); > +    at24c_eeprom_init(i2c[69], 0x52, 8 * KiB); > +    at24c_eeprom_init(i2c[70], 0x52, 8 * KiB); > +    at24c_eeprom_init(i2c[71], 0x52, 8 * KiB); > > -    at24c_eeprom_init(i2c[73], 0x53, 64 * KiB); > +    at24c_eeprom_init(i2c[73], 0x53, 8 * KiB); >      i2c_slave_create_simple(i2c[74], TYPE_TMP75, 0x49); >      i2c_slave_create_simple(i2c[74], TYPE_TMP75, 0x48); > -    at24c_eeprom_init(i2c[76], 0x52, 64 * KiB); > -    at24c_eeprom_init(i2c[77], 0x52, 64 * KiB); > -    at24c_eeprom_init(i2c[78], 0x52, 64 * KiB); > -    at24c_eeprom_init(i2c[79], 0x52, 64 * KiB); > -    at24c_eeprom_init(i2c[28], 0x50, 2 * KiB); > +    at24c_eeprom_init(i2c[76], 0x52, 8 * KiB); > +    at24c_eeprom_init(i2c[77], 0x52, 8 * KiB); > +    at24c_eeprom_init(i2c[78], 0x52, 8 * KiB); > +    at24c_eeprom_init(i2c[79], 0x52, 8 * KiB); > +    at24c_eeprom_init(i2c[28], 0x50, 256); > >      for (int i = 0; i < 8; i++) { >          at24c_eeprom_init(i2c[81 + i * 8], 0x56, 64 * KiB); > -- > 2.34.6 >