Return-Path: Authentication-Results: lists.ozlabs.org; spf=none (mailfrom) smtp.mailfrom=linux.intel.com (client-ip=134.134.136.24; helo=mga09.intel.com; envelope-from=jae.hyun.yoo@linux.intel.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.intel.com Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 45qL5m1RbkzDqNw for ; Fri, 19 Jul 2019 03:02:03 +1000 (AEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jul 2019 10:01:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,278,1559545200"; d="scan'208";a="179307741" Received: from yoojae-mobl1.amr.corp.intel.com (HELO [10.7.153.143]) ([10.7.153.143]) by orsmga002.jf.intel.com with ESMTP; 18 Jul 2019 10:01:58 -0700 Subject: Re: [RFC v2 dev-5.1 4/5] i2c: aspeed: add buffer mode transfer support To: Joel Stanley Cc: Ryan Chen , Andrew Jeffery , Tao Ren , "openbmc@lists.ozlabs.org" , Brendan Higgins , Cedric Le Goater References: <20190625205109.27672-1-jae.hyun.yoo@linux.intel.com> <20190625205109.27672-5-jae.hyun.yoo@linux.intel.com> <5cc696ba-7fa7-c7cb-0ba6-81df3015e974@fb.com> <9c862188-8360-fa39-f21d-9c6d51e1d831@linux.intel.com> <74652ba6-ef4b-9e45-7e3a-f2375e21d40f@linux.intel.com> From: Jae Hyun Yoo Message-ID: <930a4c56-68d6-8c54-0dd9-ccf298626109@linux.intel.com> Date: Thu, 18 Jul 2019 10:01:58 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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: , X-List-Received-Date: Thu, 18 Jul 2019 17:02:05 -0000 Hi Joel, On 7/17/2019 10:58 PM, Joel Stanley wrote: > Hey Jae, > > On Tue, 2 Jul 2019 at 16:05, Jae Hyun Yoo wrote: >>> Do you want we to merge this series into the openbmc tree for further testing? >> >> Yes please. It would be good if it gets tested on more various platforms >> before upstreaming it. > > I did this and hit some issues. > > The first one is that we don't support this with the qemu model yet > and so kernel crashes when probing i2c. This is bad, as we gate > commits to the openbmc yocto tree on them passing a qemu boot test. I see. Actually, it's one of reasons why I submit this series as an RFC with CC'ing Cedric. It should be resolved before upstreaming it to linux tree. > Secondly, the changes you have made to the driver are incompatible > with the old device tree. I thought I could revert the device tree > change in order to get the old behavior, but the driver fails to > probe. In general we strive to make kernel changes compatible with old > versions of the device tree. I think that can be achieved here with > some thought. Okay. I'll change the resource getting logic using index instead of 'reg-names' then this driver could be probed even with an old device tree. > Cedric will try to resolve the qemu issue. If you could create a > version of the patch that makes the driver compatible with the old > device tree that would be appreciated. Thanks a lot Joel and Cedric. I'll submit a new spin soon after adding the device tree compatibility issue fix. Please update me the qemu side resolving status. Regards, Jae > Cheers, > > Joel >