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 shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (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 6CD28C71147 for ; Fri, 18 Aug 2023 13:30:27 +0000 (UTC) Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.96) (envelope-from ) id 1qWzXy-0000Hv-0D; Fri, 18 Aug 2023 09:29:50 -0400 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1qWzXv-0000Ho-2b for kernelnewbies@kernelnewbies.org; Fri, 18 Aug 2023 09:29:47 -0400 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1bdf4752c3cso6575825ad.2 for ; Fri, 18 Aug 2023 06:29:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692365386; x=1692970186; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=I/mLJwKXjGwXOOUVyeibjcQeelaPsuwo/x9fLb2Q6Vo=; b=sT4Zke1cQuEqVNcMLQiIqxwmf9zqK9Cg8wNq0C9WneqRjpW8sHlhN+mztF2usNb0m1 hOUOnbD1aO9w/UulNvV5okAUeGKltswH+o4vQYK9rxTr5PVCvOBP/dAEkT7lJZE7YebY h2wZq/rKxn5q5dhEk3dA6RtRqOcU3+WUCQEYnUr1a+jXxEOdxlr3m/utM8MthRoHjBVS W+vru8a2n8EmouYzKAS3hPoPhNbpfyXb4lPvi/diM+dZtHOzOQMmyL/fGkWxTdYCwg+9 2adsbzVAKh1kfw/pNDkhAv9CfRDFRRxWXqwE5whgcMVR8KL6SoqQO+CQlOCh8JYmRynt M4Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692365386; x=1692970186; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=I/mLJwKXjGwXOOUVyeibjcQeelaPsuwo/x9fLb2Q6Vo=; b=hgQNOc9OeSkD5rk8IMbXssLIXWxSpAeN45FeWzy1PgNRIhHHmd01Bkizzfv/8W+jVz Mfs5fDsEn+VvoFRHOo55hYtXtQqqEN3jLlglKjCL2LN/GvV/8Kvbj0SR7ZFkUTmT9w2Y r5TrY5oK+vqT1WUQgVA1iJhUaxJgzUPg0CzBXP41Nj5i70atGqJogLMWO6hfoGlODA2P O6peHIYQrT7ygxdYMq2v78YxCbQML2L6yGiA6STLYojjfeNoquWWKWJCZ4BBZKSGM34A 4UIGO/q44RYPNNJTO6YU3Qe33EapdaEIrB8wLQAO3CvAN/fLA4EOGF/+nH+9WBwP2OUb yk8A== X-Gm-Message-State: AOJu0YyXMp40M8hrafV+MqWcF5Ayr396dJMRZm9K+p+K5og+W+LqX814 cLCsfp34eqStULm5F3hxb/GJ6EMN1tTX9vBn X-Google-Smtp-Source: AGHT+IEm8qcWLQWdkJCRH19qCmvuTLy9j6pXhmgr9WQ8n/zJjb5ckxs2Dhs+uJqdRy8lABXQ8G4Tug== X-Received: by 2002:a17:902:ecd1:b0:1bd:bba1:be7e with SMTP id a17-20020a170902ecd100b001bdbba1be7emr2787920plh.52.1692365385945; Fri, 18 Aug 2023 06:29:45 -0700 (PDT) Received: from [172.16.116.58] ([103.15.228.92]) by smtp.gmail.com with ESMTPSA id b13-20020a170902d50d00b001b87bedcc6fsm1737510plg.93.2023.08.18.06.29.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Aug 2023 06:29:45 -0700 (PDT) Message-ID: <29a11034-a09d-c26f-6580-c2cd605c278b@gmail.com> Date: Fri, 18 Aug 2023 18:59:42 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Content-Language: en-US To: kernelnewbies@kernelnewbies.org From: Ayush Singh Subject: Enable UART after driver removal without reboot X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============3636581505411422285==" Errors-To: kernelnewbies-bounces@kernelnewbies.org This is a multi-part message in MIME format. --===============3636581505411422285== Content-Type: multipart/alternative; boundary="------------UIVGvDZDW14VtPZ3yykkAIfe" Content-Language: en-US This is a multi-part message in MIME format. --------------UIVGvDZDW14VtPZ3yykkAIfe Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hello everyone. I have a Linux Serdev driver [1] that uses a specific UART. To actually access the UART directly (`/dev/ttyS4`), I have to enable a device tree [2] and reboot the device. I was wondering if there was a better way to go about it. Is it possible to disable bcfserial (thereby enabling `/dev/ttyS4`) when the driver is removed (using rmmod)? I need access to `/dev/ttyS4` to flash new firmware to BeaglePlay CC1352 using bsl [3]. Having to restart everytime I or anyone else wants to update firmware is not great, while developing. I am looking for a cycle like this: `rmmod driver` -> `flash firmware` -> `modprobe driver`. Ayush Singh [1]: https://git.beagleboard.org/gsoc/greybus/beagleplay-greybus-driver/-/tree/develop [2]: https://git.beagleboard.org/beagleboard/linux/-/blob/v5.10.168-ti-arm64-r108/arch/arm64/boot/dts/ti/overlays/k3-am625-beagleplay-bcfserial-no-firmware.dts [3]: https://git.beagleboard.org/beagleconnect/zephyr/zephyr/-/blob/sdk-next/boards/arm/beagle_play_cc1352/cc2538-bsl.py --------------UIVGvDZDW14VtPZ3yykkAIfe Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Hello everyone.

I have a Linux Serdev driver [1] that uses a specific UART. To actually access the UART directly (`/dev/ttyS4`), I have to enable a device tree [2] and reboot the device. I was wondering if there was a better way to go about it.

Is it possible to disable bcfserial (thereby enabling `/dev/ttyS4`) when the driver is removed (using rmmod)? I need access to `/dev/ttyS4` to flash new firmware to BeaglePlay CC1352 using bsl [3]. Having to restart everytime I or anyone else wants to update firmware is not great, while developing.

I am looking for a cycle like this: `rmmod driver` -> `flash firmware` -> `modprobe driver`.


Ayush Singh


[1]: https://git.beagleboard.org/gsoc/greybus/beagleplay-greybus-driver/-/tree/develop

[2]: https://git.beagleboard.org/beagleboard/linux/-/blob/v5.10.168-ti-arm64-r108/arch/arm64/boot/dts/ti/overlays/k3-am625-beagleplay-bcfserial-no-firmware.dts

[3]: https://git.beagleboard.org/beagleconnect/zephyr/zephyr/-/blob/sdk-next/boards/arm/beagle_play_cc1352/cc2538-bsl.py

--------------UIVGvDZDW14VtPZ3yykkAIfe-- --===============3636581505411422285== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============3636581505411422285==--