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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 CD9C8C352A1 for ; Tue, 6 Dec 2022 08:48:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=C3mALGwm+cPlBEdXtYdhIaqCH7waiUh15yBW02s4K34=; b=xRV6xVrho++9sR hu1lbJxvjyJyYn74whfiW6hRJsjP93O1HIDuotHHUDw7PIMhCQ23Tp1mBThNLLYcYEaewhVnVf+XX zFlm2gNZdpFHrcBxRSzftbPW3pB41eGU973qlhd/T6Yy+7wVSN/RVRxG6QqXmDDXig6M0+rzPP1Ll JX01qq3fU5KsYal8ZJYwDaWyqOD8xe4lFWkNtrwFqX0hNFOjMoerLaM9vuxjd7prHMM3QrDpN12rY X4R1FDK/pHScpViQB+VXPvZi7Y3LnAq7d0swtYAwI6n3nz+/aX9j/frBefL23yPcfKGr8mRTEmGl+ roJ3TFrH/RPbuooK8blg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p2TbI-0059Zs-Qi; Tue, 06 Dec 2022 08:46:52 +0000 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p2TbB-0059LS-Pc for linux-arm-kernel@lists.infradead.org; Tue, 06 Dec 2022 08:46:49 +0000 Received: by mail-lj1-x230.google.com with SMTP id f16so4765271ljc.8 for ; Tue, 06 Dec 2022 00:46:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=2CyyvjWQb02aPEt6EJDci069U7CWH+geZeCwCy/8e20=; b=I+SStnl653eOmW8BMVQ/Tq8EK24wPKeeaGU1aOoS4G9kBdSpYdJhRAM8cp5PaLGWYa +zduL0zCugd9tRq1FRpK6P50hXzOvdUQXOQzRo9K+jqXxzXktSa6mnoOdMd/16fAHqGv 0sTAswz0qZe0dY34nK3K+GWke9YD9igfEV2DxU4AyBP+tEqdwsiFjcB4jupizbI4QaA1 TcJqpfZGuxO13mD5a/x87Cp1JElEpH/RthZLLTjiewe7MesJXJFxWAEQCBhy98n74MWK CvX2qaB1tD7i2XNCuuIyj6b1xCq21Idmwr9SA8kwm2gri8ZGG94D525h15RuseAUvZ8d 3DhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=2CyyvjWQb02aPEt6EJDci069U7CWH+geZeCwCy/8e20=; b=rw4Q43BlWnKqtZ03uaBEc33fSAgQ8C+Q4SpcJ2Whh2kBplv7/bu4jJ8IYuGWOem6ca pEIvYNiPZVp51fE2QAoeJBfA0fehFhSWSpIM/7Q7Fwko5qjuXWjoiyMFWIzrlC9NfIB3 kRnDiIitIsF0kE4otdVfLIFmW3/bxXRIR6g3OrN8cUZ1a8HsXdxkujvwhl1VICsX067p 41kMOZdSxJK/C0hWT3EJEbd0WhaUGxHH7VxVvsxKLOAgz/+4MJ0u384Tp2lzjNs4RS2Q aQS6I8P/qBhbKZGF94z2SyINI4Jqwr4Qq4TgM9DEeU/DqF96Dvm4SMwH3a9AKC9j/Jue orGQ== X-Gm-Message-State: ANoB5pncm7G6dV2P3QQO8tLcx7A/zkBt8s4ZzNul8ekJ55SpBphk8G0b m+1ikQYqqtsHZLiGX3ZHWZQUSMHf+DU= X-Google-Smtp-Source: AA0mqf7YoXZId1IhidLJeAaGq6aSihedIXUqlNVlouCax97Js2CL00K/X717vD3cW272hddh+6p/ew== X-Received: by 2002:a2e:a806:0:b0:277:4b35:d94a with SMTP id l6-20020a2ea806000000b002774b35d94amr18572615ljq.21.1670316402439; Tue, 06 Dec 2022 00:46:42 -0800 (PST) Received: from mobilestation ([95.79.133.202]) by smtp.gmail.com with ESMTPSA id z5-20020a2eb525000000b0027973ba8718sm1577134ljm.37.2022.12.06.00.46.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 00:46:41 -0800 (PST) Date: Tue, 6 Dec 2022 11:46:37 +0300 From: Serge Semin To: Damien Le Moal , Arnd Bergmann Cc: Anders Roxell , Niklas Cassel , Naresh Kamboju , Praneeth Bajjuri , Serge Semin , open list , Linux ARM , "regressions@lists.linux.dev" , "open list:LIBATA SUBSYSTEM (Serial and Parallel ATA drivers)" , "lkft-triage@lists.linaro.org" , Lukas Bulwahn , Carlos Hernandez , Sumit Semwal Subject: Re: TI: X15 the connected SSD is not detected on Linux next 20221006 tag Message-ID: <20221206084637.olaflvqmxwoo467a@mobilestation> References: <20221014140633.mlypet7skkxvt453@mobilestation> <20221017155246.zxal2cfehjgaajcu@mobilestation> <20221205011105.4do4trbytq4bfw5b@mobilestation> <98670e23-6553-4788-8662-9403c480af82@app.fastmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221206_004645_907185_F797C7B7 X-CRM114-Status: GOOD ( 20.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Dec 05, 2022 at 10:24:22PM +0900, Damien Le Moal wrote: > On 12/5/22 19:08, Arnd Bergmann wrote: > > On Mon, Dec 5, 2022, at 02:11, Serge Semin wrote: > >> On Thu, Dec 01, 2022 at 12:48:32PM +0100, Anders Roxell wrote: > > > >>> > >>> for (i = 0; i < hpriv->n_clks; i++) { > >>> - if (!strcmp(hpriv->clks[i].id, con_id)) > >>> + if (hpriv->clks && hpriv->clks[i].id && > >>> + !strcmp(hpriv->clks[i].id, con_id)) > >>> return hpriv->clks[i].clk; > >>> } > >> > >> Indeed I should have taken into account that devm_clk_bulk_get_all() > >> can get unnamed clocks too. But checking the hpriv->clks pointer for > >> being not null is redundant, since the ahci_platform_get_resources() > >> procedure makes sure that the array is always allocated. At the very > >> least you shouldn't check the pointer in the loop, but can make sure > >> that the clks array is available before it. > > > > Do you think this is otherwise the correct fix then? Any chance we > > can still get a version of it into 6.1? I'll think of a better solution. But at this stage it seems like the best choice seeing the bindings permit having unnamed clocks specified. > > If someone sends me a proper patch to apply, I can send a last PR for 6.1 > to Linus before week end. I'll submit the patch today. Thanks. -Serge(y) > > > > > > Arnd > > -- > Damien Le Moal > Western Digital Research > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel