Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1l2ypX-0000Jz-Pk for mharc-grub-devel@gnu.org; Fri, 22 Jan 2021 10:58:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2ypW-0000Jt-Ad for grub-devel@gnu.org; Fri, 22 Jan 2021 10:58:34 -0500 Received: from mx3.molgen.mpg.de ([141.14.17.11]:48705 helo=mx1.molgen.mpg.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2ypU-0005S4-F4 for grub-devel@gnu.org; Fri, 22 Jan 2021 10:58:34 -0500 Received: from [192.168.0.6] (ip5f5aed2b.dynamic.kabel-deutschland.de [95.90.237.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 8F96020645D60; Fri, 22 Jan 2021 16:58:27 +0100 (CET) Subject: Re: [RFC] efi spi flash support - where to place To: Michael Lawnick References: <2d4eb2cf-bdef-930e-f87a-689c16127390@gmx.de> <280c9985-2be9-df27-c58c-e1d32fe82f0e@molgen.mpg.de> <041f9948-dfeb-459a-deb6-f0fcc27d4811@gmx.de> Cc: grub-devel@gnu.org From: Paul Menzel Message-ID: Date: Fri, 22 Jan 2021 16:58:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <041f9948-dfeb-459a-deb6-f0fcc27d4811@gmx.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=141.14.17.11; envelope-from=pmenzel@molgen.mpg.de; helo=mx1.molgen.mpg.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.221, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2021 15:58:34 -0000 Dear Michael, Am 22.01.21 um 10:42 schrieb Michael Lawnick: > Am 22.01.2021 um 07:51 schrieb Paul Menzel: >> Am 19.01.21 um 11:38 schrieb Michael Lawnick: >>> Q: where to place the efi driver, where to place the command line >>> handler. >>> >>> Currently I'd say >>> - create grub-core/flash/efispinor.c for the driver >> >> I guess, that would be fine, but I found, >> `grub-core/bus/spi/rk3288_spi.c`, so I suggest to place it there. > > I'll check for a move before sending the patch set. > Version to patch against is 6213184b26689fa2e3db297b54cf4eb1713bcad1 , > right? Sounds right – whatever is at the top in master. I don’t expect conflicts, these are new files. >>> - create grub-core/commands/efi/efispinor.c for the command line tool. >> >> Can you please elaborate on the usage? Couldn’t it be some generic tool, >> and it doesn’t matter, what interface in the background? > > efispinor.c contains commands 'spinor init|read|write|erase'. i.e. > commands to work with flash through efi. But the command is generic, isn’t it? Shouldn’t that go into `grub-core/commands/flash/spinor.c` at least? > Adding a SPI bus driver like rk3288_spi.c into this implies an > additional SPI flash layer which then bases on the SPI bus controller. > This is something I wouldn't be able to test due to missing H/W and adds > a huge amount of work (which I guess my company isn't interested in to > pay ;-) ) > If there were already a flash command layer there wouldn't be any issue > to integrate into that. But I didn't see it. > May be in flow of discussion we can rearrange my code in such way that > it easily integrates to a possibly upcoming flash command frame work. Yes, please post the patch first. >> I am looking forward to this patch. I have no idea, if it will get into >> the next release. But as it’s a new driver and command not affecting >> existing stuff, an exception could be made. > > I'm not (yet) in sync with grub timeline, when is next release planned > (last commit date)? March *last* year sometime? ;-) I think the current date is March, though re-reading the list posts, do not hold your breath, that it will be committed, as the maintainers won’t have time to apply the commit. Kind regards, Paul